projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix Wildebeest variant
[vchess.git]
/
client
/
src
/
variants
/
Circular.js
diff --git
a/client/src/variants/Circular.js
b/client/src/variants/Circular.js
index
4db5a52
..
9ec597b
100644
(file)
--- a/
client/src/variants/Circular.js
+++ b/
client/src/variants/Circular.js
@@
-170,9
+170,9
@@
export const VariantRules = class CircularRules extends ChessRules {
}
isAttackedByPawn([x, y], colors) {
+ const pawnShift = 1;
+ const attackerRow = V.ComputeX(x + pawnShift);
for (let c of colors) {
- let pawnShift = 1;
- const attackerRow = V.ComputeX(x + pawnShift);
for (let i of [-1, 1]) {
if (
y + i >= 0 &&