This is an alternative site for discovering Elm packages. You may be looking for the official Elm package site instead.
Library for comparing and testing hands of Blackjack.
version 2.1.0
license MIT
native-modules False
elm-version 0.18.0 <= v < 0.19.0
Tag 2.1.0
Committed At 2017-02-16 15:07:21 UTC
elm-lang/core 5.0.0 <= v < 6.0.0 5.1.1

Modules

README

Blackjack

An Elm library providing a few utility functions for a Blackjack application. It can compare hands and calculate the best score for a player given a set of cards.

Usage

import Blackjack exposing (..)

hand1 = newHand
  |> addCardToHand (newCard Seven Diamonds)
  |> addCardToHand (newCard Ten Clubs)
hand2 = newHand
  |> addCardToHand (newCard Five Diamonds)
  |> addCardToHand (newCard Ten Clubs)

isHandBetterThan hand1 hand2 == True