Skip to content

Instantly share code, notes, and snippets.

@rigred
Created October 30, 2017 09:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rigred/484e8ba77578a4ac6fff983995e6b899 to your computer and use it in GitHub Desktop.
Save rigred/484e8ba77578a4ac6fff983995e6b899 to your computer and use it in GitHub Desktop.
Bad BASIC - Stranger Things
10 DIM FourDigitPassword INTEGER
20 FOR i = 0 TO 9
30 FOR j = 0 TO 9
40 FOR k = 0 TO 9
50 FOR l = 0 TO 9
60 FourDigitPassword = getFourDigits(i,j,k,l)
70 IF checkPasswordMatch(FourDigitPassword) = TRUE THEN
80 GOTO 140
90 END
100 NEXT i
110 NEXT k
120 NEXT j
130 NEXT i
140 PRINT FourDigitPassword
150 END
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment