Skip to content

Instantly share code, notes, and snippets.

@tomaes
Last active June 26, 2020 17:59
Show Gist options
  • Save tomaes/27b6b4582d4a7729e007fe0b7031fb70 to your computer and use it in GitHub Desktop.
Save tomaes/27b6b4582d4a7729e007fe0b7031fb70 to your computer and use it in GitHub Desktop.
Decipher the mangled multicolor mode letters and react quickly. 50+ rounds for the ending. Part memory game, part reaction game in 3 lines of CBM Basic v3.5+ (Commodore 128/+4)
0 graphic3,1:m=999:do:c$=chr$(rnd(1)*26+65):char,rnd(1)*40,rnd(1)*25,c$:s=s+t*r
1 r=r+1:t=400-r*5:do:geta$:t=t-1:s=s+(a$<>c$)*m-(a$="")*m:loopwhilea$<>c$andt>.
2 loopwhilea$=c$:graphic.,1:print"#"r"score:"s"letter:"c$:ifr>49thenprint"wow!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment