diff --git a/src/eval.rs b/src/eval.rs index 26d5f85..829e256 100644 --- a/src/eval.rs +++ b/src/eval.rs @@ -192,8 +192,8 @@ pub const PST_MIDGAME: Pst = Pst([ -1, -2, 1, 2, 1, -1, 1, -1, // 5 -1, -1, 2, -1, 1, -1, 2, 1, // 4 2, 1, 1, 0, 0, 0, 0, 0, // 3 - 0, 0, 0, 0, 0, 0, 0, 0, // 2 - -5, 0, 0, 10, 10, 5, 0, -5, // 1 + -5, 0, 0, 0, 0, 0, 0, -5, // 2 + -5, -3, 0, 0, 0, 2, -3, -5, // 1 // a b c d e f g h ], 500), @@ -202,8 +202,8 @@ pub const PST_MIDGAME: Pst = Pst([ 0, 0, 0, 0, 0, 0, 0, 0, // 8 0, 0, 0, 0, 0, 0, 0, 0, // 7 0, 0, 0, 0, 0, 0, 0, 0, // 6 - 0, 0, 0, 0, 0, 0, 0, 0, // 5 - 0, 0, 0, 0, 0, 0, 0, 0, // 4 + 0, 0, 10, 10, 10, 10, 0, 0, // 5 + 0, 0, 10, 10, 10, 10, 0, 0, // 4 0, 0, 0, 0, 0, 0, 0, 0, // 3 0, 0, 0, 0, 0, 0, 0, 0, // 2 0, 0, -10, 0, 0, -10, 0, 0, // 1 @@ -215,9 +215,9 @@ pub const PST_MIDGAME: Pst = Pst([ -5, -5, -5, -5, -5, -5, -5, -5, // 8 -5, 0, 0, 0, 0, 0, 0, -5, // 7 -5, 1, 0, 0, 0, 0, 0, -5, // 6 - -5, 2, 0, 10, 10, 0, 0, -5, // 5 - -5, 0, 1, 10, 10, 0, 0, -5, // 4 - -5, 2, 20, 0, 0, 20, 0, -5, // 3 + -5, 2, 0, 40, 40, 0, 0, -5, // 5 + -5, 0, 1, 40, 40, 0, 0, -5, // 4 + -5, 2, 30, 0, 0, 20, 0, -5, // 3 -5, 1, 0, 0, 0, 0, 0, -5, // 2 -5, -5, -5, -5, -5, -5, -5, -5, // 1 // a b c d e f g h @@ -231,19 +231,19 @@ pub const PST_MIDGAME: Pst = Pst([ 0, 0, 0, 0, 0, 0, 0, 0, // 5 0, 0, 0, 0, 0, 0, 0, 0, // 4 0, 0, 0, 0, 0, 0, 0, 0, // 3 - 0, 0, 0, -5, -5, -5, 0, 0, // 2 + -5, -5, -5, -5, -5, -5, -5, -5, // 2 0, 0, 10, 0, 0, 0, 20, 0, // 1 // a b c d e f g h ], 20_000), // queen make_pst([ - -20, -20, -20, -20, -20, -20, -20, -20, // 8 - -20, -20, -20, -20, -20, -20, -20, -20, // 7 - -20, -20, -20, -20, -20, -20, -20, -20, // 6 - -20, -20, -20, -20, -20, -20, -20, -20, // 5 - -20, -20, -20, -20, -20, -20, -20, -20, // 4 - 0, 0, 0, 0, 0, 0, 0, 0, // 3 + -50, -50, -50, -50, -50, -50, -50, -50, // 8 + -50, -50, -50, -50, -50, -50, -50, -50, // 7 + -50, -50, -50, -50, -50, -50, -50, -50, // 6 + -50, -50, -50, -50, -50, -50, -50, -50, // 5 + -50, -50, -50, -50, -50, -50, -50, -50, // 4 + -50, -50, -50, -50, -50, -50, -50, -50, // 3 0, 0, 0, 0, 0, 0, 0, 0, // 2 0, 0, 0, 0, 0, 0, 0, 0, // 1 // a b c d e f g h @@ -255,8 +255,8 @@ pub const PST_MIDGAME: Pst = Pst([ 19, 19, 19, 19, 19, 19, 19, 19, // 7 8, 8, 8, 8, 8, 8, 8, 8, // 6 7, 7, 7, 8, 8, 7, 7, 7, // 5 - 6, 6, 6, 6, 6, 6, 6, 6, // 4 - 2, 2, 2, 4, 4, 0, 2, 0, // 3 + 2, 6, 6, 20, 60, 6, 6, 2, // 4 + 2, 2, 2, 2, 2, 0, 2, 0, // 3 0, 0, 0, 0, 0, 0, 0, 0, // 2 0, 0, 0, 0, 0, 0, 0, 0, // 1 // a b c d e f g h diff --git a/src/main.rs b/src/main.rs index 125932e..c35da92 100644 --- a/src/main.rs +++ b/src/main.rs @@ -96,8 +96,8 @@ fn cmd_go( let (tx1, rx) = channel(); let tx2 = tx1.clone(); - // can expect a 1sec soft timeout to more than that of thinking - let mut timeout = 1000; + // can expect a 1sec soft timeout to result in more time than that of thinking + let mut timeout = 1650; while let Some(token) = tokens.next() { match token {