Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/gaelgirodon/gameoflife
- Owner: GaelGirodon
- License: gpl-3.0
- Created: 2018-09-08T16:10:36.000Z (about 6 years ago)
- Default Branch: main
- Last Pushed: 2024-03-24T14:18:35.000Z (8 months ago)
- Last Synced: 2024-03-24T15:30:08.234Z (8 months ago)
- Language: C#
- Homepage:
- Size: 35.2 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.