projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix bug in Eightpieces rules (division by 0)
[vchess.git]
/
client
/
src
/
variants
/
Suicide.js
diff --git
a/client/src/variants/Suicide.js
b/client/src/variants/Suicide.js
index
f030b08
..
24e8ef2
100644
(file)
--- a/
client/src/variants/Suicide.js
+++ b/
client/src/variants/Suicide.js
@@
-114,8
+114,10
@@
export const VariantRules = class SuicideRules extends ChessRules {
}
// No variables update because no royal king + no castling
- updateVariables() {}
- unupdateVariables() {}
+ prePlay() {}
+ postPlay() {}
+ preUndo() {}
+ postUndo() {}
getCurrentScore() {
if (this.atLeastOneMove()) return "*";