Add README.md

This commit is contained in:
Luca 2023-09-03 01:18:13 +02:00
parent c448e925f2
commit f64e5799be
1 changed files with 20 additions and 0 deletions

20
README.md Normal file
View File

@ -0,0 +1,20 @@
# Game of QR
Conway's Game of Life, but for testing what happens if you start with a qr code (or similar).
## Usage
Serve index.html using HTTP (file-URLs won't work because Firefox refuses to run scripts using ImageData from local files), e.g.:
```
python3 -m http.server
```
(This assumes you are in the directory of the cloned repository.)
Open the site (usually `http://localhost:8000` for the above example) in your browser and append the name of the seed image as the URL fragment, e.g.: `http://localhost:8000#qrcode.png`
This repository provides two seed images:
* `qrcode.png`: A QR code containing the Wikipedia abstract for Conway's Game of Life
* `glider.png`: [The "glider" pattern](https://en.wikipedia.org/wiki/Glider_%28Conway's_Game_of_Life%29)