https://github.com/niko-dunixi/golang-wasm-game-of-life
A GoLang WASM implementation of Conway's Game of Life!
https://github.com/niko-dunixi/golang-wasm-game-of-life
conways-game-of-life go golang wasm webassembly
Last synced: 7 months ago
JSON representation
A GoLang WASM implementation of Conway's Game of Life!
- Host: GitHub
- URL: https://github.com/niko-dunixi/golang-wasm-game-of-life
- Owner: niko-dunixi
- Created: 2019-04-22T18:50:08.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-05-10T19:02:48.000Z (over 6 years ago)
- Last Synced: 2025-01-30T08:43:27.336Z (8 months ago)
- Topics: conways-game-of-life, go, golang, wasm, webassembly
- Language: JavaScript
- Homepage:
- Size: 6.14 MB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# [Conway's Game of Life](https://en.wikipedia.org/wiki/Conway's_Game_of_Life)
This is the project to accompany the [blog post on my website](https://www.paulfreaknbaker.com/posts/golang-wasm-game-of-life/)
## A [GoLang](https://golang.org/) and [WebAssembly](https://webassembly.org/) Implementation
* Any live cell with fewer than two live neighbours dies, as if by underpopulation.
* Any live cell with two or three live neighbours lives on to the next generation.
* Any live cell with more than three live neighbours dies, as if by overpopulation.
* Any dead cell with exactly three live neighbours becomes a live cell, as if by reproduction.
## Running locally
You'll need to install [GoLang](https://golang.org/) and [Make](https://en.wikipedia.org/wiki/Make_%28software%29) first. Clone the project locally and then perform a `make run`.Open your browser to [localhost:4141](http://localhost:4141) to see the game play. You can add query parameters to adjust the `rows`, `columns`, and `seed`. For example [localhost:4141?rows=50&columns=50&seed=12345](http://localhost:4141?rows=50&columns=50&seed=12345)