Skip to content

A bootable Blackjack written in 508 bytes

License

Notifications You must be signed in to change notification settings

barrettotte/bootjack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bootjack

A bootable Blackjack written in 508 bytes.

docs/bootjack.png

Limitations

This is a minimal blackjack so its single deck and missing bets, splits, etc.

I ran out of space to print scores per round, but blackjack isn't hard to calculate.

I also ran out of space for good prompts, so when its the player's turn: h=hit, q=quit, and any other char is considered a stand.

The same type of logic exists for when the game is over. q=quit and any other char is considered to be "play again".

Running Locally

Build and run via QEMU with - make qemu

I also made a little C prototype in c/ that can be run with - gcc c/blackjack.c -Wall -o blackjack; ./blackjack.

References