Hangman game source code

Discussion in 'Game Programming' started by TEJUS, Aug 9, 2006.

  1. shipra123

    shipra123 New Member

    Joined:
    Oct 13, 2009
    Messages:
    62
    Likes Received:
    0
    Trophy Points:
    0
    I will try to play it and will surely share the feedback.
     
  2. Erum Malik

    Erum Malik New Member

    Joined:
    May 16, 2010
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    i really think that this is the most valuable site i have ever had. itx very easy to find the stuff of my interest. gota gona be the best progrmmer in the world. Inshallah. :)
     
  3. seangtz

    seangtz New Member

    Joined:
    Jun 6, 2008
    Messages:
    126
    Likes Received:
    3
    Trophy Points:
    0
    Hey, I'm getting error in spacing.....plz help
     
  4. unni krishnan.r

    unni krishnan.r Member

    Joined:
    Apr 20, 2010
    Messages:
    209
    Likes Received:
    4
    Trophy Points:
    18
    Occupation:
    education
    Location:
    Kerala
    Home Page:
    http://blogofunni.blogspot.com
  5. patrick198

    patrick198 New Member

    Joined:
    Jan 25, 2011
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    Great post! It's very nice. Thank you so much for your post.
     
  6. rvinnparker

    rvinnparker New Member

    Joined:
    Sep 4, 2011
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    0
    hi im just a beginner and i tried the codes. the codes are working but i dont understand some part of it. can someone explain it to me i really need to understand the flow of this code. thank you very much
     
  7. Syperus

    Syperus New Member

    Joined:
    Sep 2, 2011
    Messages:
    45
    Likes Received:
    9
    Trophy Points:
    0
    Location:
    127.0.0.1
    Which part are you not understanding? When you say flow are you talking about the flow of the program in general, or the loops. The general flow of the program is pretty self explanatory if you know the basics of programming. For loops, the statements within the loop are executed until the condition is met.
     
  8. rvinnparker

    rvinnparker New Member

    Joined:
    Sep 4, 2011
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    0
    thank you for the reply sir. the one that i dont undertsand is the declaration of the variables (int score,loop,len,num,lup,om,luptimes,times,fitimes,ondtimes,antimes).
     
  9. rvinnparker

    rvinnparker New Member

    Joined:
    Sep 4, 2011
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    0
    thanks for the reply sir. im just a 4th year HS so its hard for me to understand it. can you pls explain to me whats the meaning of the int score,loop,len,num,lup,om,luptimes,times,fitimes,ondtimes,antimes.
     
  10. Syperus

    Syperus New Member

    Joined:
    Sep 2, 2011
    Messages:
    45
    Likes Received:
    9
    Trophy Points:
    0
    Location:
    127.0.0.1
    That line is defining several variables as integers. It's easier to declare variables like this when your going to have many variables with the same data type instead of having to do:
    Code:
    int score;
    int loop;
    int len;
    int num;
    int lup;
    int om;
    int luptimes;
    int times;
    int fitimes;
    int ondtimes;
    int antimes;
    
     
  11. rswest

    rswest New Member

    Joined:
    Mar 4, 2013
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    hello. this is my first post here. thank you for the code. now i understand how the game actually works. but i have a question. instead of typing the word to guess how can i use files r text files as source for the words to be guessed? im taking up programming as a minor subject in engineering and i really am finding it to be fun. i also have an assembly subject which is driving me nuts. so far i am finding C to be easier :D can anyone help me? thanks
     
  12. Syperus

    Syperus New Member

    Joined:
    Sep 2, 2011
    Messages:
    45
    Likes Received:
    9
    Trophy Points:
    0
    Location:
    127.0.0.1
    Use Regex. Have all the words in a .txt file and fstream to read them and use regex to split it up into chars.
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice