aboutsummaryrefslogtreecommitdiff
path: root/src/grossmeister/evaluation.rs
diff options
context:
space:
mode:
authoreug-vs <eugene@eug-vs.xyz>2023-08-22 02:59:20 +0300
committereug-vs <eugene@eug-vs.xyz>2023-08-22 05:56:11 +0300
commita3bef6f93a960ad51d7601ed8e53c6a83a532f71 (patch)
treefffffe84df9c1e4903ccf0fd48db099758078a60 /src/grossmeister/evaluation.rs
parentbc599d145a8d3a5e69128bc9e702ac7a32d73a4c (diff)
downloadchessnost-a3bef6f93a960ad51d7601ed8e53c6a83a532f71.tar.gz
feat: improve UCI position fen moves case
Diffstat (limited to 'src/grossmeister/evaluation.rs')
-rw-r--r--src/grossmeister/evaluation.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/grossmeister/evaluation.rs b/src/grossmeister/evaluation.rs
index 9215420..3f94199 100644
--- a/src/grossmeister/evaluation.rs
+++ b/src/grossmeister/evaluation.rs
@@ -515,7 +515,7 @@ mod tests {
#[test]
fn white_winning() {
- let fen = String::from("8/5pk1/6p1/R4b1p/3P4/1P2N3/P1r2PPP/R5K1 b - - 1 27");
+ let fen = String::from("8/5pk1/6p1/R4b1p/3P4/1P2N3/P1r2PPP/R5K1 w - - 1 27");
let board = Board::from_FEN(fen);
let gm = Grossmeister::new(board);
let score = gm.evaluate();
@@ -602,8 +602,7 @@ mod tests {
let score2 = {
let fen = String::from("r2q1rk1/pP1p2pp/Q4n2/bbp1p3/Np6/1B3NBn/pPPP1PPP/R3K2R b KQ - 0 1 ");
let board = Board::from_FEN(fen);
- let mut gm = Grossmeister::new(board);
- gm.board.ply += 1; // TODO: remove me when FEN parsing includes side to move
+ let gm = Grossmeister::new(board);
let score = gm.evaluate();
gm.board.print();
println!("Score {}", score);