Tiles

Author(s): Dick Wagner
Publication: The Plotter
Pub Details: The Plotter v10 n8 (Volume 10, Issue 8)
Pages: 4-5

This is a computerized old game where the player is to rearrange 15 letters of the alphabet in the format identified as “finished”. “Original” is the display the player starts with. This can be altered by changing line 345.

The program appears to be cheat proof the way it is set up. It will not permit jumps.

The first step at each move is to select the letter to move into the vacant space by refering to the number code displayed. The second step is to identify location where the move is to be made to (the vacant spot). The codes are reference to the 16 locations and not the letters. Thus any other letters can be used as well as numbers. Using numbers can make it quite confusing.

The program has a counter to keep track of your moves. The author ( K. Mahogany/ Tim Hartnell) claim the puzzle can be solved with about 40 moves. This is subject to question so give it a try.

  10 REM TILES
20 REM K. MAHAGONY, 1982 (2K TIMEX)
30 GO SUB 330
50 GO SUB 200
90 PRINT AT 16,3;"WHICH ONE TO MOVE??"
100 INPUT X
110 IF A(X)=CODE " " THEN GO TO 100
120 PRINT AT 16,3;" TO WHERE?? "
130 INPUT Y
140 IF A(Y)<>CODE " " THEN GO TO 130
150 LET A(Y)=A(X)
160 LET A(X)=CODE " "
170 LET GO=GO+1
180 GO TO 50
200 REM ***PRINT OUT***
210 PRINT AT 0,3;"GO NUMBER ";GO
220 PRINT
225 PRINT
230 PRINT CHR$ A(1);" ";CHR$ A(2);" ";CHR$ A(3);" ";CHR$ A(4)," 1 2 3 4 "
240 PRINT CHR$ A(5);" ";CHR$ A(6);" ";CHR$ A(7);" ";CHR$ A(8)," 5 6 7 8"
250 PRINT CHR$ A(9);" ";CHR$ A(10);" ";CHR$ A(11);" ";CHR$ A(12), " 9 10 11 12"
260 PRINT CHR$ A(13);" ";CHR$ A(14);" ";CHR$ A(15);" ";CHR$ A(16)," 13,14,15,16"
320 RETURN
330 REM ***INITIALIZE***
340 DIM A(16)
345 LET A$="DJNBGLAEO HMCKIF"
350 FOR B=1 TO 16
360 LET A(B)=CODE A$(B)
370 NEXT B
380 LET GO=1
410 RETURN
ORIGINAL          FINISHED

D J N B           A B C D
G L A E           E F G H
O   H M           I J K L
C K I F           M N O

Note: Type-in program listings on this website use ZMAKEBAS notation for graphics characters.