INNER CODE UNIT · C#
World
Cysharp/LogicLooper · samples/LoopHostingApp/LifeGameLoop.cs:87
public class World
{
private readonly Cell[] _cells;
private readonly int _width;
private readonly int _height;
public bool[,] Snapshot { get; private set; }
public int AliveCount { get; private set; }
public World(int width, int height)
{
_width = width;
_height = height;
_cells = new Cell[width * height];
for (var x = 0; x < width; x++)
{