flutter: 修复规则如规定不能吃三中的子但如果全部成三就吃不了的问题

引擎中是正确的,和引擎同步。
This commit is contained in:
Calcitem 2020-12-13 21:47:15 +08:00
parent 43ac139d90
commit d8270658b0
1 changed files with 1 additions and 1 deletions

View File

@ -1400,7 +1400,7 @@ class Position {
bool isAllInMills(String c) {
for (int i = sqBegin; i < sqEnd; i++) {
if (board[i] == c) {
if (inHowManyMills(i, Color.nobody) > 0) {
if (inHowManyMills(i, Color.nobody) == 0) {
return false;
}
}