projects
/
xogo.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add Giveaway. Preparing for Chakart a little more
[xogo.git]
/
base_rules.js
diff --git
a/base_rules.js
b/base_rules.js
index
30e9ee5
..
dac7bb4
100644
(file)
--- a/
base_rules.js
+++ b/
base_rules.js
@@
-175,8
+175,6
@@
export default class ChessRules {
// Setup the initial random-or-not (asymmetric-or-not) position
genRandInitFen(seed) {
// Setup the initial random-or-not (asymmetric-or-not) position
genRandInitFen(seed) {
- Random.setSeed(seed);
-
let fen, flags = "0707";
if (!this.options.randomness)
// Deterministic:
let fen, flags = "0707";
if (!this.options.randomness)
// Deterministic:
@@
-184,6
+182,7
@@
export default class ChessRules {
else {
// Randomize
else {
// Randomize
+ Random.setSeed(seed);
let pieces = {w: new Array(8), b: new Array(8)};
flags = "";
// Shuffle pieces on first (and last rank if randomness == 2)
let pieces = {w: new Array(8), b: new Array(8)};
flags = "";
// Shuffle pieces on first (and last rank if randomness == 2)