Please Help with a Console Hangman

Reply Forum
Forum postc# beginner @ 2010-05-13 20:27:50
ReplyReply to
How do I do this, PLEASE HELP SOON, I need soemthing to go on...

function main

wordboard
hangboard
hangboardDescription = "YOUAREHANGED"
secretword
guessedletters


secretword = PromptForSecretWord
SetupWordboard

//Draws the game display
function UpdateGameDisplay
Write contents of "hangboard" string to the console.
Write contents of "wordboard" string to the console.
Write contents of "guessedletters" string to the console.
end function

//Returns whatever the user enters, checks for errors
string function GetUserInput
Get character from console
Check that string is a single character and is valid (A-Z)

return input
end function











© net-tutorials.com 2006 - 2010