Jump to content

Recommended Posts

Posted

Hello people! I am currently a student and I have fallen behind with my studies and I have a homework in C (not C++) to create a little memory game. I've looked the internet lots of hours and couldn't find any help. I've decided to come here and see if there are any people that would gladly assist me. Now I don't know if this is the right section to write my topic but I've thought that general would be the best. 

I hope I could receive help as soon as possible because the deadline is 4 hours from now. 

I will post what the game should be about.

1) It's a memory card game that has 20 cards and the player has to flip two cards that are the same until all cards are flipped

2) There should be 4 rows  (from  0 to 3) and and 5 columns  (from 0 to 4).

3) The code MUST have this: void shuffle( int arr[], int arrSize );

4) The code MUST have this: void printCards( int arr[], int taken[], int arrSize );

5) There should come up a message if the player chooses two same cards, another message if the player chooses a flipped card, another message if the player chooses a card outside the board.

 

Here is an example of how the teacher wants the game to look like. 

https://gyazo.com/adcb92ce030d80864bb3c64fbc14468e

https://gyazo.com/381919f6e40fd417881f4e806f0d9894

 

Now I probably know this is a simple code because my friend completed it in 3 hours and he is not a professional C coder. The problem is I have fallen behind with my studies for a reason and I am looking for help. Thanks to everyone! :D

Guest
This topic is now closed to further replies.
×
×
  • Create New...