Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/branogarbo/golcli
A basic CLI implementation of Conway's Game of Life.
https://github.com/branogarbo/golcli
cellular-automaton cli command-line game-of-life go golang
Last synced: 28 days ago
JSON representation
A basic CLI implementation of Conway's Game of Life.
- Host: GitHub
- URL: https://github.com/branogarbo/golcli
- Owner: branogarbo
- License: apache-2.0
- Created: 2021-04-14T09:48:31.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2021-10-29T09:38:22.000Z (about 3 years ago)
- Last Synced: 2024-08-03T23:29:06.501Z (4 months ago)
- Topics: cellular-automaton, cli, command-line, game-of-life, go, golang
- Language: Go
- Homepage:
- Size: 5.7 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-golang-repositories - golcli
README
# 🧬 **golcli**
**A basic CLI implementation of Conway's Game of Life.**---
## 🌱 **Setup**
Download and compile from sources:
```
go get github.com/branogarbo/golcli
```
Install just the binary with Go:
```
go install github.com/branogarbo/golcli@latest
```Or get the pre-compiled binaries for your platform on the [releases page](https://github.com/branogarbo/golcli/releases)
## 🌳 **CLI usage**
```
golcliA basic CLI implementation of Conway's Game of Life.
Usage:
golcli [flags]
golcli [command]Examples:
golcli -c 100 -i 20 ./pattern.txtAvailable Commands:
build Creates a build file from a pattern file.
help Help about any command
run Runs a build file.Flags:
-c, --count int The number of frames displayed before exiting (-1 : infinite loop) (default -1)
-d, --dead-char string The character(s) that represent a dead cell (default "██")
-H, --height int The height of the frames (default 30)
-h, --help help for golcli
-i, --interval int The number of milliseconds between frames (default 50)
-l, --live-char string The character(s) that represent a live cell (default " ")
-x, --pattern-x int The x offset of the initial pattern (default 12)
-y, --pattern-y int The y offset of the initial pattern (default 8)
-W, --width int The width of the frames (default 40)Use "golcli [command] --help" for more information about a command.
```### **build:**
```
Creates a build file from a pattern file.Usage:
golcli build [flags]Examples:
golcli build -W 70 -c 400 pattern.txt builds/patternFlags:
-c, --count int The number of frames displayed before exiting (default 500)
-H, --height int The height of the frames (default 30)
-h, --help help for build
-x, --pattern-x int The x offset of the initial pattern (default 12)
-y, --pattern-y int The y offset of the initial pattern (default 8)
-W, --width int The width of the frames (default 40)
```### **run:**
```
Runs a build file.Usage:
golcli run [flags]Examples:
golcli run -l "##" -d ".." -i 200 buildFiles/patternFlags:
-d, --dead-char string The character(s) that represent a dead cell (default "██")
-h, --help help for run
-i, --interval int The number of milliseconds between frames (default 50)
-l, --live-char string The character(s) that represent a live cell (default " ")
```