projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Increment game stat counter also for rematch live games
[vchess.git]
/
client
/
src
/
variants
/
Antimatter.js
diff --git
a/client/src/variants/Antimatter.js
b/client/src/variants/Antimatter.js
index
f8f4c73
..
6d3d36d
100644
(file)
--- a/
client/src/variants/Antimatter.js
+++ b/
client/src/variants/Antimatter.js
@@
-1,9
+1,9
@@
import { ChessRules } from "@/base_rules";
export class AntimatterRules extends ChessRules {
import { ChessRules } from "@/base_rules";
export class AntimatterRules extends ChessRules {
+
getPotentialMovesFrom([x, y]) {
let moves = super.getPotentialMovesFrom([x, y]);
getPotentialMovesFrom([x, y]) {
let moves = super.getPotentialMovesFrom([x, y]);
-
// Handle "matter collisions"
moves.forEach(m => {
if (
// Handle "matter collisions"
moves.forEach(m => {
if (
@@
-14,7
+14,7
@@
export class AntimatterRules extends ChessRules {
m.appear.pop();
}
});
m.appear.pop();
}
});
-
return moves;
}
return moves;
}
+
};
};