BlueGit

blue-star cellular-evolution

add bias number to cell DNA

timfa Tim · pushed by timfa

Authored 2021-10-16 · 5 years ago

Hash
547e1bfcc3dcffb630bd089c96b41f896328ca2e
Parent
4fbcdb87
1 file changed +2 −1
src/dnastring.js +2 −1
@@ -227,7 +227,8 @@ function AddRandomCell(dna)
227 227 id: id,
228 228 type: TYPES[selected],
229 229 inputs: [],
230 pos: pos
230 pos: pos,
231 bias: 0
231 232 }
232 233
233 234 dna.push(cell);
@@ -227,7 +227,8 @@ function AddRandomCell(dna)
227 id: id,
227 id: id,
228 type: TYPES[selected],
228 type: TYPES[selected],
229 inputs: [],
229 inputs: [],
230 pos: pos
230 pos: pos,
231 bias: 0
231 }
232 }
232
233
233 dna.push(cell);
234 dna.push(cell);