You don't need the comparison to 3. It is enough to use:
Because the next if statement will compare to 3.Code:if checkCell(cells,i,j) && (numberOfNeighbors(cells,i,j) == 2)
| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
|
Results 1 to 15 of 37
Threaded View
|
Click Here to Expand Forum to Full Width |