rai_gandalf's Avatar, Join Date: Nov 2005
Go4Expert Member
oh! didnt know that .... alright then, that settles it.

Ciao,
Rajiv
Peter_APIIT's Avatar, Join Date: Apr 2007
Contributor
Hello everyone, what is hangman? Sorry for my sutpidness.

Thanks for oyur explanations.
h4rapture's Avatar, Join Date: Nov 2007
Newbie Member
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's Avatar, Join Date: Nov 2007
Newbie Member
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's Avatar
Ambitious contributor
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
  |   /-\
  |    |
  |   /-\

Last edited by oogabooga; 17Jan2008 at 01:39..
skp819's Avatar
Contributor
you should explain some thing about your program.
you should use some comment to explain you program working.
Erol's Avatar, Join Date: Jun 2009
Newbie Member
Hi guys ,I have just done my C# hangman program.If somebody needs that send me an e-mail.Thanks Erolaktekin@hotmail.com
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
Quote:
Originally Posted by Erol View Post
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's Avatar, Join Date: Jun 2009
Newbie Member
where's a code?
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
Quote:
Originally Posted by akanglil View Post
where's a code?
Right at the top of this thread. - Hangman game source code