项目作者: mllegoman

项目描述 :
A shell implementation of the famous "game of life" as created by John H. Conway
高级语言: Shell
项目地址: git://github.com/mllegoman/John-Conway-s-Game-of-Life.git
创建时间: 2020-10-05T07:32:35Z
项目社区:https://github.com/mllegoman/John-Conway-s-Game-of-Life

开源协议:

下载


General info

Requires: A POSIX like shell with brace expansion support

i.e. ${variable:0:1}

  1. Usage:
  2. cgol7 -flag1 -flag2 -etc
  • You may notice that the first couple lines of the file are preceeded with “#”. Immediately proceeding these are two default grid tiling options which you may set to your liking.

    • option-1: Size of the default grid. i.e. “#6” for 6x6, or “#16” for 16x16

      • options for both length and width may be added at some point in the future. For now, its just NxN
    • option-2: The data for the default grid.

      • You may be so inclined as to randomize the digits or just pound your keyboard with as many one’s and zero’s as possible. There is no limit even though the grid will only recognize the input to the degree of NxN
  • flags:

    • -h: help

    • -a: specify what alive cells will look like

    • -n: specify what dead cells will look like

    • -s: size of grid NxN

    • -f: specify file to draw grid from

    • -gen: only works with the “grid” executable installed; when installed this script will enable you to generate a random grid with a set size: i.e.

      1. cgol7 -gen 30

      Be aware that the this will create a file named cgol.grid in the current directory

    • -c: capture all stages of a given game

The Installer:

First open a terminal

  1. cd Downloads
  2. chmod +x installer.sh
  3. ./installer.sh