Module game

Source
Expand description

Abstract definitions of how a game is played, making use of the methods provided by the definitions in lobby::state.

Modules§

completion
fight
lightsaber_purchase
placement
start
unit_purchase

Functions§

generate_matchups 🔒
lightsaber_purchase
maybe_pause
next_phases
Creates an iterator over all future phases in the rounds from now up to max_round. If you set max_rounds very large, this iterator will (almost) never end, so it may be a good idea to .take(n) only the first n elements.
phases_of_round
Creates an iterator over the phases of this round, where round = 1 is the first round of the game.
placements
round_has_completion_phase
round_has_fight_phase
round_has_lightsaber_shop_phase
round_has_placement_phase
round_has_unit_shop_phase
run
unit_purchase