
Here is a challenging game for those of you who are tired of shoot-em-ups and pac-persons. The computer “thinks” of a four digit number, and your job is to guess (or rather, deduce) the number. Each time you guess, the computer gives you a clue which will tell you how many digits are correct and in the right place (A), correct but in the wrong place (B), or completely wrong (C). Note that the order of the letters in the clue DOES NOT necessarily correspond with the position of the digits!
You have the option of selecting five levels of play. At the hardest level, only your current guess is displayed, making it a challenge to memory as well as logic.
Ten “sets” constitute a game. The average number of guesses it takes is your score; the lower, the better. (A maximum of 15 guesses are allowed.) After a game, your name is entered into a “Hall of Fame”, which can then be saved to tape (along with the program and other variables).
Being entirely in ZX BASIC, with no “tricks,” this program can be easily converted to TS2068 or Spectrum. The changes are as follows:
1: Remove FAST and SLOW commands.
2: Replace referenes to CHR$ 118 to CHR$ 13 (as in the IF INKEY$=CHR$ 118 THEN… lines).
3: Replace dummy FOR-NEXT loops with PAUSE (the FOR-NEXT was used instead of PAUSE to prevent the blink that results from using PAUSE with the ZX81). For example, delete lines 300 and 305 and use 300 PAUSE 60 instead.
4: Modify the SAVE command at 2590 as desired. For example, you might want to use:
2590 SAVE "scr" SCREEN$: SAVE "guess" LINE 3000
To load the program and screen, use LOAD “scr” CODE: LOAD “guess”
5: Add color, FLASH, sound (BEEP), and lower-case as desired.




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