projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Attempt to not throw exception on server socket error
[vchess.git]
/
public
/
javascripts
/
base_rules.js
diff --git
a/public/javascripts/base_rules.js
b/public/javascripts/base_rules.js
index
ee5ddd0
..
860495a
100644
(file)
--- a/
public/javascripts/base_rules.js
+++ b/
public/javascripts/base_rules.js
@@
-10,6
+10,7
@@
class PiPo //Piece+Position
}
}
}
}
+// TODO: for animation, moves should contains "moving" and "fading" maybe...
class Move
{
// o: {appear, vanish, [start,] [end,]}
class Move
{
// o: {appear, vanish, [start,] [end,]}
@@
-1076,7
+1077,7
@@
class ChessRules
for (let i of ['w','b'])
{
for (let j=0; j<2; j++)
for (let i of ['w','b'])
{
for (let j=0; j<2; j++)
- fen +=
this.castleFlags[i][j] ? '1' : '0'
;
+ fen +=
(this.castleFlags[i][j] ? '1' : '0')
;
}
return fen;
}
}
return fen;
}