Initial commit
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
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; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user