aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authoreug-vs <eugene@eug-vs.xyz>2023-02-23 13:21:57 +0300
committereug-vs <eugene@eug-vs.xyz>2023-02-23 14:01:19 +0300
commit43dc24718c442ef45f6cecf5790df0ab84a72cfc (patch)
tree16f446b1d5a3e0fdf638e0bcab16cf34ec338bd8 /src/main.rs
parentf60c573ba71207c18a28413e3940a4e21b07c73f (diff)
downloadchessnost-43dc24718c442ef45f6cecf5790df0ab84a72cfc.tar.gz
refactor: apply clippy suggestions
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);