Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cyacedev/conway
A C# implementation of conway which aims to export statistics
https://github.com/cyacedev/conway
conway csharp
Last synced: 12 days ago
JSON representation
A C# implementation of conway which aims to export statistics
- Host: GitHub
- URL: https://github.com/cyacedev/conway
- Owner: cyacedev
- License: mit
- Created: 2020-09-04T06:11:28.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-01-29T07:21:22.000Z (almost 4 years ago)
- Last Synced: 2024-11-04T23:24:51.534Z (about 2 months ago)
- Topics: conway, csharp
- Language: C#
- Homepage:
- Size: 2.76 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# conway
A example Implementation of a Conway's Game of Life simulator,
mostly used to extract statistics.## Development
Use VS Code with the C# extension from omnisharp.
A simple introduction and setup is explained at [microsoft docs](https://docs.microsoft.com/en-us/dotnet/core/tutorials/with-visual-studio-code)Always use a branch for any changes!
## Usage
`dotnet run input.csv`
### CSV-Format
```csv
FieldSize,ProbabilityForLife,NumberOfIterations,NumberOfSimulations,SaveStatistics,SaveEndState,AverageStats,NameStatisticFile,NameEndStateFile
10,100,1000,10,true,false,true,out/outputfile,out/endstate
```| Parameter | Explanation |
| :------------------ | :---------------------------------------------------------------------------------------- |
| FieldSize | The size of the Field in which the starting civilzation will be generated |
| ProbabilityForLife | The Probability in Promille for a cell to be alive at the start |
| NumberOfIterations | Amount of Iterations that a simulation should work trough |
| NumberOfSimulations | Number of Repetitions with the same parameters but new generated cells |
| SaveStatistics | If the programm should save statistics |
| SaveEndState | If the programm should save the last state of the field in a simulation |
| AverageStats | If the program should save averages over all simulations of the same type |
| NameStatisticFile | Where the program should store the stats and the name of the files |
| NameEndStateFile | Where the program should store the last state of the simulation and the name of the files |