QB64.org Forum
Active Forums => Programs => Topic started by: bplus on June 27, 2021, 04:17:45 pm
-
_Title "Simple Simon" 'b+ 2021-06-27 Print "Simon says repeat all that:"
No Double Parking (with colons)
-
Very impressive, bro. WHILE 1 is a very interesting line, since you are leaving with an EXIT, very clever. Im interested in the double check of INKEY$. Can you explain me why this was needed? It always was hard to me to get the difference between WHILEs and LOOPs.
Cheers bro.
-
Pretty compact one! I was trying to shorten it more though for fun, using k$ = INPUT$(1) gained 3 lines (can ditch WHILE/INKEY$/WEND after).
Makes me remember a childhood song/poem called 'Simple Simon'. Hadn't thought of that in years.
- Dav
-
@Juan Tamarit
Looks like Dav has pointed to a better method for getting a keypress than
so all the above does is get a keypress that something as opposed to nothing...
Thanks both of you :)
-
Now that's minimalistic. Interestingly, with numbers I got much farther than with colors/sounds. We are probably more wired to make logical connections with them.
-
Now that's minimalistic. Interestingly, with numbers I got much farther than with colors/sounds. We are probably more wired to make logical connections with them.
Yeah numbers hold patterns, not sure alphabetic characters would hold up as well.
@FellippeHeitor thanks for inspiration from Genius.