Go4Expert

Go4Expert (http://www.go4expert.com/)
-   Game Programming (http://www.go4expert.com/articles/game-programming/)
-   -   Hangman game source code (http://www.go4expert.com/articles/hangman-game-source-code-t1142/)

rai_gandalf 4Dec2006 18:29

Re: Hangman game source code
 
oh! didnt know that .... alright then, that settles it.

Ciao,
Rajiv

Peter_APIIT 12Apr2007 12:57

Re: Hangman game source code
 
Hello everyone, what is hangman? Sorry for my sutpidness.

Thanks for oyur explanations.

h4rapture 27Nov2007 01:36

Re: Hangman game source code
 
Hi I am doing a research project on a hangman program for C++ and i stumbled across this, I was wondering if someone could explain the different variables to me. I did not fully understand this. I am still in the entry levels of programming and I need to learn what variable does what for my class.

int score,loop,len,num,lup,om,luptimes,fitimes,ondtime s,antimes;

thanks :)

wolverine 28Nov2007 19:22

Re: Hangman game source code
 
Hello i am Knew to the forum and I am trying to write a hangman game for 2 players. I want to begin with a menu of 3 choices. New game, high scores and exit. If the player press the first, the game will start and ask for the “Word” .After that will scan the word. It will ask for how many wrong letters can the other player write. As a default will have 7. Every time it will ask for given word or letter. With an algorithm will compute the high scores.It Will store the names and the scores to a file if the player choose to see the high scores with the second option . Can anyone help me how to do that.
Thanks!

oogabooga 14Jan2008 03:13

Re: Hangman game source code
 
Quote:

Originally Posted by TEJUS
i want to know wheter my program is good?

For a beginner, any program that runs correctly is great.
But to learn proper style you need to study how good programs are written.
Good style consists of such things as:
* dividing a program up into subroutines (functions in C)
* not using more variables than you absolutely have to
* giving your variables informative names so readers don't have to figure out what they're for.
* comments are also useful, especially for non-trivial things (don't just say what a simple line of code does in English, that's just for textbook examples).

Also, some ascii graphics couldn't hurt!
Code:

  ______
  |    |
  |    O
  |  /-\
  |    |
  |  /-\


skp819 7Jan2009 10:51

Re: Hangman game source code
 
you should explain some thing about your program.
you should use some comment to explain you program working.

Erol 23Jun2009 21:31

Re: Hangman game source code
 
Hi guys ,I have just done my C# hangman program.If somebody needs that send me an e-mail.Thanks Erolaktekin@hotmail.com

shabbir 24Jun2009 09:00

Re: Hangman game source code
 
Quote:

Originally Posted by Erol (Post 50344)
Hi guys ,I have just done my C# hangman program.If somebody needs that send me an e-mail.Thanks Erolaktekin@hotmail.com

If you really want to share the code why not post them here in the forum for others to see it.

akanglil 27Jun2009 02:25

Re: Hangman game source code
 
where's a code?

shabbir 27Jun2009 08:05

Re: Hangman game source code
 
Quote:

Originally Posted by akanglil (Post 50555)
where's a code?

Right at the top of this thread. - Hangman game source code


All times are GMT +5.5. The time now is 15:39.