1b848c984df8a2e16b8ed5cdcb611d53137661c7
[xogo.git] / variants / Atarigo / class.js
1 import WeiqiRules from "/variants/Weiqi/class.js";
2 import Move from "/utils/Move.js";
3 import PiPo from "/utils/PiPo.js";
4 import {ArrayFun} from "/utils/array.js";
5
6 export default class AtarigoRules extends WeiqiRules {
7
8 static get Options() {
9 let input = WeiqiRules.Options.input;
10 input[0].defaut = 11;
11 return {input: input};
12 }
13
14 getCurrentScore(move_s) {
15 if (move_s[0].vanish.length > 0)
16 return (this.turn == 'w' ? "0-1" : "1-0");
17 return "*";
18 }
19
20 };