projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
TODO: debug Knightrelay, use generators + yield for moves generation
[vchess.git]
/
client
/
src
/
variants
/
Royalrace.js
diff --git
a/client/src/variants/Royalrace.js
b/client/src/variants/Royalrace.js
index
e3ed224
..
6f64d24
100644
(file)
--- a/
client/src/variants/Royalrace.js
+++ b/
client/src/variants/Royalrace.js
@@
-178,7
+178,10
@@
export const VariantRules = class RoyalraceRules extends ChessRules {
if (this.kingPos[color][0] == 0)
// The opposing edge is reached!
return color == "w" ? "1-0" : "0-1";
- return "*";
+ if (this.atLeastOneMove())
+ return "*";
+ // Stalemate (will probably never happen)
+ return "1/2";
}
static get SEARCH_DEPTH() {