Giter Club home page Giter Club logo

gameoflife's Introduction

Game Of Life

This repository contains an implementation of the Game Of Life, a cellular automaton devised by John Horton Conway in 1970.

The Game Of Life is a zero-player game, meaning that its evolution is determined by its initial state without the need for further input.

Description

The Game of Life takes place on an infinite two-dimensional orthogonal grid of square cells. Each cell can be in one of two states: alive or dead. The game evolves through discrete time steps, where the state of each cell at the next generation is determined by its current state and the states of its eight neighboring cells.

The rules of the Game Of Life are as follows:

  1. Any live cell with fewer than two live neighbors dies (underpopulation).
  2. Any live cell with two or three live neighbors survives.
  3. Any live cell with more than three live neighbors dies (overpopulation).
  4. Any dead cell with exactly three live neighbors becomes a live cell (reproduction).

The program allows the user to create an initial configuration of live and dead cells and observe how it evolves over time. The boundaries of the grid have cyclic conditions, meaning that cells on the edges are considered neighbors with cells on the opposite edges.

Usage

  1. Run the program.
  2. Modify the rules of the game if desired.
  3. Input values such as size of the window or name of file for your initial configuration.
  4. Click on the Create Game Of Life button.
  5. Set the initial configuration of live and dead cells according to your preference.
  6. Run the program.
  7. Observe the evolution of the grid as the generations progress.

Customization

The program allows for customization in several aspects:

  • Initial Configuration: You can set the initial configuration of live and dead cells to create different patterns and observe their evolution. You can also save your initial configurations.
  • Rules: You can modify the rules of the game to experiment with different behaviors and patterns.
  • Grid Size: The size of the grid can be adjusted to fit different dimensions.
  • Boundary Conditions: The program implements cyclic boundary conditions.

gameoflife's People

Contributors

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