Skip to content

Interactive version of Conway’s Life Game, written in Python. It allows placing different life forms using mouse while game is running.

License

Notifications You must be signed in to change notification settings

pawelbudziszewski/Wild-Life

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Wild-Life

Interactive Game of Life

This is my small lockdown-weekend project: my tribute to John Horton Conway - an interactive version of Life Game. I always wondered, how fun it would be to be able modify life's world in the runtime. So here it is: use your mouse to add new life forms.

Video demonstration:

Watch the video

What you need:

  • Python 3.8 or newer (should work on 3.6+, but I didn't test it)
  • Numpy (pip install numpy)
  • OpenCV (pip install opencv-python)

It should run on any system where you can install Python with modules listed above, however I tested it only on Windows.

How to run it:

Run python3.exe wild_life.py (or equivalent on your system)

How to use it:

  • Mouse-click anywhere to insert species
  • Mouse-click on the species list in the bottom to select species to be inserted
  • 1, 2, 3, 4 keys to change color map
  • Esc to exit

All configuration parameters are stored in the first part of wild_life.py file.

Bonus: minimal code - 141 bytes

The minimal_code folder contains shortest python implementation I was able to create. It's fully functional (though not interactive), with OpenCV visualisation, very fast. In only 141 bytes of code :)

Hit Esc to exit.

Copyright

Copyright 2021, 2022, 2023, 2024 Paweł Budziszewski

About

Interactive version of Conway’s Life Game, written in Python. It allows placing different life forms using mouse while game is running.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages