GithubHelp home page GithubHelp logo

rubiomanuel / game-of-life Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 1.63 MB

Implementation of Game of Life in C using Raylib library.

License: MIT License

Makefile 5.92% C 94.08%
c game-of-life raylib-c simulation

game-of-life's Introduction

GitHub commit activity GitHub Repo stars

Welcome to Game of Life! Waving Hand Emoji

Game of Life Gif

What is Game of Life?

The game of life is a cellular automaton divised by the British mathematician John H. Conway in 1970. It's a zero player game, meaning that its evolution is determined by its initial state, requiring no further input. We interact with the game of life by creating an initial configuration and then observing how it evolves.

It is also Turing Complete, meaning that it can simulate any turing machine.

Compiling and Running

This project uses the library raylib (version 4.5.0). Before doing the following steps, you must have raylib installed.

Clone the repository and access to its root directory

$ git clone https://github.com/RubioManuel/game-of-life
$ cd game-of-life

Use GNU Make to compile it

$ make gol

or try with the following instruction

$ gcc ./src/gol.c ./src/grid.c -lraylib -lGL -lm -lpthread -ldl -lrt -lX11 -o ./bin/gol

This should output a binary file called gol in project's bin/ directory.

Run the game

$ ./bin/gol

game-of-life's People

Contributors

rxxbyy avatar

Stargazers

ibon 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.