https://github.com/animesh-ghosh/game_of_life
Conway's Game of Life
https://github.com/animesh-ghosh/game_of_life
Last synced: 7 months ago
JSON representation
Conway's Game of Life
- Host: GitHub
- URL: https://github.com/animesh-ghosh/game_of_life
- Owner: Animesh-Ghosh
- License: agpl-3.0
- Created: 2023-12-10T11:06:01.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2024-01-08T20:04:10.000Z (almost 2 years ago)
- Last Synced: 2025-02-07T09:44:51.969Z (8 months ago)
- Language: Ruby
- Size: 273 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# game_of_life
Conway's Game of Life, in Ruby.

## Installation
```bash
bundle install
```*`ruby2d` installation might fail if the SDL2 library hasn't been installed. See [here](https://www.ruby2d.com/learn/linux/#install-packages)*
## Run the Game
```bash
bundle exec rake
```### Options
```bash
Usage: rake [options]
-w, --width [WIDTH] Width of the game board
--height [HEIGHT] Height of the game board
-m, --mode [MODE] Rendering mode, console by default
console, gui
-h, --help Help
```### Example
```bash
bundle exec rake -- --width=64 --height=48 --mode=gui
```#### Caveats
*`gui` mode requires `ruby2d` to be installed. Check it out [here](https://www.ruby2d.com/learn/get-started/).*
## Run the Specs
```bash
bundle exec rake spec
```