How jhamling/cs-2110-blackjack-project works
This is a blackjack game and card-counting trainer with a graphical interface and a text-only mode. A player configures a table, places bets, plays hands against the dealer, and reviews results; optional bots play alongside them. The table coordinates dealing, counting, decisions, and settlement. Separate capabilities include count quizzes, bot strategy explanations, edge and expected-value displays, and bots-only simulations. Edges reflect shown imports, calls, or README-documented behavior; several screen implementations and wiring details were not sampled, so uncertain connections are omitted.
Main entry points: app.py Game app · table.py Round table · draw.py Drawing utilities · roster.py Bot roster
Components 29
Game experience
- Game app
blackjack/ui/app.py - Terminal mode
blackjack/ui/terminal.py - Game screens
blackjack/ui/screens
Table gameplay
- Round table
blackjack/game/table.py - Card shoe
blackjack/cards/shoe.py - Player hands
blackjack/cards/hand.py - Dealer play
blackjack/game/dealer.py - Betting and settlement
blackjack/game/betting.py - Session scores
blackjack/game/scores.py
Players and strategy
- Bot roster
blackjack/players/roster.py - Mimic bot
blackjack/players/mimic_bot.py - Basic strategy bot
blackjack/players/basic_strategy_bot.py - Hi-Lo bot
blackjack/players/hilo_bot.py - KO bot
blackjack/players/ko_bot.py - Strategy charts
blackjack/players/strategy_chart.py
Training and analysis
- Hi-Lo counter
blackjack/counting/counter.py - KO count rules
blackjack/counting/ko.py - Count trainer
blackjack/game/count_quiz.py - Bot simulation
blackjack/game/simulation.py - Bot information
blackjack/ui/screens/bot_info.py - Edge display
blackjack/ui/edge_panel.py - EV chart
blackjack/ui/ev_chart.py
Interface presentation
- Count panel
blackjack/ui/count_panel.py - Bot decision view
blackjack/ui/decision_view.py - Bot decision log
blackjack/ui/decision_log.py - Table rendering
blackjack/ui/table_view.py - Drawing utilities
blackjack/ui/draw.py - Display settings
blackjack/ui/settings.py
Other components
- Player
Connections 39
- Player → Game app: plays through
README.md - Player → Terminal mode: plays through
README.md - Game app → Round table: uses
blackjack/ui/app.py - Game app → Count trainer: uses
blackjack/ui/app.py - Game app → Game screens: selects
blackjack/ui/app.py - Round table → Card shoe: deals from
blackjack/game/table.py - Round table → Hi-Lo counter: updates
blackjack/game/table.py - Round table → Dealer play: delegates play
blackjack/game/table.py - Round table → Betting and settlement: uses rules
blackjack/game/table.py - Round table → Player hands: deals cards
blackjack/game/table.py - Round table → Bot roster: seats bots
README.md - Bot roster → Mimic bot: registers
blackjack/players/roster.py - Bot roster → Basic strategy bot: registers
blackjack/players/roster.py - Bot roster → Hi-Lo bot: registers
blackjack/players/roster.py - Bot roster → KO bot: registers
blackjack/players/roster.py - Basic strategy bot → Strategy charts: looks up
blackjack/players/basic_strategy_bot.py - Hi-Lo bot → Basic strategy bot: extends
blackjack/players/hilo_bot.py - Hi-Lo bot → Strategy charts: uses deviations
blackjack/players/hilo_bot.py - KO bot → Basic strategy bot: uses strategy
blackjack/players/ko_bot.py - KO bot → KO count rules: uses count
blackjack/players/ko_bot.py - Hi-Lo counter → KO count rules: supplies tally
blackjack/counting/ko.py - Game app → Count panel: shows count
README.md - Game app → Bot decision view: shows decisions
README.md - Game app → Bot decision log: shows log
README.md - Game app → Edge display: shows edge
README.md - Game app → Bot information: opens
README.md - Game app → Bot simulation: starts
README.md - Bot simulation → Round table: runs rounds
blackjack/game/simulation.py - Bot simulation → Bot roster: uses bots
blackjack/game/simulation.py - Game app → EV chart: offers chart
README.md - Game app → Session scores: shows saved scores
README.md - Game app → Table rendering: renders table
README.md - Table rendering → Drawing utilities: draws with
blackjack/ui/table_view.py - Count panel → Drawing utilities: draws with
blackjack/ui/count_panel.py - Bot decision view → Drawing utilities: draws with
blackjack/ui/decision_view.py - Bot decision log → Drawing utilities: draws with
blackjack/ui/decision_log.py - Edge display → Drawing utilities: draws with
blackjack/ui/edge_panel.py - EV chart → Drawing utilities: draws with
blackjack/ui/ev_chart.py - Drawing utilities → Display settings: reads layout
blackjack/ui/draw.py