()
| 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; |
no outgoing calls
no test coverage detected