cool dude wrote:
error proofing is good too. if u enter a letter your program crashes. also when it says would u like to play again and u enter any letter it will play again, but wat u should have instead is if they enter somethin other than yes or no then it should prompt the user saying invalid answer or somthin like that. for error proofing check out the turing tutorial.
a simple way to program that little problem is this
code: |
%this will just keep going until an appropriate input has been made
loop
get answer
exit when answer = "y" or answer = "Y" or answer = "n" or answer = "N"
end loop
|