Tips on getting started for game of life?

Tips on getting started for game of life?
0

#1

Hey all,

I’m about to start my Game of Life project, and I was just wondering if any of you had tips on where I should start. I’m going to write out some pseudo code this afternoon (as I know it helps me), but I haven’t got a clue how to make that grid or anything else.


#2

I think I followed this:

  • plan out the React component architecture
  • create the grid and make sure I could activate individual cells
  • create a starting grid and see if I could take it through an iteration
  • set up the repeated iteration
  • add bells and whistles

#3

As far as creating the grid, I basically did what I did for the tic-tac-toe. I created a bunch of spans and wrapped then in a div. I did the math on the div such that I got the rows and cols I needed. Inelegant, but it works.