Computer Science Canada Binary by ARP |
Author: | a random person [ Fri Dec 23, 2005 11:55 am ] | ||
Post subject: | Binary by ARP | ||
this is a brand new guessing game that i came out with, there are 2 options on or off (1 or 0) there are 5 chances to begin with a number in the corect place is worth +1 a number out of place is worth -1 use that as a hint here is the 38 line code
tell me ways for inprovement and they may be added. and please rate it |
Author: | wtd [ Sat Dec 24, 2005 2:48 pm ] |
Post subject: | |
Proper formatting of your code would improve it. |
Author: | jrblast [ Sat Dec 24, 2005 9:38 pm ] |
Post subject: | |
make the get command get 1 variable, then split the variable in 4, it would look something like this (an example made on teh spot, not modifying your code) oh, and i wont bother declarig the variables get fullNumber (1..4) digit1 := fullNumber (1) digit2 := fullNumber (2) digit3 := fullNumber (3) digit4 := fullNumber (4) it hink thats it, if that doesnt work check the string manipulation tutorial, there should be something there |