arjun

release v0.1.0 of abs jan 25 2025

Today I’m releasing the first version of abs (arjun’s blackjack software). It’s a small personal project that I plan on using for game analysis. Players all currently play by blackjack basic strategy, but there will be modes for card counting and “gut”-based playing. Implementing multiple decks for a single table is next on the todo. Python best practices were probably ignored.

Here’s an example in the repl.

>>> from blackjack.game import Game
>>> game = Game(2)
>>> 
>>> game.start_round()
Dealer: 4 of 
Player: Player 0 ([10], 90) [[8 of , 9 of ]]
Player: Player 1 ([10], 90) [[3 of , 2 of ]]
>>> 
>>> game.play_round()
Dealer: 4 of 
Player: Player 0 ([10], 90) [[8 of , 9 of ]]
Player: Player 1 ([10], 90) [[3 of , 2 of , King of ]]
>>> 
>>> game.end_round()
Dealer [4 of , Queen of , 3 of ]
Player Player 0 ([10], 90) pushes!
Player Player 1 ([10], 90) loses!
>>> 
>>> game.show_table()
Dealer: None
Player: Player 0 ([], 100) []
Player: Player 1 ([], 90) []

Source available on GitHub