game-of-life

This is a simple simulation of Conway's Game of Life built with Typescript with Create-React-App

Stars
2

Conway's Game of Life

This is a simple simulation of Conway's Game of Life built with Typescript with Create-React-App

See the application on Netlify

Getting Started

To install, run yarn run install on the terminal.

Prerequisites

  • Yarn >= 1.5.x
  • Node >=8.x

If you do not have yarn installed, here are the instructions on how to install yarn.

Installing

To install, run yarn run install on the terminal.

Running the tests

To run the automated tests for this app, run yarn run test on the terminal.

Break down into end to end tests

The test focuses on the behavior of the application, not the implementation of it.

it('should have a default state defined', () => {
  expect(renderedComponent.state('cell_size')).toBe(20);
  expect(renderedComponent.state('game_height')).toBe(600);
  expect(renderedComponent.state('game_width')).toBe(800);
  expect(renderedComponent.state('isGameRunning')).toBe(false);
});

Deployment

To deploy, run yarn run build and place the ./build folder on the root of the project and place it in the server of your choice. ZThese are static files so no special configuration is needed.

Built With

  • React - A declarative, efficient, and flexible JavaScript library for building user interfaces.
  • Typescript - A superset of JavaScript

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository.

Authors

  • Carlos Santiago - Initial work - Github

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Acknowledgments