GameOfLife ResetGameState Method Delta Engine Documentation

Namespace: GameOfLife
Assembly: GameOfLife (in GameOfLife.exe) Version: 1.1.1.0 (1.1.1)
Syntax

public void ResetGameState()
Remarks

Tests: GameOfLife.Tests.GameOfLifeTests
Examples

1 unit tests call GameOfLife.GameOfLife.ResetGameState
[Test, CloseAfterFirstFrame]
public void ResetGameState()
{
    ReviveAllCells();
    gameOfLife.SimulateNextGeneration();
    gameOfLife.ResetGameState();
    Assert.AreEqual(0, gameOfLife.Population);
    Assert.AreEqual(0, gameOfLife.Generation);
}
See Also