Thread: can anyone solve this assigment?

  1. #1
    Registered User
    Join Date
    Apr 2011

    can anyone solve this assigment?

    You are to implement the following memory game:
    - You have to create an 8x8 board containing of 64 squares.
    - Each square should hold a random value between 1 and 100 and each value should be present twice on the board.
    - ALL values should be distributed in a haphazard manner.

    The game starts as follows:
    1. You should setup and display the board by filling it with the corresponding values. Your values should NOT be visible to the user but rather you should display the number of each square e.g. the first square of the first row has the number 1 and the last one has the number 8; the first square of the second row has the number 9 and the last one has the number 16, etc.

    2. The user should then start guessing the locations of each pair of identical values by choosing two squares (i.e. by entering their numbers). You are free to choose to ask the user to choose each square alone or both at the same time. Whichever method you choose make sure the users knows exactly what you’re expecting.

    3. Once two locations are chosen you should then display the board again and uncover them. If the user made a right guess then both squares should remain uncovered throughout the rest of the game. Otherwise, you should cover them again and re-display their numbers.

    4. The user is not allowed to choose a non-existing square nor an already uncovered one.

    5. The game ends when the user guesses all pairs of identical values or if he/she chooses to stop by entering some sentinel value of your choosing.

    6. Your program should display at each round the status of the board and the total number of guesses (whether right or wrong).

  2. #2
    Master Apprentice phantomotap's Avatar
    Join Date
    Jan 2008

    In fact, I'm sure a lot of people here and elsewhere can solve this assignment.

    Thanks for asking; I like these easy questions.


  3. #3
    Registered User
    Join Date
    Apr 2011
    ok since you answer is yes plz give me the code

  4. #4
    Join Date
    Aug 2010
    somewhere in this universe
    are you ready to pay big buck for that code?
    If you expect something for free, then here is what you'll get:
    int main() { return 0;}
    "All that we see or seem
    Is but a dream within a dream." - Poe

  5. #5
    Registered User
    Join Date
    Oct 2008
    Quote Originally Posted by bahaahathout View Post
    ok since you answer is yes plz give me the code
    You never asked any of us to solve it. Just whether we can. And yes, many of us can. And no, I'm quite sure none of us will. Go make your own homework.

  6. #6
    C++ Junkie Mozza314's Avatar
    Join Date
    Jan 2011
    Please read the homework policy.

    If you do that, post some code indicating some effort on your part, and ask specific questions about what you're having trouble with, I'd be happy to help.

  7. #7
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    The edge of the known universe
    Attempt here -> neww prob
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. question about assigment
    By mouse666666 in forum C Programming
    Replies: 11
    Last Post: 01-12-2011, 06:24 PM
  2. Help for my assigment
    By cloverdagreat in forum C Programming
    Replies: 16
    Last Post: 11-21-2009, 12:18 PM
  3. While assigment?
    By Fenix in forum C Programming
    Replies: 2
    Last Post: 08-24-2009, 07:35 AM
  4. Assigment
    By anonytmouse in forum A Brief History of
    Replies: 34
    Last Post: 05-07-2004, 11:25 AM
  5. Help on Assigment!!!!!!!!!!
    By Unregistered in forum C++ Programming
    Replies: 7
    Last Post: 04-05-2002, 09:07 PM