PSGameOfLife is a PowerShell module written in F#. It runs Conway's Game of Life interactively in your console.
Tested on PowerShell 7.4 or later with Windows Terminal on both Windows and Ubuntu. Visual Studio Code terminal appears to have a higher load than Windows Terminal.
- Interactive Conway's Game of Life simulation in the terminal
- Customizable initial randomness and update interval
- Simple PowerShell cmdlet interface
- CUI available, GUI planned
You can install PSGameOfLife from the PowerShell Gallery:
# Recommended: PSResourceGet (PowerShellGet 3.0)
Install-PSResource -Name PSGameOfLife
# Or, with PowerShellGet 2.x:
Install-Module -Name PSGameOfLife
See the Start-GameOfLife.md file for detailed cmdlet help.
Start the Game of Life simulation with the default settings:
Start-GameOfLife
Press Q
during the simulation to quit.
You can customize the initial randomness and update interval:
Start-GameOfLife -FateRoll 0.2 -IntervalMs 200
-FateRoll
sets the probability (0.1 ~ 0.5) that each cell is alive at the start.-IntervalMs
sets the interval in milliseconds between generations (default: 100).
The MIT License applies to this project. For details, see the LICENSE file.