Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Hangman
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Dietz1988




PostPosted: Tue Apr 26, 2005 11:14 am   Post subject: Hangman

Im trying to make a game of hangman to pass some of my boring time away. I know that i have to draw the hangman seperatly and import the lines when he guesses a character wrong, but im trying to set up the basic for structures. For example, i am going to ask the user to enter a word, then ask him to enter a clue that will be shown to the next person to guide him towards the right answer. I need to turn the actual answer into lines..

EG.

put "Please enter a word belonging to a specific category"
get answer :*
(example will use as circus)
cls
put "Now enter a clue to help the user figure out your word"
get clue :*
(Clue will be an entertaining show)
cls

(Circus turned into the appropriate # of _'s)

_ _ _ _ _ _

Clue: An Entertaining Show

Then off to the left/right i will have the man being drawn each time the user guesses a wrong letter, and have the letters he guessed wrong/right stored in a varible set up with an error trap incase the user enters the same letter twice. Just looking for some help on how i would go about those first few steps. thanks Very Happy
Sponsor
Sponsor
Sponsor
sponsor
jamonathin




PostPosted: Tue Apr 26, 2005 1:44 pm   Post subject: (No subject)

I'd help you but like everyone else, I've done hangman last year for when I first started programming, and found it the most annoying games in the world. Use the search tool, I'm sure you'll find plenty.
http://www.compsci.ca/v2/search.php
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 2 Posts ]
Jump to:   


Style:  
Search: