Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Using C language. Part 3: Advanced Functional Cards (30%) Tasks: 1. Implement action card: Wild Draw Four (15%) 2. Implement action card: Reverse Card (15%)

Using C language.

image text in transcribedimage text in transcribed

Part 3: Advanced Functional Cards (30\%) Tasks: 1. Implement action card: Wild Draw Four (15\%) 2. Implement action card: Reverse Card (15\%) In part 3, you are going to submit a source file, IERG2080_1155xxxxxx_part3. c. After compiling your code to an executable file, we will use the following command to test your program. For example, ./part3 init_cards_users.txt init_cards_stack.txt discard_pile.txt output.txt You are advised to copy your result of part 2 to the start of part 3. So, make sure you don't have any problems in part 2, before you move forward to part 3 . The assumption on not running out of the stack holds in part 3. You are going to implement the Wild Draw Four card as follow: (15\%) - The abbreviation of the Wild Draw Four card is " +4 ". - User will drop the Wild Draw Four card when it is the first available card to drop in the user's hand. - The subsequent user will draw four cards from the stack immediately. There are no options for stacking multiple Wild Draw Four cards. - The user will change the colour to the same colour as the first card in his/her hand. - If there is no colour on the first card, the user will keep looking for the colour of the second card, third card, ... etc in his/her hand. - If there are no colours for all the user's cards (i.e. all are Wild Draw Four cards), the user will not change the colour. - Wild Draw Four cards can be the last card. After the end of game: Note: add means draw one card or draw four cards in part 3. You are going to implement the Reverse card as follow: (15\%) - The abbreviation of the Reverse card is "> ", , e.g. "BR" = Blue Reverse. - User will drop the Reverse card when it is the first available card to drop in the user's hand. - The order of execution will change from clockwise to counter-clockwise, or vice versa. - If there are two players only, the user dropping the Reverse card can place one more card. - Reverse cards can be the last card. Sample 4: Before the game: After the end of aame

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Optimization And Data Science Trends And Applications 5th Airoyoung Workshop And Airo Phd School 2021 Joint Event

Authors: Adriano Masone ,Veronica Dal Sasso ,Valentina Morandi

1st Edition

3030862887, 978-3030862886

More Books

Students also viewed these Databases questions