Closed vitkarpov closed 6 years ago
In the case of the example, the evolve variable is just a string that holds the sentence we are trying to evolve - https://github.com/cashlionjp/JeneticS/blob/master/examples/toBeOrNotToBe/app.js#L37. If you apply this to another problem, you can choose to score the agent in any way that makes sense. I’ll be releasing a traveling salesman example soon where the dna is random points ( 2d ) and the score is determined by the length of the circuit. The shorter the circuit the higher the score!
I've updated the readme to include the evolve declaration. Thanks for pointing that out!
Hi!
I'm looking at this piece of code:
What is
evolve
array here? Where is it from? 🤔