Simple Blackjack demo targeting the Tandy/Radio Shack Color Computer (CoCo) using the CMOC by Pierre Sarrazin and the included cardgame helpers (By Pierre Sarrazin).
Features
- Player vs Dealer gameplay
- Betting (default $5, adjustable with keys)
- Split pairs and double-down support
- Sound jingles and per-card click
- Centered UI and PMODE4 graphics (card sprites)
Controls
- Betting screen:
A=+5,Z=-5,S=+10,D=+20,B=place bet - In-play:
H=Hit,S=Stand,D=Double - Split prompt:
Y/N - After round: press
Dto deal next round,Pto play again when game over
Build
Requirements: cmoc (CMOC C compiler- http://gvlsywt.cluster051.hosting.ovh.net/dev/cmoc.html), the cardgame helper sources are in the cardgame/ subfolder. Optional: xroar for emulation.
From the project root (/home/tazrog/cmoc/blackjack):
make all
# or build manually:
cmoc -c --coco -Wfor-condition-sizes -Werror -DNDEBUG -o blackjack.o blackjack.c
cmoc -o blackjack.bin --coco blackjack.o -Lcardgame -lcardgameRun (emulator):
xroar -ui sdl -run blackjack.binNotes
- The
cardgame/folder contains the drawing/audio helpers and a prebuiltlibcardgame.aused by the Makefile. - If you modify files under
cardgame/, runmakeinside that directory to rebuild the library, or update the top-level Makefile as needed.
License: public domain (as with the original demo files).