Skip to content

Commit

Permalink
remove another set
Browse files Browse the repository at this point in the history
  • Loading branch information
row454 authored Sep 26, 2024
1 parent 470b571 commit 125784d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/game.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ pub struct GameState {
pub next_meta_move: Option<(usize, usize)>,
pub board_state: BoardState,
pub turn: Player,
empty_spaces : HashSet<Position, BuildNoHashHasher<Position>>,
empty_spaces : Vec<Position>,
}
#[derive(Clone)]
pub struct Game {
Expand All @@ -40,7 +40,7 @@ impl Game {
next_meta_move: None,
turn: starting_player,
board_state: BoardState::Ongoing,
empty_spaces: HashSet::from_iter(ALL_SPACES),
empty_spaces: ALL_SPACES.into_vec(),
},
x,
o,
Expand Down Expand Up @@ -83,7 +83,7 @@ impl GameState {
next_meta_move: None,
turn: starting_player,
board_state: BoardState::Ongoing,
empty_spaces: HashSet::from_iter(ALL_SPACES),
empty_spaces: ALL_SPACES.into_vec,
}
}

Expand Down

0 comments on commit 125784d

Please sign in to comment.