Thread: New game: Hangman!

  1. #1
    Registered User abrege's Avatar
    Join Date
    Nov 2002
    Posts
    369

    Exclamation New game: Hangman!

    Try it out, post what you think! I apologize if the code is sloppy and the words are lame
    I am against the teaching of evolution in schools. I am also against widespread
    literacy and the refrigeration of food.

  2. #2
    Rambling Man
    Join Date
    Jan 2002
    Posts
    1,050
    Not too bad. It's pretty good.

    I have a few suggestions for you, though.

    1) do a check to make sure the player hasn't already made that guess. you can do this by storing the answers in an array then check to see if the guess has been made by going through a simple for loop.

    2) when the player finally guesses the right word display the whole word on the spaces then do the "ending" part.

    3) ask the user to pick a difficulty level then dynamically create the array for the answers based on the difficulty.

    4) randomly choose the word you're going to include. also, include a lot more words.

    then again only do these if you're really interested in making the game. but for a good start out game the game was fun. good job.

  3. #3
    Registered User abrege's Avatar
    Join Date
    Nov 2002
    Posts
    369
    Thanks, I'll atempt all those!
    I am against the teaching of evolution in schools. I am also against widespread
    literacy and the refrigeration of food.

  4. #4
    Registered User adamviper's Avatar
    Join Date
    Nov 2002
    Posts
    132
    it didnt work too good for me it said i was right when i wasnt and was slow but better than i could have done

  5. #5
    Registered User abrege's Avatar
    Join Date
    Nov 2002
    Posts
    369
    If you're interested, here is the updated game. Fixed some things and added more words. Source code is also cleaner. Should be better
    I am against the teaching of evolution in schools. I am also against widespread
    literacy and the refrigeration of food.

  6. #6
    Registered User abrege's Avatar
    Join Date
    Nov 2002
    Posts
    369
    Doh
    I am against the teaching of evolution in schools. I am also against widespread
    literacy and the refrigeration of food.

  7. #7
    Registered User -Xp-'s Avatar
    Join Date
    Nov 2002
    Posts
    28
    have it read a .txt file containing a list of words
    No I DIDN'T steal my name from Misro$ofts OS, it's pure coincidence.

    The lines around my name (-) are only there because i needed a name over the 3 character minimum letter limit

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Please comment on my c++ game
    By MegaManZZ in forum Game Programming
    Replies: 10
    Last Post: 01-22-2008, 11:03 AM
  2. craps game & dice game..
    By cgurl05 in forum C Programming
    Replies: 3
    Last Post: 03-25-2006, 07:58 PM
  3. HELP!wanting to make full screen game windowed
    By rented in forum Game Programming
    Replies: 3
    Last Post: 06-11-2004, 04:19 AM
  4. hangman game, copied staight from book.. 31 errors?!?!?!?!
    By Blizzarddog in forum C++ Programming
    Replies: 10
    Last Post: 10-25-2002, 12:20 AM
  5. Using 'if' with char arrays or string objects
    By c++_n00b in forum C++ Programming
    Replies: 36
    Last Post: 06-06-2002, 09:04 PM