-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
49 lines (37 loc) · 1.79 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
############################################################
############ H E A T S P R E A D ###############
############################################################
V0.2
*UPDATES*
Right-clicking now produces a permanently cold cell as a heat
sink.
General
When creating your initial state, the coordinates
where you click and the temperature of the cell (hot or cold)
get printed to stdout. If you copy and paste these into a
plain text file, you can give the file name as an argument
when you launch the program and it will recreate
the initial state.
In addition to this, you can specify the size of the board
in terms of an integer representing the number of cells in
a side (the board is a square).
Python doesn't care which argument comes first, or if both
are present. It will default to a blank board of 55**2 cells.
Dependencies: the pygame module (freely available).
Overview: Based on my game of life implementation, this is
a cellular automaton which simulates how heat spreads. Upon
initiation, you can click around the board to initiate
points of heat 100. Then press 's' to watch them spread.
How to make it go: make heat.py executable. If you aren't
using a unix-based system (why not???), you will need to alter
(or just delete) the first line of both .py files so they point
to the appropriate place. Finally, execute heat.py.
Usage: left click to change the state a cell to hot or
right-click to change it to cold. Red cells are hot. Black are
positively freezing. Once you're happy with your initial state,
press 's' to start the process. Unless you've altered the
program yourself, it will display an updated board once every
0.35 seconds. When you're bored, or it's finished, press 'q' to
quit.
Implementation by Rob Hawkins. 2012 - The Heat Death of the
Universe.