Giter Site home page Giter Site logo

conwayslife's Introduction

conwayslife

A C++ implementation of Conway’s Life for Oregon State University’s Computer Science program.

Design Notes

Detailed design information is available in the initialDesign.odt or initialDesign.pdf files on github, but here’s a brief summary of the design anyway:

Built with five classes, one for cells (called Cell), one for collections of cells (Board), one for games (Game), one for an individual starting configuration (Config) and one for sets of starting configurations (ConfigSet). The classes and all their functions are defined in an interface/implementation file pair called life (life.h and life.cpp). Some configurations are provided in the life library. The user will be able to define more as he/she wants.

More on the design

I can’t say the implementation follows the design perfectly, so if something looks odd in the design, it probably is, and I probably changed it in the implementation. If you find something off about the program, let me know.

Game Configurations

This implementation has only two initial configurations out of the box (Gosper Glider Gun and a single pulsar), but others can be added by adding to the libs/configs.h file.

Compilation Information

This program should compile without problems on Linux, as long as you have the library unistd.h for the usleep() function, which makes the output of generations very nice.

Be sure to run this in a terminal emulator 80 cols wide and 22 rows high.

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.