Pokex v0.2.0 Player.Computer View Source

The Computer AI player.

Link to this section Summary

Functions

Separates a hand of 5 cards into 2 separate lists, one to keep and one to discard

Link to this section Functions

Separates a hand of 5 cards into 2 separate lists, one to keep and one to discard.

Examples

iex> Player.Computer.discard([
...> {:ace, :hearts},
...> {2, :clubs},
...> {9, :diamonds},
...> {:ace, :clubs},
...> {4, :hearts} ])
{ [ {2, :clubs}, {9, :diamonds}, {4, :hearts} ], [ {:ace, :clubs}, {:ace, :hearts} ] }