Computer Science Canada Help Me Please Im Stuck! (hangman) |
Author: | manmanman [ Sat Jan 24, 2009 7:22 pm ] | ||
Post subject: | Help Me Please Im Stuck! (hangman) | ||
Im making hangman and im trying to figure out how to reset all the varialbe if i wanna play more than once. im using includes in 1 main files so i cant really provide all the code. thanks in adavanced if you can help |
Author: | Homer_simpson [ Sat Jan 24, 2009 7:34 pm ] | ||||||
Post subject: | Re: Help Me Please Im Stuck! (hangman) | ||||||
why? shouldn't it be
Mod Edit: Remember to use syntax tags! Thanks ![]()
|
Author: | manmanman [ Sun Jan 25, 2009 4:07 pm ] | ||||||
Post subject: | Re: Help Me Please Im Stuck! (hangman) | ||||||
Homer_simpson @ Sat Jan 24, 2009 7:34 pm wrote:
why? shouldn't it be
Mod Edit: Remember to use syntax tags! Thanks ![]()
i tried that but then i does not get the Y or y so that make it really difficult. |
Author: | TheGuardian001 [ Sun Jan 25, 2009 5:36 pm ] | ||
Post subject: | Re: Help Me Please Im Stuck! (hangman) | ||
it will still get y or Y... it just won't use it. that exit when statement causes the game to end even if they say they want to play again. as for the resetting of variables:
etc etc etc. just set it to either the original value, or a value that will never happen unless you reset it. |