MCPcopy 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

constructorMethod · 0.95

Calls 1

getRandomActionMethod · 0.95

Tested by

no test coverage detected