juangallostra / game-of-life Goto Github PK
View Code? Open in Web Editor NEWC implementation of Conway's game of life
License: MIT License
C implementation of Conway's game of life
License: MIT License
The tittle says it all, but the main idea is to use the API GitHub provides to retrieve the contribution history of a specified user for the last year or for a specified period of time and use it as the initial state of the world.
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.
Let the user via terminal input or via a GUI specify the initial configuration of the world.
Instead of a predefined world size keep growing its size as more space is needed.
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.
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.
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!
Create a makefile to organize code compilation
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.