Does anyone have any idea how to implement the following for enemies:
1. Each cell with one or no neighbors dies.
2. Each cell with four or more neighbors dies.
3. Each cell with two or three neighbors survives.
4. Each cell with three neighbors becomes populated.
This would apply to enemies that are adjacent to the player as well. Each "cell" is a grid square. I have no idea how this would be done. If anyone has any ideas, I would appreciate it.
You know your code sucks when it does what you want before you know what you want.