Giter Site home page Giter Site logo

game-of-life's People

Contributors

juangallostra avatar nonstandardmodel avatar

Watchers

 avatar  avatar

game-of-life's Issues

Proper Readme

Devote some time to write a good readme for the repository that includes a better explanation of the project, the two approaches and its current state.

Infinite world

Instead of a predefined world size keep growing its size as more space is needed.

Move Makefile to root repo directory

The idea is to keep the code inside the src folder but have the Makefile outside (on the top level directory) so that the project can be build from outside the src directory.

Separate drawing logic from main function

In release v.1.0 the code in charge of drawing the current state in the terminal is coupled with the main function. It would be nice to separate them in two files and define a headers file for the drawing function.

Bug in evolve.c

Found this when making non-square worlds.

In evolve.c line 52 should be:
if (*(state + (i + neighbours[k][0])*col + j+ neighbours[k][1]) == 1)
and line 58:
*(pointer + i*col + j) = decision(cont,*(state + i*col +j));
Basically, to get the index into array you must multiply "row number" with "column size" (not with row size as it is now).

Thank You!

Makefile

Create a makefile to organize code compilation

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.