mhluska / blackjack-simulator
š Realistic blackjack simulator (practice card counting using Hi-Lo and calculate EV for any table conditions)
View on GitHubAI Architecture Analysis
This repository is indexed by RepoMind. By analyzing mhluska/blackjack-simulator in our AI interface, you can instantly generate complete architecture diagrams, visualize control flows, and perform automated security audits across the entire codebase.
Our Agentic Context Augmented Generation (Agentic CAG) engine loads full source files into context on-demand, avoiding the fragmentation of traditional RAG systems. Ask questions about the architecture, dependencies, or specific features to see it in action.
Repository Overview (README excerpt)
Crawler viewBlackjack Simulator > Practice card counting using Hi-Lo and calculate EV for any table conditions Features ⢠Simulator mode for computing EV given any table conditions ⢠Game mode for practicing basic strategy and card counting with hints ⢠No package dependencies ⢠Runs in any JS environment (CLI, browser, React Native app etc) ⢠Multi-core support in Node Usage Simulator mode Override the number of CPU cores used: Game mode See it live as a web app here. Build and run locally Use as a library (simulator mode) Result contains the following data: Use as a library (game mode) listens for a or event on . Your DOM just has to declare the following buttons somewhere for user interaction: Performance Tested on Apple M2 Max, Node v24.3, default settings (2-deck H17, I18 + Fab 4 deviations, bet spread). | Cores | Hands | Time | Hands/sec | |---|---|---|---| | 1 | 100M | ~53s | ~1.9M | | 4 | 1B | ~134s | ~7.5M | | 12 | 1B | ~65s | ~15M |