Module player

Module player 

Source
Expand description

Player newtype (mod-4 arithmetic).

Structs§

Player
Player index – 0, 1, 2, 3 => player assigned east, south, west, north in the initial round.

Constants§

ALL_PLAYERS
P0
P1
P2
P3

Functions§

all_players_from
Returns an array of all players, starting from the given player, in natural turn order.
other_players_after
Returns an array of the 3 players after the given player, in natural turn order.
player
Shorthand for Player::new.