Computer Science Canada Help with random number guess game |
Author: | josh [ Fri Feb 13, 2004 9:01 pm ] | ||
Post subject: | Help with random number guess game | ||
I am trying to create this random number guess game and I need a little help. I want to make it so that once the user is asked to confirm if they are ready to begin (y/n) that either answer will start the game but will put a different "put" stamtent on the screen I am also having troubl writing the statment that ends the game (or if n e one can help with a loop restarts the game) if the user enters anything but an n or y
|
Author: | Cervantes [ Fri Feb 13, 2004 9:22 pm ] | ||||||
Post subject: | |||||||
shoulda read up on the syntax of if statements.. when you use 'or' / 'and' it doesn't keep the same beginning hence
is wrong. you need it to be like so
also it should be and not or. so here's your code with that problem fixed:
use a for statement for ending the game. read up on those and play around with it first, once you've tried your best only then come back here and ask for help |
Author: | josh [ Fri Feb 13, 2004 9:35 pm ] |
Post subject: | |
thanx for the help but I have read about 5 diffrent tutorials and I still can't figure out loops. I am not trying to sue this forum to cheat on a project becasue this isn't even for school. i am jsut trying to self teach myself turing. |
Author: | Cervantes [ Fri Feb 13, 2004 9:43 pm ] |
Post subject: | |
good job. self teaching is pretty hard I'll write you a loop tutorial tommorow morning. sorry I gotta get to bed early tonight |
Author: | josh [ Fri Feb 13, 2004 9:44 pm ] |
Post subject: | |
thanx for all the help and I really apreciate the tutorial. |
Author: | Cervantes [ Sat Feb 14, 2004 11:24 am ] |
Post subject: | |
All done the tutorial http://www.compsci.ca/v2/viewtopic.php?p=33003#33003 hope it helps |
Author: | josh [ Sat Feb 14, 2004 12:20 pm ] |
Post subject: | |
thanks for the help this is a great tutorial. Really easy to understand |