An open API service indexing awesome lists of open source software.

https://github.com/whoabhisheksah/calibration-23-11-19

Game of Life Calibration
https://github.com/whoabhisheksah/calibration-23-11-19

Last synced: 3 months ago
JSON representation

Game of Life Calibration

Awesome Lists containing this project

README

        

# Game of Life

## Problem Description

Make a program to run [Game of Life](https://en.wikipedia.org/wiki/Conway%27s_Game_of_Life).

### Requirements

- Should accept an initial configuration of game given as input
- Should be able to show still lives pattern: Block, Loaf, Boat
- Should be able to run and show oscilator pattern: Toad, Pulsar, Pentadechatlon
- Should be able to run and show spaceship pattern: Glider and Lightweight Space Ship(LWSS)
- Should be able to run and show custom pattern (able to run Gosper Glider Gun)
- Don't show any errors after running the program i.e in glider should be able to automatically scale

## Dev environment setup

### Prerequisites

- [NodeJS Engine v10.16.0](https://nodejs.org/en/download/)
- NPM 6.9.0

### Run the Game

Step 1: Input initial configuration:

- Put you initial configuration in `input.txt`
- Grid is a [mxn] array where,
- [▦] denotes an alive cell
- [▫] denotes a dead cell

Step 2: Run the game
```
npm run start
```

### Run tests
```
$ npm run test
```

### Check code formatting
```
$ npm run format
```

### Fix code formatting
```
$ npm run format:fix
```

### Check linting
```
$ npm run lint
```
Linting rules for this project are followed as per [these guidelines](https://github.com/airbnb/javascript)