flutter: 去掉 position 中冗余的 rule 成员变量
This commit is contained in:
parent
22adca36d5
commit
0ac61a94d0
|
@ -40,8 +40,6 @@ class StateInfo {
|
||||||
}
|
}
|
||||||
|
|
||||||
class Position {
|
class Position {
|
||||||
Rule rule;
|
|
||||||
|
|
||||||
GameResult result = GameResult.pending;
|
GameResult result = GameResult.pending;
|
||||||
|
|
||||||
List<String> board = List<String>(sqNumber);
|
List<String> board = List<String>(sqNumber);
|
||||||
|
@ -417,8 +415,6 @@ class Position {
|
||||||
int setPosition(Rule newRule) {
|
int setPosition(Rule newRule) {
|
||||||
result = GameResult.pending;
|
result = GameResult.pending;
|
||||||
|
|
||||||
rule = new Rule(); // TODO
|
|
||||||
|
|
||||||
gamePly = 0;
|
gamePly = 0;
|
||||||
rule50 = 0;
|
rule50 = 0;
|
||||||
pliesFromNull = 0;
|
pliesFromNull = 0;
|
||||||
|
|
Loading…
Reference in New Issue