projects
/
xogo.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Next: Clorange - TODO
[xogo.git]
/
variants
/
Baroque
/
class.js
diff --git
a/variants/Baroque/class.js
b/variants/Baroque/class.js
index
f2039d5
..
84331a2
100644
(file)
--- a/
variants/Baroque/class.js
+++ b/
variants/Baroque/class.js
@@
-1,4
+1,4
@@
-import AbstractSpecialCaptureRules from "/variants/_SpecialCaptures.js";
+import AbstractSpecialCaptureRules from "/variants/_SpecialCaptures
/class
.js";
import {FenUtil} from "/utils/setupPieces.js";
import {Random} from "/utils/alea.js";
import {FenUtil} from "/utils/setupPieces.js";
import {Random} from "/utils/alea.js";
@@
-99,8
+99,8
@@
export default class BaroqueRules extends AbstractSpecialCaptureRules {
isImmobilized([x, y]) {
const piece = this.getPiece(x, y);
const color = this.getColor(x, y);
isImmobilized([x, y]) {
const piece = this.getPiece(x, y);
const color = this.getColor(x, y);
- const oppCol = C.GetOpp
Col
(color);
- const adjacentSteps = this.pieces()['k'].
moves
[0].steps;
+ const oppCol = C.GetOpp
Turn
(color);
+ const adjacentSteps = this.pieces()['k'].
both
[0].steps;
for (let step of adjacentSteps) {
const [i, j] = [x + step[0], this.getY(y + step[1])];
if (
for (let step of adjacentSteps) {
const [i, j] = [x + step[0], this.getY(y + step[1])];
if (