Skip to content

Need help with a C homework program

Featured Replies

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

u play too much l2 thatswhy u fallen behind

  • Author

Yea well I have been slacking and gaming a lot, not l2 though. But this is my last resort to get help :( 

  • Author

Deadline less than 2 hours. If anyone could please help me out that would be really appreciated!

  • Author

Too bad, deadline's over. This post can be deleted or closed.

Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.