GithubHelp home page GithubHelp logo

izanbf1803 / conway-game-of-life Goto Github PK

View Code? Open in Web Editor NEW
7.0 3.0 1.0 15 KB

Conway's game of life in C and SDL2.

License: MIT License

C 96.18% Makefile 3.82%
sdl conway-s-game-of-life conway-game c simulation

conway-game-of-life's Introduction

Executable download: https://github.com/izanbf1803/Builds/tree/master/Conway-game-of-life

Console arguments: (use '.' to use default value)

  1. Screen width
  2. Screen height
  3. Screen update delay (ms)
  4. Spawn probability (0-100) [at first frame of the game]
  5. Cell pixel side length (>0)
  • Sample: conway.exe 1000 500 10 70 1 (100x500 window, 10ms delay, 70% chance of spawning at first frame, with cells of 1 pixel of side size)
  • Sample: conway.exe . . . 50 4 (default window size, default delay, 50% chance of spawning at first frame, with cells of 4 pixels of side size)

Controls:

  • ESCAPE, Q: Quit
  • P: Pause / Resume
  • Up arrow: Speed up
  • Down arrow: Slow down
  • Mouse left click and drop: Add live cells
  • Mouse right click and drop: Kill cells

conway-game-of-life's People

Contributors

izanbf1803 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

x213212

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.