projects
/
xogo.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Finish code refactoring to generate initial positions (untested)
[xogo.git]
/
variants
/
Hex
/
class.js
diff --git
a/variants/Hex/class.js
b/variants/Hex/class.js
index
774de17
..
f58800f
100644
(file)
--- a/
variants/Hex/class.js
+++ b/
variants/Hex/class.js
@@
-187,7
+187,7
@@
export default class HexRules extends AbstractClickFillRules {
max = z;
explored[index] = true;
component[index] = true;
- for (let [dx, dy] of super.pieces()['k'].
moves
[0].steps) {
+ for (let [dx, dy] of super.pieces()['k'].
both
[0].steps) {
const [nx, ny] = [x + dx, y + dy];
const nidx = getIndex(nx, ny);
if (