canasta v0.1.0 Canasta.Player View Source

Represents a player in a game. Mostly used as an abstraction to simplify the code in canasta/lib/canasta/game.ex.

Link to this section Summary

Functions

Move the red three from the hand to array of red threes

Checks if the player has a red three - if they do, send back the index, and if not, nil

Link to this section Functions

Link to this function deploy_red_three(player, index) View Source

Move the red three from the hand to array of red threes.

Checks if the player has a red three - if they do, send back the index, and if not, nil.