ddacw / belife Goto Github PK
View Code? Open in Web Editor NEWThis project forked from haikuarchives/belife
BeLife is a BeOS/Zeta implementation of the 'Conway's game of Life' math model.
This project forked from haikuarchives/belife
BeLife is a BeOS/Zeta implementation of the 'Conway's game of Life' math model.
BeLife for Haiku and R5 version 1.0 R5 by T. Lansbergen (0033) studio-33.blogspot.com January 26, 2066 The Game of Life (or simply Life) is not a game in the conventional sense. There are no players, and no winning or losing. Once the "pieces" are placed in the starting position, the rules determine everything that happens later. Nevertheless, Life is full of surprises! In most cases, it is impossible to look at a starting position (or pattern) and see what will happen in the future. The only way to find out is to follow the rules of the game. Rules of the Game of Life: Life is played on a grid of square cells--like a chess board but extending infinitely in every direction. A cell can be live or dead. A live cell is shown by putting a marker on its square. A dead cell is shown by leaving the square empty. Each cell in the grid has a neighborhood consisting of the eight cells in every direction including diagonals. To apply one step of the rules, we count the number of live neighbors for each cell. What happens next depends on this number. * A dead cell with exactly three live neighbors becomes a live cell (birth). * A live cell with two or three live neighbors stays alive (survival). * In all other cases, a cell dies or remains dead (overcrowding or loneliness). Note: The number of live neighbors is always based on the cells before the rule was applied. In other words, we must first find all of the cells that change before changing any of them. Sounds like a job for a computer! Background: Life was invented by the mathematician John Conway in 1970. He choose the rules carefully after trying many other possibilities, some of which caused the cells to die too fast and others which caused too many cells to be born. Life balances these tendencies, making it hard to tell whether a pattern will die out completely, form a stable population, or grow forever. BeOS: In BeOS I found two 'Life' applications, a screensaver called GLife and 'Life' an application whichb simulates the Game of Life math. Unfortunally 'Life' had a dead link, so I hunted down the sources and tried to inprove it a little. The result is 'BeLife'. BeLife offers the same functionality as 'Life', plus user defined colors, special patterns, random patterns and an option to kill all life. Find out more about about Conway's Game of Life: http://en.wikipedia.org/wiki/Conway's_Game_of_Life http://www.math.com/students/wonders/life/life.html
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.