Code-Bullet/NEAT-Template-JavaScript

Load/Save learn progress?

OhRly-net opened this issue · 2 comments

Is there a way to save and load the progress to a file? If so, could you point me in a direction
?

You would have to program something for the Species class that extracted important player data into a string of some sort, involving also implementing functions in literally almost every class to extract important information into a string, and print the huge data string to the console. Don't know how writing files works or is even possible with JavaScript. Then you would have to make a separate function in all the classes to re-create stuff from a given data string thing. Pretty much, you want to encode Population, which will encode Species, which will encode connectionHistorys, connectionGenes, and Nodes, and then something that can undo that.

@OhRly-net, I implemented a save-load feature in my Python3 fork at https://github.com/CoolCat467/NEAT-Template-Python3/