Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/gaelgirodon/gameoflife

A simple implementation of the cellular automaton Conway's Game of Life made with .NET & MonoGame
https://github.com/gaelgirodon/gameoflife

Last synced: 2 days ago
JSON representation

A simple implementation of the cellular automaton Conway's Game of Life made with .NET & MonoGame

Awesome Lists containing this project

README

        

# _Conway's Game of Life_

A simple implementation of the cellular automaton _Conway's Game of Life_
made with .NET & [MonoGame](https://github.com/MonoGame/MonoGame).

## QuickStart

- Clone the repository or download it as a ZIP
- Restore NuGet packages
- Build and run the program

## Examples of patterns

Some [presets](GameOfLife/Components/AutomatonPreset.cs) are built-in
to test the cellular automaton with well-known examples.

The initial state can be customized by changing the `preset` argument value of the `GameOfLifeAutomaton`
constructor in [`GameOfLifeGame.cs`](GameOfLife/GameOfLifeGame.cs#L54) (line `54`), e.g.:

```csharp
_automaton = new GameOfLifeAutomaton(ScreenSize.Scale(0.5f), 160, 110, 8, Color.DodgerBlue,
AutomatonPreset.RPentomino, 50, 2500);
```

## Controls

Two keyboard controls are implemented:

- + (`Add`) or (`Up`): speed up the simulation
- - (`Subtract`) or (`Down`): slow down the simulation

## License

This project is licensed under the GNU General Public License.