- getCurrentScore() {
- if (this.atLeastOneMove())
- return "*";
-
- const color = this.turn;
- const oppCol = V.GetOppCol(color);
- if (
- !this.isAttacked(this.kingPos[color], oppCol) &&
- this.isAttacked(this.antikingPos[color], oppCol)
- ) {
- return "1/2";
- }
- return color == "w" ? "0-1" : "1-0";
- }
-