Struct advent_of_code_2021::day_21::Game [−][src]
Expand description
Represents a deterministic game of Dirac dice, tracking the current value of the deterministic d100, the players, whose turn it is, and how many rolls have occurred.
Fields
players: Vec<Player>List of the players of the game
current_player: usizeThe index of the player that will take the next turn
next_die_face: usizeThe next face that the deterministic d100 will roll
rolls: usizehow many times the die has been rolled so far
Implementations
Get the next number rolls from the game’s deterministic die, and update the next facing
and roll count.
Trait Implementations
Pass the lines of the input to Player::from to turn it into the player list and set the
counters to their initial values.
