Skip to content

Interactive Conway's Game of Life module for PowerShell, written in F#. Simulates the Game of Life in your terminal with customizable settings.

License

Notifications You must be signed in to change notification settings

krymtkts/PSGameOfLife

Repository files navigation

PSGameOfLife

Top Language License: MIT

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.

capture

Features

  • Interactive Conway's Game of Life simulation in the terminal
  • Customizable initial randomness and update interval
  • Simple PowerShell cmdlet interface
  • CUI available, GUI planned

Installation

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

Cmdlet Help

See the Start-GameOfLife.md file for detailed cmdlet help.

Usage

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).

License

The MIT License applies to this project. For details, see the LICENSE file.

Links

About

Interactive Conway's Game of Life module for PowerShell, written in F#. Simulates the Game of Life in your terminal with customizable settings.

Topics

Resources

License

Stars

Watchers

Forks