From 3e1dedbf003c32f2f7cd195c02f475373cfc5a27 Mon Sep 17 00:00:00 2001 From: Calcitem Date: Sat, 12 Dec 2020 19:23:17 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E6=98=9F=E7=82=B9=E7=9A=84?= =?UTF-8?q?=E5=88=A4=E6=96=AD=E6=96=B9=E5=BC=8F=E4=B8=BA=E4=BE=9D=E6=8D=AE?= =?UTF-8?q?=E6=98=AF=E5=90=A6=E6=9C=89=E6=96=9C=E7=BA=BF=E6=9D=A5=E5=88=A4?= =?UTF-8?q?=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/position.cpp | 2 +- src/ui/flutter/lib/mill/position.dart | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/position.cpp b/src/position.cpp index 90847624..4e863764 100644 --- a/src/position.cpp +++ b/src/position.cpp @@ -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 || diff --git a/src/ui/flutter/lib/mill/position.dart b/src/ui/flutter/lib/mill/position.dart index c7fa23d9..e9e6d8d7 100644 --- a/src/ui/flutter/lib/mill/position.dart +++ b/src/ui/flutter/lib/mill/position.dart @@ -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); }