Hi-Lo
Higher or lower? Guess right and your streak grows; guess wrong and it is over. The new tools: AND to judge a guess, and your own card graphics to deal it.
Hi-Lo is the classic higher-or-lower card game. A card is dealt face up; the next sits face down. Will it be higher or lower? Guess right and your streak grows. Guess wrong and it is over — so the longer your streak, the more there is to lose.
By now the structure is familiar: RND to deal, INPUT to guess, a streak counter, a rating,
a title and a replay loop — all from earlier games. Hi-Lo adds two genuinely new things.
The first is AND. A higher-or-lower guess is only right when two things hold at once —
the player said "higher" and the new card is in fact higher. AND lets one IF test both,
and an "ok" flag collects the verdict from a short stack of such tests. The second is your
own graphics: instead of printing the number 8, you deal the eight of spades — a real card
drawn from a custom suit symbol you design yourself and POKE into the Spectrum's character
set.
What you will build:
- The guess —
ANDto judge it, anokflag to record it (the new logic) - A streak that grows on each hit and ends on a miss — a loop that runs until you are wrong
- Real cards — a user-defined graphic per suit, drawn by a card subroutine (the new graphics)
- Feedback — a border flash, a beep, and a colour for a correct call
- A game-over screen with your streak, your best so far, and a rating — then play again
- The design concept: press your luck — every hit raises the stakes
6 units. About 5–7 hours. This builds on Meet BASIC — start there if you haven't.
Unit roadmap
The guess
Higher or lower with AND, then a streak to protect
The cards
Real card graphics, and feedback that rewards a hit
The game
Losing well, a best score, and the title screen