projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix incheck in BaseGame, draft Antimatter variant
[vchess.git]
/
client
/
src
/
variants
/
Atomic.js
diff --git
a/client/src/variants/Atomic.js
b/client/src/variants/Atomic.js
index
996f2d1
..
2fcb5a6
100644
(file)
--- a/
client/src/variants/Atomic.js
+++ b/
client/src/variants/Atomic.js
@@
-6,9
+6,9
@@
export const VariantRules = class AtomicRules extends ChessRules {
// Handle explosions
moves.forEach(m => {
// Handle explosions
moves.forEach(m => {
+ // NOTE: if vanish.length==2 and appear.length==2, this is castle
if (m.vanish.length > 1 && m.appear.length <= 1) {
if (m.vanish.length > 1 && m.appear.length <= 1) {
- //avoid castles
- // Explosion! OPTION (TODO?): drop moves which explode our king here
+ // Explosion! (TODO?: drop moves which explode our king here)
let steps = [
[-1, -1],
[-1, 0],
let steps = [
[-1, -1],
[-1, 0],