Skip to content

topher6345/blackjack-elm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Blackjack in Elm

Getting started

  1. 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 Engine
  • BasicStrategyView - Html elements of the Basic Strategy
  • Card - Dealing and Card manipulations
  • DealerStand - Logic for Dealer to stand at 17
  • Flash - Status and Results of Game displayed to user
  • Main - Entry Point for Elm App
  • Score - operations over Scores
  • Score.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

Releases

No releases published

Packages

No packages published