projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Small fixes + early draft of Eightpieces variant
[vchess.git]
/
client
/
src
/
base_rules.js
diff --git
a/client/src/base_rules.js
b/client/src/base_rules.js
index
b39fe9c
..
aec119a
100644
(file)
--- a/
client/src/base_rules.js
+++ b/
client/src/base_rules.js
@@
-204,7
+204,7
@@
export const ChessRules = class ChessRules {
Math.abs(s.x - e.x) == 2 &&
s.y == e.y &&
move.vanish[0].p == V.PAWN &&
Math.abs(s.x - e.x) == 2 &&
s.y == e.y &&
move.vanish[0].p == V.PAWN &&
- ["w", "b"].includes(move.
appear
[0].c)
+ ["w", "b"].includes(move.
vanish
[0].c)
) {
return {
x: (s.x + e.x) / 2,
) {
return {
x: (s.x + e.x) / 2,