aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main.rs b/src/main.rs
index bb244ca..e7633bc 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -43,9 +43,9 @@ fn computer_move(gm: &mut Grossmeister, time_left: &mut Duration) {
// Ponder for some time
println!("Pondering, assume opponent move from PV: {:?}", pv[1]);
- let ep_target_before = gm.board.ep_target.clone();
- let castling_rights_before = gm.board.castling_rights.clone();
- let hash_before = gm.board.hash.clone();
+ let ep_target_before = gm.board.ep_target;
+ let castling_rights_before = gm.board.castling_rights;
+ let hash_before = gm.board.hash;
let captured_piece = gm.board.make_move(pv[1]);
gm.iterative_deepening(max_depth, Duration::from_secs(3), false);
gm.board.unmake_move(pv[1], captured_piece, ep_target_before, castling_rights_before, hash_before);