X-Git-Url: https://git.auder.net/?p=vchess.git;a=blobdiff_plain;f=client%2Fsrc%2Fvariants%2FAtomic.js;h=2fcb5a6b5f7736864773ecc896b82c14c80719e6;hp=996f2d1a203f64591a4676d595f3037bcf3e41a2;hb=8b405c81769b822dd2d0db28c613da259f68c071;hpb=2ceec0ec299f93627fbe9a4e278cdb0d943e2b63 diff --git a/client/src/variants/Atomic.js b/client/src/variants/Atomic.js index 996f2d1a..2fcb5a6b 100644 --- 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 => { + // NOTE: if vanish.length==2 and appear.length==2, this is castle 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],