projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add Gomoku + Atarigo
[vchess.git]
/
client
/
src
/
variants
/
Rampage.js
diff --git
a/client/src/variants/Rampage.js
b/client/src/variants/Rampage.js
index
79b8b95
..
12a61a1
100644
(file)
--- a/
client/src/variants/Rampage.js
+++ b/
client/src/variants/Rampage.js
@@
-1,6
+1,7
@@
import { ChessRules } from "@/base_rules";
export class RampageRules extends ChessRules {
import { ChessRules } from "@/base_rules";
export class RampageRules extends ChessRules {
+
// Sum white pieces attacking a square, and remove black pieces count.
sumAttacks([x, y]) {
const getSign = (color) => {
// Sum white pieces attacking a square, and remove black pieces count.
sumAttacks([x, y]) {
const getSign = (color) => {
@@
-84,4
+85,5
@@
export class RampageRules extends ChessRules {
static get SEARCH_DEPTH() {
return 1;
}
static get SEARCH_DEPTH() {
return 1;
}
+
};
};