Skip to content

This project is a simple implementation of the Game of Life in Python using Pygame. There no buttons, all the actions are done with the mouse and the keyboard or with the console.

License

Notifications You must be signed in to change notification settings

Athroniaeth/game-of-life

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Game of Life


Presentation

This project is a simple implementation of the Game of Life in Python using Pygame. There no buttons, all the actions are done with the mouse and the keyboard or with the console.

presentation.png

Installation

This project use poetry, to install the dependencies, you can run the following command:

poetry install

Usage

To run the project, you can use the following command:

poetry run python src

Commands

The 'game' is controlled with the mouse and the keyboard. Here are the available commands:

  • Left click: Toggle individual cell

  • Right click: Clear the grid of living cells

  • Space: Generate the next generation

  • R: Return to last generation

  • Held left click: Draw cells (keep the last status of first cell clicked)

  • Held Space: Generate the next generation automatically

Console

You can also use the console (work with Typer) to interact with the game. To do so, you open console with ² key and type 'help' to see the available commands.

console.png

About

This project is a simple implementation of the Game of Life in Python using Pygame. There no buttons, all the actions are done with the mouse and the keyboard or with the console.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages