projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Almost finished problems logic. TODO: showProblem() part
[vchess.git]
/
public
/
javascripts
/
variants
/
Ultima.js
diff --git
a/public/javascripts/variants/Ultima.js
b/public/javascripts/variants/Ultima.js
index
04ef29b
..
d6fecb7
100644
(file)
--- a/
public/javascripts/variants/Ultima.js
+++ b/
public/javascripts/variants/Ultima.js
@@
-7,6
+7,15
@@
class UltimaRules extends ChessRules
return b; //usual piece
}
return b; //usual piece
}
+ static get PIECES() {
+ return ChessRules.PIECES.concat([V.IMMOBILIZER]);
+ }
+
+ static IsGoodFlags(flags)
+ {
+ return true; //anything is good: no flags
+ }
+
initVariables(fen)
{
this.kingPos = {'w':[-1,-1], 'b':[-1,-1]};
initVariables(fen)
{
this.kingPos = {'w':[-1,-1], 'b':[-1,-1]};