projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix Musketeer, Joker, Shinobi. Start draft of Cwda
[vchess.git]
/
client
/
src
/
base_rules.js
diff --git
a/client/src/base_rules.js
b/client/src/base_rules.js
index
43f9f26
..
0c20b59
100644
(file)
--- a/
client/src/base_rules.js
+++ b/
client/src/base_rules.js
@@
-368,7
+368,8
@@
export const ChessRules = class ChessRules {
// Setup the initial random (asymmetric) position
static GenRandInitFen(options) {
// Setup the initial random (asymmetric) position
static GenRandInitFen(options) {
- if (!options.randomness || options.randomness == 0)
+ const randomness = parseInt(options.randomness, 10);
+ if (!randomness || randomness == 0)
// Deterministic:
return "rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w 0 ahah -";
// Deterministic:
return "rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w 0 ahah -";