Implement the basic rules of Go #40

Merged
savanni merged 13 commits from feature/go-rules into main 2023-05-04 02:34:40 +00:00
1 changed files with 0 additions and 1 deletions
Showing only changes of commit fee2e598d3 - Show all commits

View File

@ -127,7 +127,6 @@ impl GameState {
let board = self.board.clone(); let board = self.board.clone();
let new_board = board.place_stone(coordinate, self.current_player)?; let new_board = board.place_stone(coordinate, self.current_player)?;
println!("past positions: {}", self.past_positions.len());
if self.past_positions.contains(&new_board) { if self.past_positions.contains(&new_board) {
return Err(BoardError::Ko); return Err(BoardError::Ko);
} }