Computer Science Canada

Hangman layout

Author:  Velocity [ 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.

Author:  Insectoid [ 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.

Author:  Velocity [ 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?

Author:  Insectoid [ 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!

Author:  Velocity [ Thu Nov 24, 2011 4:09 pm ]
Post subject:  RE:Hangman layout

thanks, here's some karma Smile

Author:  Velocity [ 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.

Author:  Velocity [ 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?

Author:  Insectoid [ 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.


: