Skip to main content

initialize_game

Function initialize_game 

Source
pub fn initialize_game(
    state: GameState,
    rules: &Ruleset,
    seed: u64,
) -> GameState
Expand description

Initialize a game by:

  1. Shuffling each player’s deck
  2. Drawing starting hands
  3. Determining the first player
  4. Setting up the initial turn state