Adding instructions on how to run the example.

This commit is contained in:
Dyego Maas
2022-01-12 10:09:31 -03:00
parent 337e7976d1
commit f3d63355df
2 changed files with 24 additions and 17 deletions

View File

@@ -1,20 +1,4 @@
/*
* LIFE
* An implementation of John Conway's popular cellular automaton
* Ported by Dyego Alekssander Maas
*
* An example pattern would be:
* " * "
* "***"
* "DONE" (indicates that the simulation can start)
*
* You can find patterns to play with here: http://pi.math.cornell.edu/~lipa/mec/lesson6.html
*
* Optionally, you can run this program with the "--wait 1000" argument, the number being the time in milliseconds
* that the application will pause between each iteration. This is enables you to watch the simulation unfolding.
* By default, there is no pause between iterations.
*/
using System.Text;
using System.Text;
const int maxWidth = 70;
const int maxHeight = 24;

View File

@@ -1,3 +1,26 @@
# Life
An implementation of John Conway's popular cellular automaton, also know as **Conway's Game of Life**. The original source was downloaded [from Vintage Basic](http://www.vintage-basic.net/games.html).
Ported by Dyego Alekssander Maas.
## How to run
This program requires you to install [.NET 6 SDK](https://dotnet.microsoft.com/en-us/download/dotnet/6.0). After installed, you just need to run `dotnet run` from this directory in the terminal.
## Know more about Conway's Game of Life
You can find more about Conway's Game of Life on this page of the [Cornell Math Explorers' Club](http://pi.math.cornell.edu/~lipa/mec/lesson6.html), alongside many examples of patterns you can try.
### Optional parameters
Optionally, you can run this program with the `--wait 1000` argument, the number being the time in milliseconds
that the application will pause between each iteration. This is enables you to watch the simulation unfolding. By default, there is no pause between iterations.
The complete command would be `dotnet run --wait 1000`.
## Instructions to the port
Original source downloaded [from Vintage Basic](http://www.vintage-basic.net/games.html)
Conversion to [Microsoft C#](https://docs.microsoft.com/en-us/dotnet/csharp/)