topher6345 / blackjack-elm

Simple Blackjack Card Game

Home Page:https://simple-blackjack-in-elm.herokuapp.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Simple Blackjack Card Game

https://simple-blackjack-in-elm.herokuapp.com/


Languages

Language:Elm 88.9%Language:HTML 11.1%