Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Code-Bullet/Jump-King
/ randomize
Method
randomize
Brain.js:35–39 ·
view source on GitHub ↗
(size)
Source
from the content-addressed store, hash-verified
33
}
34
35
randomize(size) {
36
for
(
let
i = 0; i < size; i++) {
37
this.instructions[i] = this.getRandomAction();
38
}
39
}
40
41
getRandomAction() {
42
let
isJump = false;
Callers
1
constructor
Method · 0.95
Calls
1
getRandomAction
Method · 0.95
Tested by
no test coverage detected