JAMGame: Just Another Memory Game (ZX81)

JAMGame is just another memory videogame, inspired by the well-known Simon electronic game, for the Sinclair ZX81 homecomputer.

JAMGame screenshot.
JAMGame: third level. The sequence to reproduce ends with “4” and the player just input the “1234” sequence.

JAMGame is my 3rd entry to the 11th edition (2022) of the BASIC 10 Liner Contest, PUR-80 category Although some memory games had already been submitted to the past editions of the contest, there was no 10-statements version I was aware of, so I coded it 😉

You can either play online (mobile devices not supported) or download the game with source code and full documentation by surfing to JAMGame page on itch.io.

Game description

JAMGame is a single-player memory game. A round in the game consists of the computer showing a sequence of pseudorandom numbers in the range between 1 and 4, after which the player must reproduce that order by pressing the corresponding keys, followed by Enter. As the game progresses, the number of buttons to be pressed increases. The initial length of the sequence is 3. If the player types the wrong sequence, the game is over and the program must be RUN again for another play. Two alternating graphics characters help distinguishing the single digits of the sequence to reproduce. When the sequence presented by the computer is over, the ░ character is displayed near the last digit.

JAMGame gameplay video (recorded with ZEsarUX emulator).

Program listing

1 LET L=3
2 LET A$=""
3 FOR I=1 TO L
4 LET A$=A$+STR$(1+INT(RND*4))
5 PRINT AT 0,0;"LEVEL:";L-2,,A$(I);" ";CHR$(9+(I/2=INT(I/2))*(I<L)-1*(I=L))
6 NEXT I
7 INPUT B$
8 IF B$<>A$ THEN STOP
9 LET L=L+1
10 GOTO 2

You can find the explanation of the source code in the .zip archive available for download on the project page on itch.io.

Links & references:

Leggi in Italiano

Leave a comment

Your email address will not be published. Required fields are marked *