Command line blackjack written in Lua. Requires Lua 5.4 or later.
git clone https://github.com/gdonald/blackjack-lua.git
cd blackjack-lua
./blackjack.lua
./run_tests.sh
Coverage comes from LuaCov:
luarocks install luacov
The runner prints coverage per module, writes the annotated report to luacov.report.out, and exits non-zero if any line goes uncovered.
Increase your terminal font size to see the cards better:
- Alternate Deck Types
- Variable Number of Decks
- Hand Splitting
- Vegas-style Dealer Play (Dealer hits on soft 16)
- Options Saving
https://github.com/gdonald/blackjack-lua/issues
I've written Blackjack in some other programming languages too. Check them out!

