Skip to content

Commit

Permalink
入玉宣言の点数間違い修正
Browse files Browse the repository at this point in the history
@k_ohgaさん 教えて頂きありがとうございます!
  • Loading branch information
HiraokaTakuya committed Nov 18, 2017
1 parent 9a3d6de commit b9248a6
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/search.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -278,10 +278,8 @@ namespace {
return false;

// 四 宣言側の敵陣三段目以内の駒は、玉を除いて10枚以上存在する。

// 玉は敵陣にいるので、自駒が敵陣に11枚以上あればよい。
const int ownPiecesCount = (pos.bbOf(us) & opponentsField).popCount();
if (ownPiecesCount < 11)
const int ownPiecesCount = (pos.bbOf(us) & opponentsField).popCount() - 1;
if (ownPiecesCount < 10)
return false;

// 三 宣言側が、大駒5点小駒1点で計算して
Expand Down

0 comments on commit b9248a6

Please sign in to comment.