Improve readability and remove redundant code
This commit is contained in:
@@ -22,7 +22,7 @@ pub fn negamax(
|
||||
let (mut best_move, mut best_score, mate_score) = (None, MIN_SCORE, -MATE_SCORE + plies as i32);
|
||||
let mut legal_moves = 0;
|
||||
|
||||
for mv in game.board.pseudo_moves_all(color) {
|
||||
for mv in game.board.pseudo_moves_all() {
|
||||
let move_parameters = MoveParameters::build(&game.board, &mv);
|
||||
game.board.make_move(&mv);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user