projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
'update'
[vchess.git]
/
client
/
src
/
variants
/
Atomic.js
diff --git
a/client/src/variants/Atomic.js
b/client/src/variants/Atomic.js
index
f42d593
..
3d4f541
100644
(file)
--- a/
client/src/variants/Atomic.js
+++ b/
client/src/variants/Atomic.js
@@
-10,7
+10,7
@@
export const VariantRules = class AtomicRules extends ChessRules
moves.forEach(m => {
if (m.vanish.length > 1 && m.appear.length <= 1) //avoid castles
{
moves.forEach(m => {
if (m.vanish.length > 1 && m.appear.length <= 1) //avoid castles
{
- // Explosion!
TODO(
?): drop moves which explode our king here
+ // Explosion!
OPTION (TODO
?): drop moves which explode our king here
let steps = [ [-1,-1],[-1,0],[-1,1],[0,-1],[0,1],[1,-1],[1,0],[1,1] ];
for (let step of steps)
{
let steps = [ [-1,-1],[-1,0],[-1,1],[0,-1],[0,1],[1,-1],[1,0],[1,1] ];
for (let step of steps)
{