projects
/
xogo.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add Refusal
[xogo.git]
/
variants
/
Giveaway
/
class.js
diff --git
a/variants/Giveaway/class.js
b/variants/Giveaway/class.js
index
77f5c74
..
71f70be
100644
(file)
--- a/
variants/Giveaway/class.js
+++ b/
variants/Giveaway/class.js
@@
-37,6
+37,9
@@
export default class GiveawayRules extends ChessRules {
}
genRandInitFen(seed) {
+ if (this.options["mode"] == "losers")
+ return super.genRandInitFen(seed);
+
if (this.options["randomness"] == 0) {
return (
'rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w 0 {"enpassant":"-"}'