View GameOfLife.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
# Conway's game of life. | |
# Touch cells to give them life. | |
# Tap screen with two fingers to pause/un-pause. | |
# Tap screen with three fingers to give life to random cells. | |
from scene import * | |
from PIL import Image, ImageDraw | |
import random |