Python/OpenCl Cellular Automata explorer
I encourage anyone who is willing to contribute to this code do so: Fork the Github repository and upload your successive changes!
-
sudo apt-get install python-pyopencl
-
sudo apt-get install python-scipy
-
sudo apt-get install python-tk
-
sudo apt-get install python-pygame
AMD
Intel
nvidia:
- sudo apt-get install nvidia-opencl-dev
AMD:
- Pending ... Message me at reddit's /u/slackermanz if you have compatibility suggestions!
If your machine can run GPU-accelerated simulations with https://code.google.com/p/reaction-diffusion/ it should also be able to run this program.
Open the terminal in './PyCl-Convergence-master/ConwayCL-Final'
Run the Python script './PyCl-Convergence-master/ConwayCL-Final/Main.py' in the terminal with: 'python main.py'
-
Spam the ENTER key to use default settings
-
Right Click to toggle pause
-
Click the scrollwheel or press 'R' key to restart/reseed world
-
'Forward' mouse button or 'E' key to change rule
-
'Back' mousebutton or 'T' key to use a Bitmap image seed
-
'Q' key to toggle image-capture recording (creates a series of Avidemux-compatible Bitmaps)
-
'P' to wipe the screen clear of all living cells
-
'F' to toggle use of 'Photographic' filter
-
'I' to toggle use of 'Game Mode' (Prerequisite: 'F' for Filter Mode must be on)
There's Three Modes: DRAW, VIEW, and GAME
DRAW (Typical Default)
-
Scrollwheel to increase Drawn Square Size
-
'SPACEBAR' to toggle DRAW or VIEW modes
VIEW
-
'SPACEBAR' to toggle DRAW or VIEW modes
-
The game world will become centered on the mouse location
-
Scrollwheel to Zoom in or out
GAME (Temporarily Default Override)
-
'I' to toggle use of 'Game Mode'
-
Spacebar or Left Click to shoot at the Mouse Position
-
'F' to toggle use of 'Photographic' filter