GithubHelp home page GithubHelp logo

game-of-life's Introduction

game-of-life

Conway's Game of Life in ncurses

Summary

Given, a rule and a grid:

  1. apply the rule to the grid to produce a new grid,
  2. use ncurses to display the new grid, and
  3. then wait a short period of time (e.g. 1/2 a second)

Copyright

© 2016 Powershop

Stack

The game will be written in Ruby, and will use the ncurses-ruby gem to display the game in ncurses in a terminal window.

Assumptions and limitations

  1. The neighbourhood will be the Moore neighbourhood of a cell.
  2. The grid will not resize if the terminal window changes mid-game.
  3. The initial grid will be all off-pixels with one on-pixel in the centre.

Glossary

  • cell: a single pixel of the Game of Life, either on or off
  • grid: a 2D matrix of cells, fit to the size of the terminal window
  • neighbourhood: a 2D matrix around a cell, containing all cells which might be able to influence the centre cell.
  • rule: a set of transformations from neighbourhoods into cells for the next step of the game

game-of-life's People

Contributors

mattheard avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.