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

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




PostPosted: Thu Nov 24, 2011 3:38 pm   Post subject: Hangman layout

Can someone please tell me a step by step layout of how to place a hangman game? i can do the coding i just want to here the basics of how to get it on the screen. Anyone who can help me do this will earn themselves some bits.
Sponsor
Sponsor
Sponsor
sponsor
Insectoid




PostPosted: Thu Nov 24, 2011 3:43 pm   Post subject: RE:Hangman layout

Write a bunch of procedures that draw things (things like arms, and heads). When you pick an incorrect letter, execute one of those procedures.
Velocity




PostPosted: Thu Nov 24, 2011 3:55 pm   Post subject: RE:Hangman layout

no no lol, i know that, but how do i make it generate a real word? but 5 letters max, how would i go about doing that?
Insectoid




PostPosted: Thu Nov 24, 2011 4:05 pm   Post subject: RE:Hangman layout

You'll need a list of words to choose from. A text file full of words should do it. Read 'em into an array, pick one at random, and there you go!
Velocity




PostPosted: Thu Nov 24, 2011 4:09 pm   Post subject: RE:Hangman layout

thanks, here's some karma Smile
Velocity




PostPosted: Thu Nov 24, 2011 4:13 pm   Post subject: RE:Hangman layout

and how do i import them into an array? should i keep my files in a library? <<< of 2 files loool.
Velocity




PostPosted: Thu Nov 24, 2011 4:20 pm   Post subject: RE:Hangman layout

how do i make my array read the words from my txt file?
Insectoid




PostPosted: Thu Nov 24, 2011 5:39 pm   Post subject: RE:Hangman layout

All of this is very, very basic file i/o. Check a tutorial.
Sponsor
Sponsor
Sponsor
sponsor
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  [ 8 Posts ]
Jump to:   


Style:  
Search: