Elixir library that determines the winning hand in a game of poker
If available in Hex, the package can be installed
by adding poker
to your list of dependencies in mix.exs
:
def deps do
[
{:poker, "~> 0.1.0"}
]
end
iex> Poker.play(black: "2H 3D 5S 9C KD", white: "2C 3H 4S 8C AH")
"white wins - high card: Ace"
Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/poker.