Skip to content

Latest commit

 

History

History
24 lines (16 loc) · 353 Bytes

README.md

File metadata and controls

24 lines (16 loc) · 353 Bytes

ExPokerEval

Elixir implementation of a poker's hand evaluator.

Usage

ExPokerEval.get_highest(
  black: ~w(2H 3D 5S 9C KD),
  white: ~w(2C 3H 4S 8C AH)
)

# Output: {:white, :high_card, "Ace"}

ExPokerEval.get_highest(
  black: ~w(2H 3D 5S 9C KD),
  white: ~w(2D 3H 5C 9S KH)
)

# Output: {:tie}

Supports ♥♠♦♣ for suits