Search:

Type: Posts; User: copeg

Search: Search took 0.08 seconds.

  1. Replies
    3
    Views
    4,421

    Re: help help, ... :) "game of life"

    Yes, but something even more fundamental: examine the isInside function, what if x = 0 and y = -1? You need to safeguard against values greater than the size of the grid, but also less than the size...
  2. Replies
    3
    Views
    4,421

    Re: help help, ... :) "game of life"

    You should safeguard against the edges of the grid. For example, if you are at the first cell [0][0]. Then for line 38:
    line 38 = if (checkCell(cells,x+j,y-i))
    you will end up checking cell...
Results 1 to 2 of 2