Written some cool source code? Upload it to Programmer's Heaven.

Hangman

Submitted By: nermus50
Rating: starstarstar (Rate It)
Share: Share By Email By Email

HangMan Game in C++
(created with dev-c++)

* 1-2 players
* 3 levels of difficulty
* more than 50000 words

Read info.txt for proper play.
Enjoy!


File Details
NOTE: Some downloads must be obtained through publishers´s site.
Do you want to get your software listed on this site? Go to our submissions area.

Screenshot


Details

File Name:
C:\HungMan.zip
Product homepage:
Order page:
Languages:
C++
Platforms:
Unknown
Release date:
License:
Unknown
Size:
102 KB
Price/Fee (US$):
Unknown
Number of downloads:
527

Comments (2)

Nice try, but clumsy starstar   Posted by: bilderbikkel on Friday, February 06, 2009

Sure, Hangman is not that exciting, but it might be a great beginners' example. IMHO it is not, because of the many clumsy choices:
- The dictionary file must be in C:\. Why not in the same directory?
- The name of the player must be given by editing a text file. Why not in the program itself?
- I was given the message I correctly guessed a nine-letter word I only had one letter of. Where I did not even had the slightest clue (yet)...
- I did not succeed in quitting the program, by typing 'n' after the question if I wanted to continue
- The dictionary is unnecessarily implemented using a manually updated linked list, where a std::vector would be a much better and easier choice.

So I hope the author will rewrite his/her code and repost it as it might serve as a good beginners' example.

reply to bilderbikkel starstarstarstar   Posted by: Creator on Monday, February 16, 2009

Try to answer to these questions on your own since you are so critical about the way this game was written. It seems that If I wanted to do what you are suggesting I would have.
A linked list is a common structure that many would want to learn. Not to mention that most will have to face it sometime while learning how to program structurally.
I suggest you write the code using vectors and post it.

Add Your Rating

(Not published)
star
starstar
starstarstar
starstarstarstar
starstarstarstarstar
 
Popular resources and forums for programmers on Programmersheaven.com
Assembly, Basic, C, C#, C++, Delphi, Java, JavaScript, Pascal, Perl, PHP, Python, Ruby, Visual Basic
© Copyright 2009 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Publisher: Lars Hagelin. Read the latest words from the publisher here.
Be the first to sign up for Lars Hagelin’s In-depth Outsourcing Newsletter here.
bootstrapLabs Logo A bootstrapLabs project.