Skip to content

FACON-Nicolas/conways-life-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 

Repository files navigation

conway's game of life

This repository contains a conways game of life developped in python, but currently the project is not actually optimized.

What the conway's game of life is ?

The conway's game of life is a cellular automate made by John Horton Conway in 1970. It's a complex game simulation dispite the easy rules.

The rules of the conway's game of life are very easy to understand, the game is composed by a grid of tiles called cells, cells can have 2 differents states, dead or alive, and their state depend by the neighbors:

  • 2 neighbors: the cells' state doesn't change.
  • 3 neighbors: the cells' state becomes / stay alive
  • others: the cells' state becomes / stays dead

Summary

Developers

Features

  • Random Grid Generation
  • Clear Grid
  • Previous Step
  • Next Step
  • Pause / Resume

Pre-requisites

  • Windows

    • Python
    • Git Bash
    • pygame (py -3.8 -m pip install pygame in your terminal)
    • pygame_gui (py -3.8 -m pip install pygame_gui in your terminal)
  • Linux:

    write this in terminal

    #if python is not installed yet.
    sudo apt install python3.8
    
    #if pygame is not installed yet.
    pip install pygame
    
    #if pygame_gui is not installed yet.
    pip install pygame_gui

Install

Write this in your terminal (or your Git Bash terminal).

git clone https://github.com/FACON-Nicolas/conways-life-game
cd conways-life-game
#python3 or py on windows
python3 src/game.py

Keys

many buttons are presents in the window, but, some inputs can be used.

Key Action
SPACE launch the life
RIGHT next step of the life
LEFT last step of the life

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages