A simple roulette game set in the “Grand Homer Casino”. After a title screen with a roulette wheel drawn in user-defined graphics (“LET’S PLAY… ROULETTE!”, “Written by Jay Simpson”), you enter your name and start with $500. Each round you place a bet and choose only whether the number will be odd or even; the wheel “spins” as a burst of coloured circles and comes up with a number from 1 to 30. A win adds the stake to your account and a loss takes it away, and you can bet again or cash out.
The game has three endings. If you try to bet more than you have, the House offers a loan, and if the account goes below zero “Guido and Fang” show you to your vehicle, with a picture of the pair and a short tune. Losing everything exactly ends politely, and passing $10,000 breaks the House, with a moneybag graphic.
Program Analysis
Structure
- Lines 5 and 2480–2510: title screen, which sets up and prints the 17-character roulette wheel graphic (lines 2090–2475).
- Lines 90–1270: name, betting, odd or even choice, the spin and the result.
- Lines 1800–1900: account empty; lines 3000–3480: the loan offer; lines 3500–3710: owing the House, and the play-again prompt.
- Lines 3800–4295: breaking the House and the moneybag graphic; lines 4300–5000: Guido and Fang.
Notable Techniques
- Each picture redefines the user-defined graphics from scratch: the 8 bytes for each character are read into its own array (
a()toq()) fromDATA BINlines, then POKEd withPOKE USR "a"+x, so the same UDG letters show the wheel, the moneybag or the two heavies. - The game-over noise and the Guido and Fang effect use the TS2068’s
SOUNDcommand to program the AY sound chip directly; the other effects useBEEP. - Keys are read by polling
INKEY$in two-line loops, testing upper and lower case.
Potential Issues
- The bet is only checked against the account balance; a negative bet is accepted and turns a loss into a gain.
DIM k(8)appears twice in line 2100 (harmless), and the “Touch-up plotting” section at line 4600 contains only the REM.
Note: Type-in program listings on this website use ZMAKEBAS notation for graphics characters.