Skip to content

Instantly share code, notes, and snippets.

View juhoautio's full-sized avatar

Juho Autio juhoautio

View GitHub Profile
@jqno
jqno / anagrams.bas
Created October 12, 2011 20:46
Anagram generator from Umberto Eco's novel Foucault's Pendulum
10 REM anagrams
20 INPUT L$(1),L$(2),L$(3),L$(4)
30 PRINT
40 FOR I1=1 TO 4
50 FOR I2=1 TO 4
60 IF I2=I1 THEN 130
70 FOR I3=1 TO 4
80 IF I3=I1 THEN 120
90 IF I3=I2 THEN 120
100 LET I4=10-(I1+I2+I3)