A Blackjack implementation written in Janet. Runs in the command line.
- Install Janet per the instructions.
- Clone this repo
- Run
jpm deps
to install dependencies to your Janet path - Run
janet blackjack.janet
to run in interpreted mode
Run jpm build
to build the binary. You can run it, install it to your Janet bin path with jpm install
, and copy it wherever you like otherwise (e.g. /usr/local/bin
).
Cancel on any prompt with Ctrl-C
.
Dealer stands on soft 17 and Blackjack pays 3-to-2.
You can set autobetting if you don't care about entering a wager amount every hand. When asked for your betting amount, type autobet 5
to set $5 as the automatic betting amount. You can later cancel your autobet by typing c
when asked for your move.
Flags are explained by running with --help
.
- Splitting is currently not implemented.
- Configure Blackjack payout
- Configure money amount
- Configure if dealer hits on soft 17
- Insurance
- Count number of hands played
- Feedback on Basic Strategy
- More concise view