Commit graph

21 commits

Author SHA1 Message Date
bf5f289720 both having blackjack should be a tie 2025-07-11 16:59:09 -07:00
673dc50ec6 Don't deal cards to dealer if player has busted 2025-07-11 16:54:10 -07:00
2e31a68de3 auto-play dealer turn if not done by results() call; idiomatically handle split turns 2025-07-10 21:48:27 -07:00
b2115a4a7e better split ace logic; more args 2025-07-10 15:57:45 -07:00
1106f1484f flag to show card count 2025-07-09 18:07:11 -07:00
48327efe20 clippy pass 2025-07-09 12:40:15 -07:00
69a4239f90 Refactor the game flow and support splits
Behaves more like a client/server, rather than just taking a decision
function. The CLI logic is more complex now, but the game is more
flexible and and support splits (basically branching the hand off)
2025-07-09 12:30:37 -07:00
cb70077f5a fix tests 2025-07-06 12:40:48 -07:00
6aeda0a22f CLI args to pick mode 2025-07-06 12:36:48 -07:00
dfdbf72188 add card count 2025-07-05 20:07:49 -07:00
821d2114d5 Use console for screen clearning and immediate single-char input 2025-07-05 19:55:51 -07:00
7229b32f03 fix typo 2025-07-05 17:31:55 -07:00
09c02447a1 add license 2025-07-05 17:30:37 -07:00
5b62addaaa more double-down fixes 2025-07-05 16:45:51 -07:00
83aa05a611 double down tweaks 2025-07-05 11:31:27 -07:00
498586344c double down - player takes exactly one card 2025-07-05 11:13:15 -07:00
de22cb02f4 Implement double-down, save interactive bank to disk 2025-07-05 08:35:23 -07:00
c114094285 add old man simulation 2025-07-04 16:51:13 -07:00
a2d1695203 end game when out of money 2025-07-04 14:39:15 -07:00
10d00c8ef5 bet retries on invalid input 2025-07-04 14:37:29 -07:00
0a72da768e initial commit - basic TUI blackjack game 2025-07-04 14:15:56 -07:00