gurugu-fcc-projects / FCC_game_of_life

FreeCodeCamp --- Game of Life project

Home Page:https://gurugu-fcc-projects.github.io/FCC_game_of_life/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ENHANCE --- mark gameboard cells as "dead" or "alive" directly

GuRuGuMaWaRu opened this issue · comments

At the moment I rewrite the whole gameboard in order to mark cell as ALIVE, but it is worth a try to do 2 things separately, that is --- add/remove ALIVE class directly via DOM (there is already access to the corresponding element in touch-click functions) and mark/unmark cells as ALIVE in state

I do have to update gameboard every turn based on which cells are Alive and which are Dead - so the only alternative that can be investigated is rendering every cell as a separate component - would it be worth it?