projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix Bario, write rules
[vchess.git]
/
client
/
src
/
variants
/
Otage.js
diff --git
a/client/src/variants/Otage.js
b/client/src/variants/Otage.js
index
98b340e
..
4cfe1e7
100644
(file)
--- a/
client/src/variants/Otage.js
+++ b/
client/src/variants/Otage.js
@@
-761,6
+761,7
@@
export class OtageRules extends ChessRules {
for (let i = mvArray.length - 1; i >= 0; i--) this.undo(mvArray[i]);
if (!mv.end.released) return (mvArray.length > 1 ? mvArray : mvArray[0]);
}
+ return null; //never reached
}
// NOTE: evalPosition() is wrong, but unused since bot plays at random