DrakeVorndran / Canvas_Cellular_Automata

3 stars 0 forks source link

If a GameBoard needs to be reset... #7

Open soggybag opened 5 years ago

soggybag commented 5 years ago

https://github.com/DrakeVorndran/Canvas_Cellular_Automata/blob/dcb4e010400c3d69d28c1e79ec2c6952ab936e1d/gameboard.js#L218

.. after it's instantiated might as well call this.reset() in the constructor?

DrakeVorndran commented 5 years ago

in the reset I call init, which would create an infinite recursive loop