Making kid Game

This is a discussion on Making kid Game within the Game Programming forums, part of the General Programming Boards category; Hi, I want to make my kid a game for his birthday. I have learned C in college but that's ...

  1. #1
    Registered User
    Join Date
    Jan 2005
    Posts
    77

    Making kid Game

    Hi,

    I want to make my kid a game for his birthday. I have learned C in college but that's like few years back. I think I know the basics.

    So basically, the game would display on the screen something like 2 + 2 =
    pr 2 * 3 = and at the bottom have a multiple choice. Once he enters the number from the list below it says wrong or right.

    I just can't figure out the logic. Will have have to specify all the scenerio in a case statement or is there a easy way to using randomize to do this.

    Please let me know if you need any more info. Thanks
    Last edited by jat421; 04-18-2010 at 07:59 AM.

  2. #2
    Master n00b Matty_Alan's Avatar
    Join Date
    Jun 2007
    Location
    Bloody Australia Mate!
    Posts
    96
    they way i would do it is make a small array of how ever many possible answers you want to have, fill all the elements with a random number, then...
    generate a random number between 0 and the biggest element to load in the right answer then

    take input of the element x

    then test the element to see if it was true or not

  3. #3
    Registered User
    Join Date
    Jan 2005
    Posts
    77
    Thanks for your help!!. That makes sense.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Should I use a game engine in making a RPG game?
    By m3rk in forum Game Programming
    Replies: 6
    Last Post: 01-26-2009, 03:58 AM
  2. 20q game problems
    By Nexus-ZERO in forum C Programming
    Replies: 24
    Last Post: 12-17-2008, 04:48 PM
  3. PC Game project requires c++ programmers
    By drallstars in forum Projects and Job Recruitment
    Replies: 2
    Last Post: 02-21-2006, 11:23 PM
  4. Help With Making Full Screen Game Windowed!
    By rented in forum C++ Programming
    Replies: 4
    Last Post: 06-10-2004, 09:34 AM
  5. Making a game
    By KneeGrow in forum Game Programming
    Replies: 1
    Last Post: 04-16-2004, 12:40 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21