Blackjack in Elm
February 4, 2018 ยท View on GitHub
Getting started
- You need to have Elm 0.18 installed on your machine.
Compile this project with:
elm make src/Main.elm --output js/elm.js
Run the tests:
elm test
Then view it:
elm reactor
Key Elm Modules and Types
in src/
BasicStrategy- Basic Strategy EngineBasicStrategyView- Html elements of the Basic StrategyCard- Dealing and Card manipulationsDealerStand- Logic for Dealer to stand at 17Flash- Status and Results of Game displayed to userMain- Entry Point for Elm AppScore- operations overScoresScore.Score- (hard, soft)
TODO
- Hit
- Stand
- Surrender
- Statistics
- Wager
- Split
- Dealer cards dont flip if dealer is dealt a blackjack on the first hand
- Double Down