projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add chat to Hall, clickable FEN, fix contact form
[vchess.git]
/
client
/
src
/
variants
/
Wildebeest.js
diff --git
a/client/src/variants/Wildebeest.js
b/client/src/variants/Wildebeest.js
index
509586a
..
d0baa6f
100644
(file)
--- a/
client/src/variants/Wildebeest.js
+++ b/
client/src/variants/Wildebeest.js
@@
-247,19
+247,19
@@
class WildebeestRules extends ChessRules
positions.splice(idx, 1);
}
positions.splice(idx, 1);
}
- let randIndex = rand
om
(7);
+ let randIndex = rand
Int
(7);
let knight1Pos = positions[randIndex];
positions.splice(randIndex, 1);
let knight1Pos = positions[randIndex];
positions.splice(randIndex, 1);
- randIndex = rand
om
(6);
+ randIndex = rand
Int
(6);
let knight2Pos = positions[randIndex];
positions.splice(randIndex, 1);
let knight2Pos = positions[randIndex];
positions.splice(randIndex, 1);
- randIndex = rand
om
(5);
+ randIndex = rand
Int
(5);
let queenPos = positions[randIndex];
positions.splice(randIndex, 1);
// Random square for wildebeest
let queenPos = positions[randIndex];
positions.splice(randIndex, 1);
// Random square for wildebeest
- randIndex = rand
om
(4);
+ randIndex = rand
Int
(4);
let wildebeestPos = positions[randIndex];
positions.splice(randIndex, 1);
let wildebeestPos = positions[randIndex];
positions.splice(randIndex, 1);