修正星点的判断方式为依据是否有斜线来判断

This commit is contained in:
Calcitem 2020-12-12 19:23:17 +08:00
parent 95bd0dcad6
commit 3e1dedbf00
2 changed files with 2 additions and 2 deletions

View File

@ -1624,7 +1624,7 @@ bool Position::is_all_surrounded() const
bool Position::is_star_square(Square s)
{
if (rule->nTotalPiecesEachSide == 12) {
if (rule->hasObliqueLines == true) {
return (s == 17 ||
s == 19 ||
s == 21 ||

View File

@ -1448,7 +1448,7 @@ class Position {
}
bool isStarSquare(int s) {
if (rule.nTotalPiecesEachSide == 12) {
if (rule.hasObliqueLines == true) {
return (s == 17 || s == 19 || s == 21 || s == 23);
}