PLAY DOMINOES in a full machine-code version which, amazingly, runs on the expanded ZX-81. Written by David Gist of Hastings, Sussex, the game is for two players. Instead of dots, the dominoes use symbols from the keyboard. After five dominoes have been played, a new game starts, and the winner is the player with the fewest penalty points at the end.
Penalty points are accrued if you try to play an illegal domino. Unfortunately you are not allowed to see your own hand, but instead have a list of which symbols remain and how many. It is up to you to remember what has been played and work out what is left from the list.
To enter the game, first type in Listing One, making sure there are at least 450 characters in the REM statement. Then run the program, and type in the number in Listing Two as you are prompted. You will be asked to input five numbers and then a checksum. The checksum is indicated in the listing by an asterisk, but you should not enter the asterisk, just the number.
When the code has been successfully entered you should delete lines 10 to 140 and substitute a line 100 RAND USR 16567. Save a copy of the program before you try it out, or you may lose the lot if there is still a mistake.
Listing 1
1 REM XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
10 LET X=16514
20 IF X=16965 THEN STOP
25 LET K=0
30 FOR N=1 TO 5
40 PRINT AT 0,0;"ENTER NUMBER"
50 INPUT A
60 PRINT A;" "
70 POKE X,A
75 LET K=K+A
80 LET X=X+1
90 NEXT N
100 PRINT AT 0,0;"ENTER CHECK";
110 INPUT A
115 PRINT A
120 IF K=A THEN GOTO 20
130 PRINT "ERROR IN CHECKSUM"
140 STOP
Listing 2
118 118 24 25 26 *311 28 29 32 33 34 *156 35 36 37 39 42 *189 44 46 209 26 19 *344 213 254 255 200 215 *1137 24 246 245 229 203 *947 71 40 5 33 113 *262 66 24 3 33 96 *222 66 126 254 165 32 *643 3 54 156 43 52 *308 225 241 201 205 147 *1019 64 0 0 128 49 *241 42 43 57 0 156 *298
View the printed page (Listing 2, first part (five numbers and a checksum per row))
156 128 41 52 50 *427 46 51 52 56 128 *333 55 46 44 45 57 *247 0 156 156 128 255 *695 245 1 0 1 205 *452 245 8 6 9 14 *282 30 175 215 13 32 *465 252 62 118 215 16 *663 244 241 60 32 43 *620 205 147 64 0 0 *416 128 13 8 34 128 *311 128 21 8 34 128 *319 128 12 8 34 128 *310 128 16 8 34 128 *314 128 23 8 34 128 *321 128 255 33 132 64 *612 17 93 64 14 16 *204 237 176 88 5 33 *539 161 64 126 238 8 *597 119 33 68 65 126 *411 238 8 119 4 32 *401 9 62 5 6 40 *122 33 0 32 24 6 *95 193 225 241 205 157 *1021 64 245 229 197 83 *818 30 2 203 71 32 *338 7 33 185 66 54 *345 177 24 5 33 66 *305 67 54 183 35 54 *393 157 213 229 205 187 *991 2 44 32 250 205 *533 187 2 37 68 77 *371 44 40 247 205 189 *725 7 126 33 142 67 *375 1 21 0 237 177 *436 225 209 32 14 29 *509 40 16 74 87 52 *269 121 186 40 213 167 *727 40 210 87 54 0 *391 90 24 147 54 0 *315 95 130 33 93 64 *415 14 15 237 177 32 *475 240 43 117 122 193 *715 225 213 229 22 2 *691 213 23 23 23 111 *393 38 30 22 8 62 *160 155 50 48 64 197 *514 213 22 8 94 203 *540 123 32 9 213 197 *574 229 205 178 11 225 *848 193 209 203 3 12 *620 21 32 237 35 209 *534 193 5 21 32 225 *476 209 21 40 4 193 *467 123 24 203 209 123 *682 6 2 197 33 142 *380 67 1 23 0 237 *328 177 193 35 53 187 *645 32 7 126 254 28 *447 32 2 24 61 122 *241 16 231 241 205 157 *850 64 254 5 32 6 *361 1 9 32 33 17 *92 32 254 4 32 6 *328 1 26 32 33 26 *118 40 254 3 32 6 *335 1 35 40 33 43 *152 40 254 2 32 6 *334 1 52 40 33 52 *178 32 61 194 60 65 *412 6 255 11 120 177 *569 32 251 195 215 64 *757 241 205 157 64 1 *668 10 5 205 245 8 *473 205 147 64 44 38 *498 50 42 0 52 59 *203 42 55 255 201 118 *671
View the printed page (Listing 2, continued)
As printed, Listing 1 loops until X=16965, but the 450 bytes of Listing 2 end at 16964, so the loop never meets that value exactly.
Note: Type-in program listings on this website use ZMAKEBAS notation for graphics characters.