projects
/
xogo.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Draft Bario (unfinished)
[xogo.git]
/
variants
/
Hex
/
class.js
diff --git
a/variants/Hex/class.js
b/variants/Hex/class.js
index
1919bc8
..
774de17
100644
(file)
--- a/
variants/Hex/class.js
+++ b/
variants/Hex/class.js
@@
-78,7
+78,7
@@
export default class HexRules extends AbstractClickFillRules {
// NOTE: size.x == size.y (square boards)
const emptyCount = C.FenEmptySquares(this.size.x);
return {
// NOTE: size.x == size.y (square boards)
const emptyCount = C.FenEmptySquares(this.size.x);
return {
- fen: (emptyCount + "/").repeat(this.size.x
).slice(0, -1) + " w 0"
,
+ fen: (emptyCount + "/").repeat(this.size.x
- 1) + emptyCount
,
o: {}
};
}
o: {}
};
}
@@
-171,7
+171,7
@@
export default class HexRules extends AbstractClickFillRules {
this.turn = C.GetOppCol(this.turn);
}
this.turn = C.GetOppCol(this.turn);
}
- getCurrentScore(
move
) {
+ getCurrentScore() {
const oppCol = C.GetOppCol(this.turn);
// Search for connecting path of opp color:
let explored = {}, component;
const oppCol = C.GetOppCol(this.turn);
// Search for connecting path of opp color:
let explored = {}, component;