Skip to content

tazrog/blackjack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Blackjack (CMOC / Color Computer)

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 D to deal next round, P to 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 -lcardgame

Run (emulator):

xroar -ui sdl -run blackjack.bin

Notes

  • The cardgame/ folder contains the drawing/audio helpers and a prebuilt libcardgame.a used by the Makefile.
  • If you modify files under cardgame/, run make inside that directory to rebuild the library, or update the top-level Makefile as needed.

License: public domain (as with the original demo files).

About

Coco Blackjack game using CMOC

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published