Number Race

This is a discussion on Number Race within the Game Programming forums, part of the General Programming Boards category; I just started learning C++ a couple weeks ago and here's my first 'official' program. It's based on a guessing ...

  1. #1
    Laguna
    Guest

    Cool Number Race

    I just started learning C++ a couple weeks ago and here's my first 'official' program.

    It's based on a guessing game except that you move one space forward on a race track every time you get the number right.

    I've included the .exe, the .cpp file, and the Visual C++ project file.

    Oh, and please tell me what you think.

    Download it at http://www.geocities.com/laguna_lorie2002/nr.html

  2. #2
    Registered User
    Join Date
    Feb 2002
    Posts
    93

    Not bad..

    Not bad mate... though in your instructions it says pick a # 1-10 and in the game sometimes the number is 0.
    Also, after you play a game and win.. if u click New game again it doesn't reset the game it starts off where it left off (which is the end of the game)
    Might want to put a prompt while playing the game..

    "Pick a #(0-10): "

    so for someone who didn't read the instructions would still know what to do as most people who play games.. or atleast me are too lazy to read instructions...

    Oh also the game freaks out and goes into an infinite loop if an integer is not inputed .. u might want to compare user input with a range of ASCII values to make sure user inputed a number

    Good game though... simple, yet fun.. nicely done

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Need help with this compiler error
    By Evangeline in forum C Programming
    Replies: 7
    Last Post: 04-05-2008, 10:27 AM
  2. Calculating next prime number
    By anilemon in forum C Programming
    Replies: 8
    Last Post: 04-17-2006, 11:38 AM
  3. Prime number program problem
    By Guti14 in forum C Programming
    Replies: 11
    Last Post: 08-06-2004, 05:25 AM
  4. parsing a number
    By juancardenas in forum C Programming
    Replies: 1
    Last Post: 02-19-2003, 01:10 PM
  5. Random Number problem in number guessing game...
    By -leech- in forum Windows Programming
    Replies: 8
    Last Post: 01-15-2002, 05:00 PM

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