Files
game-of-life/GameOfLife/ILife.cs
T
2026-05-07 03:23:56 +00:00

17 lines
459 B
C#

using System.Collections.Generic;
using GameOfLife.Entities;
namespace GameOfLife
{
public interface ILife
{
int Generation { get; }
int Population { get; }
bool IsCellAlive(Cell cell);
bool AllAlive(IEnumerable<Cell> cells);
bool AllDead(IEnumerable<Cell> cells);
bool ToggleCell(Cell cell);
void IncrementGeneration();
IEnumerable<Cell> LivingCells { get; }
}
}