From 25ce2e990facc88cf3eb9d7c9c8b1a30bb571d49 Mon Sep 17 00:00:00 2001 From: Peter Osterlund Date: Thu, 26 Jan 2012 18:02:22 +0000 Subject: [PATCH] CuckooChess: Added opening book line. --- CuckooChessEngine/src/book.bin | Bin 5762 -> 5804 bytes CuckooChessEngine/src/book.txt | 1 + CuckooChessEngine/src/chess/Evaluate.java | 1 + 3 files changed, 2 insertions(+) diff --git a/CuckooChessEngine/src/book.bin b/CuckooChessEngine/src/book.bin index b53cf3795fa9b458976048b5ddedd9245cc1f640..aa3fa5132dd6c14d648e453e8dd4c78d5e798c0b 100644 GIT binary patch delta 49 zcmV-10M7q{EvzlDs0$(g(?pv delta 12 TcmZ3Z+oZc;1^4Dl+_$&@BeVrz diff --git a/CuckooChessEngine/src/book.txt b/CuckooChessEngine/src/book.txt index 2bc0569..6394cb1 100644 --- a/CuckooChessEngine/src/book.txt +++ b/CuckooChessEngine/src/book.txt @@ -117,6 +117,7 @@ e4 c5 Nf3 e6 d4 cxd4 Nxd4 Nf6 Nc3 d6 Be2 a6 O-O Be7 f4 O-O e4 c5 Nf3 e6 d4 cxd4 Nxd4 Nc6 Nc3 Qc7 Be3 a6 Bd3 Nf6 O-O Ne5 h3 Bc5 Qe2 d6 e4 c5 Nf3 e6? Nc3 Nc6 d4 cxd4 Nxd4 Qc7 Be3 a6 Qd2 Nf6 O-O-O Be7 e4 c5 Nc3 Nc6 Nge2 g6 d4 cxd4 Nxd4 Bg7 Be3 Nf6 Bc4 O-O Bb3 d6 +e4 c5 Nc3 Nc6 f4 d6 Nf3 g6 Bb5 Bd7 O-O Bg7 d3 a6 Bc4 Na5 e5 Nxc4 dxc4 Be6 e4 c5 Nc3? Nc6 g3 g6 Bg2 Bg7 d3 d6 f4 e6 Nf3 Nge7 O-O O-O e4 c5 Nc3? e6 Nf3 Nc6 d4 cxd4 Nxd4 Qc7 Be2 a6 O-O Nf6 Be3 Bb4 e4 c5 Nc3? a6 Nf3 d6 d4 cxd4 Nxd4 Nf6 diff --git a/CuckooChessEngine/src/chess/Evaluate.java b/CuckooChessEngine/src/chess/Evaluate.java index 93a1864..eec2bcd 100644 --- a/CuckooChessEngine/src/chess/Evaluate.java +++ b/CuckooChessEngine/src/chess/Evaluate.java @@ -860,6 +860,7 @@ public class Evaluate { } private final int kingSafetyKPPart(Position pos) { + // FIXME!!! Try non-linear king safety final long key = pos.pawnZobristHash() ^ pos.kingZobristHash(); KingSafetyHashData ksh = kingSafetyHash[(int)key & (kingSafetyHash.length - 1)]; if (ksh.key != key) {