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

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




PostPosted: Mon Jun 02, 2003 12:23 pm   Post subject: Stuck On Hangman

I got help and now I decided to take my source code down
Sponsor
Sponsor
Sponsor
sponsor
Tony




PostPosted: Mon Jun 02, 2003 12:27 pm   Post subject: (No subject)

what you do is you declear an array of boolean to keep track of which letters were quessed already. similar to the array you use with Input.KeyDown, works same way.

Same consept applies to the displaying the list of letters. You go through a loop displaying the whole alphabet, and check your array if it was quessed or not. If it was, cross it out.
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
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: