new render method #8
@ -181,7 +181,7 @@
|
||||
async draw2dNew() {
|
||||
if (!this.canDraw) return;
|
||||
const initialState = this.randomInitialState();
|
||||
let board = evolve2d(initialState, this.selectRules);
|
||||
let board = evolve2d(initialState, this.selectedRules);
|
||||
if (this.loop) return this.draw2dNext(board);
|
||||
else this.draw2d(board);
|
||||
this.toggleStop();
|
||||
|
Loading…
Reference in New Issue
Block a user