17 lines
459 B
C#
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; }
|
|
}
|
|
} |