MCPcopy Create free account
hub / github.com/Code-Bullet/Jump-King / clone

Method clone

Brain.js:70–77  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

68
69
70 clone() {
71 let clone = new Brain(this.size, false);
72 clone.instructions = [];
73 for (let i = 0; i < this.instructions.length; i++) {
74 clone.instructions.push(this.instructions[i].clone())
75 }
76 return clone;
77 }
78
79 mutate() {
80 let mutationRate = 0.1;

Callers 3

keyReleasedFunction · 0.45
constructorMethod · 0.45
NaturalSelectionMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected