From 92ea16e4dcc49815dc167a069db9c14d8c009e00 Mon Sep 17 00:00:00 2001 From: Fabian Fichter Date: Wed, 6 Jan 2021 00:52:50 +0100 Subject: [PATCH] Consider soldiers for semi-open files xiangqi STC LLR: 2.98 (-2.94,2.94) [0.00,10.00] Total: 946 W: 310 L: 227 D: 409 janggi STC ELO: 7.30 +-21.4 (95%) LOS: 74.9% Total: 1000 W: 502 L: 481 D: 17 minixiangqi STC ELO: 19.48 +-26.8 (95%) LOS: 92.3% Total: 500 W: 207 L: 179 D: 114 --- src/position.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/position.h b/src/position.h index b8a137f..688b6de 100644 --- a/src/position.h +++ b/src/position.h @@ -885,7 +885,7 @@ inline Bitboard Position::gates(Color c) const { } inline bool Position::is_on_semiopen_file(Color c, Square s) const { - return !(pieces(c, PAWN, SHOGI_PAWN) & file_bb(s)); + return !((pieces(c, PAWN) | pieces(c, SHOGI_PAWN, SOLDIER)) & file_bb(s)); } inline bool Position::can_castle(CastlingRights cr) const { -- 1.7.0.4