Fix Dobutsu, extend Align4
[xogo.git] / variants / Atarigo / class.js
CommitLineData
bc97fdd1 1import WeiqiRules from "/variants/Weiqi/class.js";
eceb02f7
BA
2import Move from "/utils/Move.js";
3import PiPo from "/utils/PiPo.js";
4import {ArrayFun} from "/utils/array.js";
5
3cc4a845 6export default class AtarigoRules extends WeiqiRules {
eceb02f7
BA
7
8 static get Options() {
3cc4a845 9 let input = WeiqiRules.Options.input;
a89fb4e9
BA
10 input[0].defaut = 11;
11 return {input: input};
eceb02f7
BA
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};