From 475888ffe03cf0fba3ac2efc6f5733500cde7547 Mon Sep 17 00:00:00 2001 From: primenumber Date: Mon, 6 Nov 2023 20:18:13 +0900 Subject: [PATCH] Fix test --- src/engine/last_cache/test.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/engine/last_cache/test.rs b/src/engine/last_cache/test.rs index 4106e4d..3cb92d9 100644 --- a/src/engine/last_cache/test.rs +++ b/src/engine/last_cache/test.rs @@ -2,13 +2,13 @@ use super::*; use rand::{Rng, SeedableRng}; -fn solve_last_naive(board: Board) -> i8 { +fn solve_last_naive(board: Board) -> (i8, usize) { let pos = board.empty().tzcnt() as usize; match board.play(pos) { - Ok(next) => -next.score(), + Ok(next) => (-next.score(), 1), Err(_) => match board.pass_unchecked().play(pos) { - Ok(next) => next.score(), - Err(_) => board.score(), + Ok(next) => (next.score(), 2), + Err(_) => (board.score(), 0), }, } }