All Projects → KyleBanks → Conways Gol

KyleBanks / Conways Gol

Licence: mit
Conway's Game of Life implemented with Go and OpenGL.

Programming Languages

go
31211 projects - #10 most used programming language

Projects that are alternatives of or similar to Conways Gol

Territory
3D rendered proc-gen world test. C++ homebrew voxel engine for agent-driven prodedural generation / world simulation
Stars: ✭ 175 (+108.33%)
Mutual labels:  opengl, simulation
Expo Crossy Road
🐥🚙 Crossy Road game clone made in Expo (iOS, Android, web), THREE.js, Tween, React Native. 🐔
Stars: ✭ 701 (+734.52%)
Mutual labels:  opengl, tutorial
Lwjgl3 Tutorial
Tutorial for the Lightweight Java Game Library (LWJGL) 3
Stars: ✭ 199 (+136.9%)
Mutual labels:  opengl, tutorial
Tinyrenderer
A brief computer graphics / rendering course
Stars: ✭ 11,776 (+13919.05%)
Mutual labels:  opengl, tutorial
Game Dogfight
Air to air combat game, created in Python 3 using HARFANG 3D.
Stars: ✭ 41 (-51.19%)
Mutual labels:  opengl, simulation
Sparkle
🎇 A modern particle engine running on GPU, using c++14 and OpenGL 4.4.
Stars: ✭ 162 (+92.86%)
Mutual labels:  opengl, simulation
Gltut
Learning Modern 3D Graphics Programming
Stars: ✭ 690 (+721.43%)
Mutual labels:  opengl, tutorial
Autonomousdrivingcookbook
Scenarios, tutorials and demos for Autonomous Driving
Stars: ✭ 1,939 (+2208.33%)
Mutual labels:  tutorial, simulation
Opengl Seed
⚪🌱A modern OpenGL starter repo that you could use to get the ball rolling.
Stars: ✭ 20 (-76.19%)
Mutual labels:  opengl, tutorial
Ros Academy For Beginners
中国大学MOOC《机器人操作系统入门》代码示例 ROS tutorial
Stars: ✭ 861 (+925%)
Mutual labels:  tutorial, simulation
Tinyraycaster
486 lines of C++: old-school FPS in a weekend
Stars: ✭ 1,383 (+1546.43%)
Mutual labels:  opengl, tutorial
Expo Three Demo
🍎👩‍🏫 Collection of Demos for THREE.js in Expo!
Stars: ✭ 76 (-9.52%)
Mutual labels:  opengl, tutorial
Physics3d
A 3D physics engine
Stars: ✭ 101 (+20.24%)
Mutual labels:  opengl, simulation
Glsltuto
GLSL shaders tutorial
Stars: ✭ 168 (+100%)
Mutual labels:  opengl, tutorial
Openrct2
An open source re-implementation of RollerCoaster Tycoon 2 🎢
Stars: ✭ 10,115 (+11941.67%)
Mutual labels:  opengl, simulation
Renderhelp
⚡️ 可编程渲染管线实现,帮助初学者学习渲染
Stars: ✭ 494 (+488.1%)
Mutual labels:  opengl, tutorial
Dig Into Apollo
Apollo notes (Apollo学习笔记) - Apollo learning notes for beginners.
Stars: ✭ 903 (+975%)
Mutual labels:  tutorial, simulation
Sunset Cyberspace
🎮👾Retro-runner Game made in Expo, Three.js, OpenGL, WebGL, Tween. 🕹
Stars: ✭ 54 (-35.71%)
Mutual labels:  opengl, tutorial
Sph Tutorial
Dan Koschier, Jan Bender, Barbara Solenthaler, Matthias Teschner, "Smoothed Particle Hydrodynamics for Physically-Based Simulation of Fluids and Solids", Eurographics Tutorial, 2019
Stars: ✭ 78 (-7.14%)
Mutual labels:  tutorial, simulation
Freetype Gl
OpenGL text using one vertex buffer, one texture and FreeType
Stars: ✭ 1,236 (+1371.43%)
Mutual labels:  opengl

Conway's Game of Life

conways-gol is a Conway's Game of Life implementation using Go and OpenGL with go-gl, and was developed as part of a tutorial I wrote on OpenGL with Go.

To follow the tutorial and learn OpenGL with Go by implementing Conway's Game of Life for yourself, check out:

Conway's Game of Life

The 'Game'

The Game of Life, also known simply as Life, is a cellular automaton devised by the British mathematician John Horton Conway in 1970.

The "game" is a zero-player game, meaning that its evolution is determined by its initial state, requiring no further input. One interacts with the Game of Life by creating an initial configuration and observing how it evolves, or, for advanced "players", by creating patterns with particular properties. [1]

The premise of the game is that each cell on the grid is, at any time, either dead or alive. The state of each cell is determined using the following rules:

  1. Any live cell with fewer than two live neighbours dies, as if caused by underpopulation.
  2. Any live cell with two or three live neighbours lives on to the next generation.
  3. Any live cell with more than three live neighbours dies, as if by overpopulation.
  4. Any dead cell with exactly three live neighbours becomes a live cell, as if by reproduction.

For the full rules, check Wikipedia.

Install

You can download and build directly from source like so:

$ go get github.com/KyleBanks/conways-gol

Usage

$ conways-gol

conways-gol takes a few optional parameters:

-columns and -rows

The -columns and -rows parameters dictate the size of the game board.

$ conways-gol -columns 100 -rows 100

Conways Game of Life 100x100

-seed

Each time conways-gol is launched, it uses a seed value to randomize the state of the game. The -seed parameter allows you to fix that value to replay the exact same simulation. For example, a -seed value of 9000 will always produce an identical game.

$ conways-gol -seed 9000

-threshold

In addition to the -seed, the -threshold is critical in determining the outcome of the game. The -threshold is a percentage, between 0.0 and 1.0 that dictates the chance of each individual cell starting alive or dead. For instance, if the -threshold is 0.15, it means that each cell has a 15% chance of starting the game alive.

$ conways-gol -threshold 0.1

-fps

The -fps flag allows you to configure the frames-per-second of the simulation. If you set -fps to 60, there will be sixty ticks of the game each second.

$ conways-gol -fps 60

Author

conways-gol was developed by Kyle Banks.

License

conways-gol is available under the MIT license.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].