Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Author
Message
missjk
14
Years of Service
User Offline
Joined: 23rd Apr 2012
Location:
Posted: 23rd Apr 2012 19:49
so we are going the hangman game like everyone else, and what i was wondering if anyone knew how to make it that when you use the same letter twice that it wont count it against you but tell you \" you have used that latter already\" or something along though lines. also to make it cap sensitive.
Andrew_Neale
16
Years of Service
User Offline
Joined: 3rd Nov 2009
Location: The Normandy SR-2
Posted: 24th Apr 2012 00:51 Edited at: 24th Apr 2012 00:55
Just keep a record of which letters have been guessed already and check against it. You could do this in different ways but here is one example.



Hopefully that makes sense.


Previously TEH_CODERER.
thecartm
14
Years of Service
User Offline
Joined: 30th Mar 2012
Location: In your closet, hiding....
Posted: 28th Apr 2012 03:46
a = 0
b = 0
c = 0
` and so on...
if inkey$ = "a"
if a = 0
a = 1
` other things here
else
print "Already chosen"
endif
endif

Hah, my signature is meaningless.

Login to post a reply

Server time is: 2026-07-08 14:11:57
Your offset time is: 2026-07-08 14:11:57