Home » Archimedes archive » Acorn User » AU 1997-05 B.adf » Regulars » StarInfo/Lurcock/!Hodge/!Help
StarInfo/Lurcock/!Hodge/!Help
This website contains an archive of files for the Acorn Electron, BBC Micro, Acorn Archimedes, Commodore 16 and Commodore 64 computers, which Dominic Ford has rescued from his private collection of floppy disks and cassettes.
Some of these files were originally commercial releases in the 1980s and 1990s, but they are now widely available online. I assume that copyright over them is no longer being asserted. If you own the copyright and would like files to be removed, please contact me.
Tape/disk: | Home » Archimedes archive » Acorn User » AU 1997-05 B.adf » Regulars |
Filename: | StarInfo/Lurcock/!Hodge/!Help |
Read OK: | ✔ |
File size: | 12D8 bytes |
Load address: | 0000 |
Exec address: | 0000 |
File contents
The HodgePodge Machine - a 2-dimensional cellular automaton � 1996 Pontus Lurcock ============================================================================= INTRODUCTION_________________________________________________________________ The Hodgepodge Machine is a family of cellular automata invented by Gerhardt and Schuster at the university of Bielefeld. It produces swirly patterns. !Hodge is a multitasking implementation of this system, letting you play around with the settings to produce varied results... WHAT IT IS___________________________________________________________________ The action takes place on a grid of square cells, each of which has a state corresponding to a number from 0 to n, n being the highest possible state. In !Hodge the grid is a sprite, each cell is a pixel, and the cell's state is represented by the pixel's colour. Time moves in steps of one generation. The state of a cell in any generation is entirely dependent on the state of itself and its neighbours in the previous generations, as well as a few predefined constants. In the Hodgepodge machine, a cell with state 0 is 'healthy', a cell with state n (i.e. maximum state) is 'ill', and anything in between in is 'infected'. The method used to calculate the cell's state in the next generation depends on which of these three categories it is in: For a healthy cell: new state = INT(A/k1) + INT(B/k2) For an infected cell: new state = INT(S/A) + g For an ill cell: new state = 0 (cell miraculously becomes healthy) A is the number of infected neighbouring cells (including the cell itself) B is the number of ill neighbouring cells S is the sum of the states of the cell and its neighbours k1, k2 and g are constants A great range of behaviour can be produced just by changing k1, k2 and g. But there's more. You can also control what is meant by 'neighbours'. Normally this means either the four cells above, below, left and right of the cell (von Neumann neighbourhood), or the eight cells touching the cell (Moore neighbourhood), but !Hodge lets you select any combination of the eight surrounding cells. (see illustration below) # von Neumann ### Moore # # Don't know what this is called, #O# #O# O but it produces interesting # ### # # results... The only other thing you can change (apart from the size) is the wrapping. If 'wrap' is on, a cell at the edge of the grid will 'see' the cell at the opposite edge as its neighbour. Wrapped automata tile seamlessly, so they make rather nice backdrops... TOOLS________________________________________________________________________ Clicking select on the Hodge icon brings up the main display window with a toolbar. From left to right, the tools are: || PAUSE: Stops the automaton. > PLAY: Starts it. |> STEP: Advances one generation. >[] FULL: Single-tasks, scaling the picture up to full screen. # RESET: Randomises the grid. At the right is an icon showing the current generation. While in single-tasking mode, you can return to the desktop by pressing any key or mouse button. However, note that the keyboard is only scanned once a generation so you may have to hold it down slightly... Clicking menu over the display lets you change the magnification and save the current generation. The Settings window, accessed via the icon bar menu (or click adjust on the icon), should be fairly self-explanatory. The width and height must be between 20 and 512, and a multiple of 4. The grid is randomised every time the rules are changed. NOTES________________________________________________________________________ !Hodge tends to slow the desktop down somewhat. Even on a Risc PC things start getting a bit jerky above a size of around 80x80. In rectangular-pixel modes the x scale is doubled when plotting, so the cells don't look stretched. The speed-critical update routine is written in Assembler, and is custom- reassembled every time the settings are changed - this frees up the registers which would otherwise be needed to hold things like constants and grid size. The grid is stored in two 256-colour sprites, which are easy to access since they're one byte per pixel. (Two are required because you don't want to start overwriting the old generation before you've finished reading it). One or two mildly cunning techniques are used for speed, but it's fairly straightforward really... Interesting results can be producd with a von Neumann neighbourhood, n=100, k1=2, k2=3, g=18 or thereabouts. Apparently it looks a bit like certain oscillating chemical reactions... CONTACT______________________________________________________________________ pontus@arcade.demon.co.uk, or 9 Monmouth Road, Oxford OX1 4TD, England Happing hodging... Pont
00000000 54 68 65 20 48 6f 64 67 65 50 6f 64 67 65 20 4d |The HodgePodge M| 00000010 61 63 68 69 6e 65 20 2d 20 61 20 32 2d 64 69 6d |achine - a 2-dim| 00000020 65 6e 73 69 6f 6e 61 6c 20 63 65 6c 6c 75 6c 61 |ensional cellula| 00000030 72 20 61 75 74 6f 6d 61 74 6f 6e 0a a9 20 31 39 |r automaton.. 19| 00000040 39 36 20 50 6f 6e 74 75 73 20 4c 75 72 63 6f 63 |96 Pontus Lurcoc| 00000050 6b 0a 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d |k.==============| 00000060 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d |================| * 00000090 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 0a |===============.| 000000a0 0a 49 4e 54 52 4f 44 55 43 54 49 4f 4e 5f 5f 5f |.INTRODUCTION___| 000000b0 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f |________________| * 000000e0 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 0a 0a |______________..| 000000f0 54 68 65 20 48 6f 64 67 65 70 6f 64 67 65 20 4d |The Hodgepodge M| 00000100 61 63 68 69 6e 65 20 69 73 20 61 20 66 61 6d 69 |achine is a fami| 00000110 6c 79 20 6f 66 20 63 65 6c 6c 75 6c 61 72 20 61 |ly of cellular a| 00000120 75 74 6f 6d 61 74 61 20 69 6e 76 65 6e 74 65 64 |utomata invented| 00000130 20 62 79 20 47 65 72 68 61 72 64 74 0a 61 6e 64 | by Gerhardt.and| 00000140 20 53 63 68 75 73 74 65 72 20 61 74 20 74 68 65 | Schuster at the| 00000150 20 75 6e 69 76 65 72 73 69 74 79 20 6f 66 20 42 | university of B| 00000160 69 65 6c 65 66 65 6c 64 2e 20 49 74 20 70 72 6f |ielefeld. It pro| 00000170 64 75 63 65 73 20 73 77 69 72 6c 79 20 70 61 74 |duces swirly pat| 00000180 74 65 72 6e 73 2e 0a 21 48 6f 64 67 65 20 69 73 |terns..!Hodge is| 00000190 20 61 20 6d 75 6c 74 69 74 61 73 6b 69 6e 67 20 | a multitasking | 000001a0 69 6d 70 6c 65 6d 65 6e 74 61 74 69 6f 6e 20 6f |implementation o| 000001b0 66 20 74 68 69 73 20 73 79 73 74 65 6d 2c 20 6c |f this system, l| 000001c0 65 74 74 69 6e 67 20 79 6f 75 20 70 6c 61 79 0a |etting you play.| 000001d0 61 72 6f 75 6e 64 20 77 69 74 68 20 74 68 65 20 |around with the | 000001e0 73 65 74 74 69 6e 67 73 20 74 6f 20 70 72 6f 64 |settings to prod| 000001f0 75 63 65 20 76 61 72 69 65 64 20 72 65 73 75 6c |uce varied resul| 00000200 74 73 2e 2e 2e 0a 0a 0a 57 48 41 54 20 49 54 20 |ts......WHAT IT | 00000210 49 53 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f |IS______________| 00000220 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f |________________| * 00000250 5f 5f 5f 5f 5f 0a 0a 54 68 65 20 61 63 74 69 6f |_____..The actio| 00000260 6e 20 74 61 6b 65 73 20 70 6c 61 63 65 20 6f 6e |n takes place on| 00000270 20 61 20 67 72 69 64 20 6f 66 20 73 71 75 61 72 | a grid of squar| 00000280 65 20 63 65 6c 6c 73 2c 20 65 61 63 68 20 6f 66 |e cells, each of| 00000290 20 77 68 69 63 68 20 68 61 73 20 61 20 73 74 61 | which has a sta| 000002a0 74 65 0a 63 6f 72 72 65 73 70 6f 6e 64 69 6e 67 |te.corresponding| 000002b0 20 74 6f 20 61 20 6e 75 6d 62 65 72 20 66 72 6f | to a number fro| 000002c0 6d 20 30 20 74 6f 20 6e 2c 20 6e 20 62 65 69 6e |m 0 to n, n bein| 000002d0 67 20 74 68 65 20 68 69 67 68 65 73 74 20 70 6f |g the highest po| 000002e0 73 73 69 62 6c 65 20 73 74 61 74 65 2e 20 49 6e |ssible state. In| 000002f0 0a 21 48 6f 64 67 65 20 74 68 65 20 67 72 69 64 |.!Hodge the grid| 00000300 20 69 73 20 61 20 73 70 72 69 74 65 2c 20 65 61 | is a sprite, ea| 00000310 63 68 20 63 65 6c 6c 20 69 73 20 61 20 70 69 78 |ch cell is a pix| 00000320 65 6c 2c 20 61 6e 64 20 74 68 65 20 63 65 6c 6c |el, and the cell| 00000330 27 73 20 73 74 61 74 65 20 69 73 0a 72 65 70 72 |'s state is.repr| 00000340 65 73 65 6e 74 65 64 20 62 79 20 74 68 65 20 70 |esented by the p| 00000350 69 78 65 6c 27 73 20 63 6f 6c 6f 75 72 2e 0a 0a |ixel's colour...| 00000360 54 69 6d 65 20 6d 6f 76 65 73 20 69 6e 20 73 74 |Time moves in st| 00000370 65 70 73 20 6f 66 20 6f 6e 65 20 67 65 6e 65 72 |eps of one gener| 00000380 61 74 69 6f 6e 2e 20 54 68 65 20 73 74 61 74 65 |ation. The state| 00000390 20 6f 66 20 61 20 63 65 6c 6c 20 69 6e 20 61 6e | of a cell in an| 000003a0 79 20 67 65 6e 65 72 61 74 69 6f 6e 0a 69 73 20 |y generation.is | 000003b0 65 6e 74 69 72 65 6c 79 20 64 65 70 65 6e 64 65 |entirely depende| 000003c0 6e 74 20 6f 6e 20 74 68 65 20 73 74 61 74 65 20 |nt on the state | 000003d0 6f 66 20 69 74 73 65 6c 66 20 61 6e 64 20 69 74 |of itself and it| 000003e0 73 20 6e 65 69 67 68 62 6f 75 72 73 20 69 6e 20 |s neighbours in | 000003f0 74 68 65 0a 70 72 65 76 69 6f 75 73 20 67 65 6e |the.previous gen| 00000400 65 72 61 74 69 6f 6e 73 2c 20 61 73 20 77 65 6c |erations, as wel| 00000410 6c 20 61 73 20 61 20 66 65 77 20 70 72 65 64 65 |l as a few prede| 00000420 66 69 6e 65 64 20 63 6f 6e 73 74 61 6e 74 73 2e |fined constants.| 00000430 0a 0a 49 6e 20 74 68 65 20 48 6f 64 67 65 70 6f |..In the Hodgepo| 00000440 64 67 65 20 6d 61 63 68 69 6e 65 2c 20 61 20 63 |dge machine, a c| 00000450 65 6c 6c 20 77 69 74 68 20 73 74 61 74 65 20 30 |ell with state 0| 00000460 20 69 73 20 27 68 65 61 6c 74 68 79 27 2c 20 61 | is 'healthy', a| 00000470 20 63 65 6c 6c 20 77 69 74 68 0a 73 74 61 74 65 | cell with.state| 00000480 20 6e 20 28 69 2e 65 2e 20 6d 61 78 69 6d 75 6d | n (i.e. maximum| 00000490 20 73 74 61 74 65 29 20 69 73 20 27 69 6c 6c 27 | state) is 'ill'| 000004a0 2c 20 61 6e 64 20 61 6e 79 74 68 69 6e 67 20 69 |, and anything i| 000004b0 6e 20 62 65 74 77 65 65 6e 20 69 6e 20 0a 69 73 |n between in .is| 000004c0 20 27 69 6e 66 65 63 74 65 64 27 2e 20 54 68 65 | 'infected'. The| 000004d0 20 6d 65 74 68 6f 64 20 75 73 65 64 20 74 6f 20 | method used to | 000004e0 63 61 6c 63 75 6c 61 74 65 20 74 68 65 20 63 65 |calculate the ce| 000004f0 6c 6c 27 73 20 73 74 61 74 65 20 69 6e 20 74 68 |ll's state in th| 00000500 65 20 6e 65 78 74 0a 67 65 6e 65 72 61 74 69 6f |e next.generatio| 00000510 6e 20 64 65 70 65 6e 64 73 20 6f 6e 20 77 68 69 |n depends on whi| 00000520 63 68 20 6f 66 20 74 68 65 73 65 20 74 68 72 65 |ch of these thre| 00000530 65 20 63 61 74 65 67 6f 72 69 65 73 20 69 74 20 |e categories it | 00000540 69 73 20 69 6e 3a 0a 0a 46 6f 72 20 61 20 68 65 |is in:..For a he| 00000550 61 6c 74 68 79 20 63 65 6c 6c 3a 20 20 20 6e 65 |althy cell: ne| 00000560 77 20 73 74 61 74 65 20 3d 20 49 4e 54 28 41 2f |w state = INT(A/| 00000570 6b 31 29 20 2b 20 49 4e 54 28 42 2f 6b 32 29 0a |k1) + INT(B/k2).| 00000580 46 6f 72 20 61 6e 20 69 6e 66 65 63 74 65 64 20 |For an infected | 00000590 63 65 6c 6c 3a 20 6e 65 77 20 73 74 61 74 65 20 |cell: new state | 000005a0 3d 20 49 4e 54 28 53 2f 41 29 20 2b 20 67 0a 46 |= INT(S/A) + g.F| 000005b0 6f 72 20 61 6e 20 69 6c 6c 20 63 65 6c 6c 3a 20 |or an ill cell: | 000005c0 20 20 20 20 20 6e 65 77 20 73 74 61 74 65 20 3d | new state =| 000005d0 20 30 20 28 63 65 6c 6c 20 6d 69 72 61 63 75 6c | 0 (cell miracul| 000005e0 6f 75 73 6c 79 20 62 65 63 6f 6d 65 73 20 68 65 |ously becomes he| 000005f0 61 6c 74 68 79 29 0a 0a 41 20 69 73 20 74 68 65 |althy)..A is the| 00000600 20 6e 75 6d 62 65 72 20 6f 66 20 69 6e 66 65 63 | number of infec| 00000610 74 65 64 20 6e 65 69 67 68 62 6f 75 72 69 6e 67 |ted neighbouring| 00000620 20 63 65 6c 6c 73 20 28 69 6e 63 6c 75 64 69 6e | cells (includin| 00000630 67 20 74 68 65 20 63 65 6c 6c 20 69 74 73 65 6c |g the cell itsel| 00000640 66 29 0a 42 20 69 73 20 74 68 65 20 6e 75 6d 62 |f).B is the numb| 00000650 65 72 20 6f 66 20 69 6c 6c 20 6e 65 69 67 68 62 |er of ill neighb| 00000660 6f 75 72 69 6e 67 20 63 65 6c 6c 73 0a 53 20 69 |ouring cells.S i| 00000670 73 20 74 68 65 20 73 75 6d 20 6f 66 20 74 68 65 |s the sum of the| 00000680 20 73 74 61 74 65 73 20 6f 66 20 74 68 65 20 63 | states of the c| 00000690 65 6c 6c 20 61 6e 64 20 69 74 73 20 6e 65 69 67 |ell and its neig| 000006a0 68 62 6f 75 72 73 0a 6b 31 2c 20 6b 32 20 61 6e |hbours.k1, k2 an| 000006b0 64 20 67 20 61 72 65 20 63 6f 6e 73 74 61 6e 74 |d g are constant| 000006c0 73 0a 0a 41 20 67 72 65 61 74 20 72 61 6e 67 65 |s..A great range| 000006d0 20 6f 66 20 62 65 68 61 76 69 6f 75 72 20 63 61 | of behaviour ca| 000006e0 6e 20 62 65 20 70 72 6f 64 75 63 65 64 20 6a 75 |n be produced ju| 000006f0 73 74 20 62 79 20 63 68 61 6e 67 69 6e 67 20 6b |st by changing k| 00000700 31 2c 20 6b 32 20 61 6e 64 20 67 2e 20 42 75 74 |1, k2 and g. But| 00000710 0a 74 68 65 72 65 27 73 20 6d 6f 72 65 2e 20 59 |.there's more. Y| 00000720 6f 75 20 63 61 6e 20 61 6c 73 6f 20 63 6f 6e 74 |ou can also cont| 00000730 72 6f 6c 20 77 68 61 74 20 69 73 20 6d 65 61 6e |rol what is mean| 00000740 74 20 62 79 20 27 6e 65 69 67 68 62 6f 75 72 73 |t by 'neighbours| 00000750 27 2e 20 4e 6f 72 6d 61 6c 6c 79 0a 74 68 69 73 |'. Normally.this| 00000760 20 6d 65 61 6e 73 20 65 69 74 68 65 72 20 74 68 | means either th| 00000770 65 20 66 6f 75 72 20 63 65 6c 6c 73 20 61 62 6f |e four cells abo| 00000780 76 65 2c 20 62 65 6c 6f 77 2c 20 6c 65 66 74 20 |ve, below, left | 00000790 61 6e 64 20 72 69 67 68 74 20 6f 66 20 74 68 65 |and right of the| 000007a0 20 63 65 6c 6c 0a 28 76 6f 6e 20 4e 65 75 6d 61 | cell.(von Neuma| 000007b0 6e 6e 20 6e 65 69 67 68 62 6f 75 72 68 6f 6f 64 |nn neighbourhood| 000007c0 29 2c 20 6f 72 20 74 68 65 20 65 69 67 68 74 20 |), or the eight | 000007d0 63 65 6c 6c 73 20 74 6f 75 63 68 69 6e 67 20 74 |cells touching t| 000007e0 68 65 20 63 65 6c 6c 20 28 4d 6f 6f 72 65 0a 6e |he cell (Moore.n| 000007f0 65 69 67 68 62 6f 75 72 68 6f 6f 64 29 2c 20 62 |eighbourhood), b| 00000800 75 74 20 21 48 6f 64 67 65 20 6c 65 74 73 20 79 |ut !Hodge lets y| 00000810 6f 75 20 73 65 6c 65 63 74 20 61 6e 79 20 63 6f |ou select any co| 00000820 6d 62 69 6e 61 74 69 6f 6e 20 6f 66 20 74 68 65 |mbination of the| 00000830 20 65 69 67 68 74 0a 73 75 72 72 6f 75 6e 64 69 | eight.surroundi| 00000840 6e 67 20 63 65 6c 6c 73 2e 20 28 73 65 65 20 69 |ng cells. (see i| 00000850 6c 6c 75 73 74 72 61 74 69 6f 6e 20 62 65 6c 6f |llustration belo| 00000860 77 29 0a 0a 20 20 23 20 20 76 6f 6e 20 4e 65 75 |w).. # von Neu| 00000870 6d 61 6e 6e 20 20 20 20 20 20 23 23 23 20 4d 6f |mann ### Mo| 00000880 6f 72 65 20 20 20 20 20 20 20 20 20 23 20 23 20 |ore # # | 00000890 44 6f 6e 27 74 20 6b 6e 6f 77 20 77 68 61 74 20 |Don't know what | 000008a0 74 68 69 73 20 69 73 20 63 61 6c 6c 65 64 2c 0a |this is called,.| 000008b0 20 23 4f 23 20 20 20 20 20 20 20 20 20 20 20 20 | #O# | 000008c0 20 20 20 20 20 20 23 4f 23 20 20 20 20 20 20 20 | #O# | 000008d0 20 20 20 20 20 20 20 20 20 4f 20 20 62 75 74 20 | O but | 000008e0 69 74 20 70 72 6f 64 75 63 65 73 20 69 6e 74 65 |it produces inte| 000008f0 72 65 73 74 69 6e 67 0a 20 20 23 20 20 20 20 20 |resting. # | 00000900 20 20 20 20 20 20 20 20 20 20 20 20 20 20 23 23 | ##| 00000910 23 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 |# | 00000920 23 20 23 20 72 65 73 75 6c 74 73 2e 2e 2e 0a 0a |# # results.....| 00000930 54 68 65 20 6f 6e 6c 79 20 6f 74 68 65 72 20 74 |The only other t| 00000940 68 69 6e 67 20 79 6f 75 20 63 61 6e 20 63 68 61 |hing you can cha| 00000950 6e 67 65 20 28 61 70 61 72 74 20 66 72 6f 6d 20 |nge (apart from | 00000960 74 68 65 20 73 69 7a 65 29 20 69 73 20 74 68 65 |the size) is the| 00000970 20 77 72 61 70 70 69 6e 67 2e 20 49 66 0a 27 77 | wrapping. If.'w| 00000980 72 61 70 27 20 69 73 20 6f 6e 2c 20 61 20 63 65 |rap' is on, a ce| 00000990 6c 6c 20 61 74 20 74 68 65 20 65 64 67 65 20 6f |ll at the edge o| 000009a0 66 20 74 68 65 20 67 72 69 64 20 77 69 6c 6c 20 |f the grid will | 000009b0 27 73 65 65 27 20 74 68 65 20 63 65 6c 6c 20 61 |'see' the cell a| 000009c0 74 20 74 68 65 0a 6f 70 70 6f 73 69 74 65 20 65 |t the.opposite e| 000009d0 64 67 65 20 61 73 20 69 74 73 20 6e 65 69 67 68 |dge as its neigh| 000009e0 62 6f 75 72 2e 20 57 72 61 70 70 65 64 20 61 75 |bour. Wrapped au| 000009f0 74 6f 6d 61 74 61 20 74 69 6c 65 20 73 65 61 6d |tomata tile seam| 00000a00 6c 65 73 73 6c 79 2c 20 73 6f 20 74 68 65 79 0a |lessly, so they.| 00000a10 6d 61 6b 65 20 72 61 74 68 65 72 20 6e 69 63 65 |make rather nice| 00000a20 20 62 61 63 6b 64 72 6f 70 73 2e 2e 2e 0a 0a 0a | backdrops......| 00000a30 54 4f 4f 4c 53 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f |TOOLS___________| 00000a40 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f |________________| * 00000a70 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 0a 0a 43 |_____________..C| 00000a80 6c 69 63 6b 69 6e 67 20 73 65 6c 65 63 74 20 6f |licking select o| 00000a90 6e 20 74 68 65 20 48 6f 64 67 65 20 69 63 6f 6e |n the Hodge icon| 00000aa0 20 62 72 69 6e 67 73 20 75 70 20 74 68 65 20 6d | brings up the m| 00000ab0 61 69 6e 20 64 69 73 70 6c 61 79 20 77 69 6e 64 |ain display wind| 00000ac0 6f 77 20 77 69 74 68 20 61 0a 74 6f 6f 6c 62 61 |ow with a.toolba| 00000ad0 72 2e 20 46 72 6f 6d 20 6c 65 66 74 20 74 6f 20 |r. From left to | 00000ae0 72 69 67 68 74 2c 20 74 68 65 20 74 6f 6f 6c 73 |right, the tools| 00000af0 20 61 72 65 3a 0a 0a 7c 7c 20 20 50 41 55 53 45 | are:..|| PAUSE| 00000b00 3a 20 53 74 6f 70 73 20 74 68 65 20 61 75 74 6f |: Stops the auto| 00000b10 6d 61 74 6f 6e 2e 0a 3e 20 20 20 50 4c 41 59 3a |maton..> PLAY:| 00000b20 20 20 53 74 61 72 74 73 20 69 74 2e 0a 7c 3e 20 | Starts it..|> | 00000b30 20 53 54 45 50 3a 20 20 41 64 76 61 6e 63 65 73 | STEP: Advances| 00000b40 20 6f 6e 65 20 67 65 6e 65 72 61 74 69 6f 6e 2e | one generation.| 00000b50 0a 3e 5b 5d 20 46 55 4c 4c 3a 20 20 53 69 6e 67 |.>[] FULL: Sing| 00000b60 6c 65 2d 74 61 73 6b 73 2c 20 73 63 61 6c 69 6e |le-tasks, scalin| 00000b70 67 20 74 68 65 20 70 69 63 74 75 72 65 20 75 70 |g the picture up| 00000b80 20 74 6f 20 66 75 6c 6c 20 73 63 72 65 65 6e 2e | to full screen.| 00000b90 0a 23 20 20 20 52 45 53 45 54 3a 20 52 61 6e 64 |.# RESET: Rand| 00000ba0 6f 6d 69 73 65 73 20 74 68 65 20 67 72 69 64 2e |omises the grid.| 00000bb0 0a 0a 41 74 20 74 68 65 20 72 69 67 68 74 20 69 |..At the right i| 00000bc0 73 20 61 6e 20 69 63 6f 6e 20 73 68 6f 77 69 6e |s an icon showin| 00000bd0 67 20 74 68 65 20 63 75 72 72 65 6e 74 20 67 65 |g the current ge| 00000be0 6e 65 72 61 74 69 6f 6e 2e 0a 57 68 69 6c 65 20 |neration..While | 00000bf0 69 6e 20 73 69 6e 67 6c 65 2d 74 61 73 6b 69 6e |in single-taskin| 00000c00 67 20 6d 6f 64 65 2c 20 79 6f 75 20 63 61 6e 20 |g mode, you can | 00000c10 72 65 74 75 72 6e 20 74 6f 20 74 68 65 20 64 65 |return to the de| 00000c20 73 6b 74 6f 70 20 62 79 20 70 72 65 73 73 69 6e |sktop by pressin| 00000c30 67 20 61 6e 79 0a 6b 65 79 20 6f 72 20 6d 6f 75 |g any.key or mou| 00000c40 73 65 20 62 75 74 74 6f 6e 2e 20 48 6f 77 65 76 |se button. Howev| 00000c50 65 72 2c 20 6e 6f 74 65 20 74 68 61 74 20 74 68 |er, note that th| 00000c60 65 20 6b 65 79 62 6f 61 72 64 20 69 73 20 6f 6e |e keyboard is on| 00000c70 6c 79 20 73 63 61 6e 6e 65 64 20 6f 6e 63 65 20 |ly scanned once | 00000c80 61 0a 67 65 6e 65 72 61 74 69 6f 6e 20 73 6f 20 |a.generation so | 00000c90 79 6f 75 20 6d 61 79 20 68 61 76 65 20 74 6f 20 |you may have to | 00000ca0 68 6f 6c 64 20 69 74 20 64 6f 77 6e 20 73 6c 69 |hold it down sli| 00000cb0 67 68 74 6c 79 2e 2e 2e 0a 43 6c 69 63 6b 69 6e |ghtly....Clickin| 00000cc0 67 20 6d 65 6e 75 20 6f 76 65 72 20 74 68 65 20 |g menu over the | 00000cd0 64 69 73 70 6c 61 79 20 6c 65 74 73 20 79 6f 75 |display lets you| 00000ce0 20 63 68 61 6e 67 65 20 74 68 65 20 6d 61 67 6e | change the magn| 00000cf0 69 66 69 63 61 74 69 6f 6e 20 61 6e 64 20 73 61 |ification and sa| 00000d00 76 65 20 74 68 65 0a 63 75 72 72 65 6e 74 20 67 |ve the.current g| 00000d10 65 6e 65 72 61 74 69 6f 6e 2e 0a 0a 54 68 65 20 |eneration...The | 00000d20 53 65 74 74 69 6e 67 73 20 77 69 6e 64 6f 77 2c |Settings window,| 00000d30 20 61 63 63 65 73 73 65 64 20 76 69 61 20 74 68 | accessed via th| 00000d40 65 20 69 63 6f 6e 20 62 61 72 20 6d 65 6e 75 20 |e icon bar menu | 00000d50 28 6f 72 20 63 6c 69 63 6b 20 61 64 6a 75 73 74 |(or click adjust| 00000d60 20 6f 6e 20 74 68 65 0a 69 63 6f 6e 29 2c 20 73 | on the.icon), s| 00000d70 68 6f 75 6c 64 20 62 65 20 66 61 69 72 6c 79 20 |hould be fairly | 00000d80 73 65 6c 66 2d 65 78 70 6c 61 6e 61 74 6f 72 79 |self-explanatory| 00000d90 2e 20 54 68 65 20 77 69 64 74 68 20 61 6e 64 20 |. The width and | 00000da0 68 65 69 67 68 74 20 6d 75 73 74 20 62 65 0a 62 |height must be.b| 00000db0 65 74 77 65 65 6e 20 32 30 20 61 6e 64 20 35 31 |etween 20 and 51| 00000dc0 32 2c 20 61 6e 64 20 61 20 6d 75 6c 74 69 70 6c |2, and a multipl| 00000dd0 65 20 6f 66 20 34 2e 20 54 68 65 20 67 72 69 64 |e of 4. The grid| 00000de0 20 69 73 20 72 61 6e 64 6f 6d 69 73 65 64 20 65 | is randomised e| 00000df0 76 65 72 79 20 74 69 6d 65 0a 74 68 65 20 72 75 |very time.the ru| 00000e00 6c 65 73 20 61 72 65 20 63 68 61 6e 67 65 64 2e |les are changed.| 00000e10 0a 0a 0a 4e 4f 54 45 53 5f 5f 5f 5f 5f 5f 5f 5f |...NOTES________| 00000e20 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f |________________| * 00000e60 0a 0a 21 48 6f 64 67 65 20 74 65 6e 64 73 20 74 |..!Hodge tends t| 00000e70 6f 20 73 6c 6f 77 20 74 68 65 20 64 65 73 6b 74 |o slow the deskt| 00000e80 6f 70 20 64 6f 77 6e 20 73 6f 6d 65 77 68 61 74 |op down somewhat| 00000e90 2e 20 45 76 65 6e 20 6f 6e 20 61 20 52 69 73 63 |. Even on a Risc| 00000ea0 20 50 43 20 74 68 69 6e 67 73 0a 73 74 61 72 74 | PC things.start| 00000eb0 20 67 65 74 74 69 6e 67 20 61 20 62 69 74 20 6a | getting a bit j| 00000ec0 65 72 6b 79 20 61 62 6f 76 65 20 61 20 73 69 7a |erky above a siz| 00000ed0 65 20 6f 66 20 61 72 6f 75 6e 64 20 38 30 78 38 |e of around 80x8| 00000ee0 30 2e 0a 0a 49 6e 20 72 65 63 74 61 6e 67 75 6c |0...In rectangul| 00000ef0 61 72 2d 70 69 78 65 6c 20 6d 6f 64 65 73 20 74 |ar-pixel modes t| 00000f00 68 65 20 78 20 73 63 61 6c 65 20 69 73 20 64 6f |he x scale is do| 00000f10 75 62 6c 65 64 20 77 68 65 6e 20 70 6c 6f 74 74 |ubled when plott| 00000f20 69 6e 67 2c 20 73 6f 20 74 68 65 20 63 65 6c 6c |ing, so the cell| 00000f30 73 0a 64 6f 6e 27 74 20 6c 6f 6f 6b 20 73 74 72 |s.don't look str| 00000f40 65 74 63 68 65 64 2e 0a 0a 54 68 65 20 73 70 65 |etched...The spe| 00000f50 65 64 2d 63 72 69 74 69 63 61 6c 20 75 70 64 61 |ed-critical upda| 00000f60 74 65 20 72 6f 75 74 69 6e 65 20 69 73 20 77 72 |te routine is wr| 00000f70 69 74 74 65 6e 20 69 6e 20 41 73 73 65 6d 62 6c |itten in Assembl| 00000f80 65 72 2c 20 61 6e 64 20 69 73 20 63 75 73 74 6f |er, and is custo| 00000f90 6d 2d 0a 72 65 61 73 73 65 6d 62 6c 65 64 20 65 |m-.reassembled e| 00000fa0 76 65 72 79 20 74 69 6d 65 20 74 68 65 20 73 65 |very time the se| 00000fb0 74 74 69 6e 67 73 20 61 72 65 20 63 68 61 6e 67 |ttings are chang| 00000fc0 65 64 20 2d 20 74 68 69 73 20 66 72 65 65 73 20 |ed - this frees | 00000fd0 75 70 20 74 68 65 20 72 65 67 69 73 74 65 72 73 |up the registers| 00000fe0 0a 77 68 69 63 68 20 77 6f 75 6c 64 20 6f 74 68 |.which would oth| 00000ff0 65 72 77 69 73 65 20 62 65 20 6e 65 65 64 65 64 |erwise be needed| 00001000 20 74 6f 20 68 6f 6c 64 20 74 68 69 6e 67 73 20 | to hold things | 00001010 6c 69 6b 65 20 63 6f 6e 73 74 61 6e 74 73 20 61 |like constants a| 00001020 6e 64 20 67 72 69 64 20 73 69 7a 65 2e 0a 54 68 |nd grid size..Th| 00001030 65 20 67 72 69 64 20 69 73 20 73 74 6f 72 65 64 |e grid is stored| 00001040 20 69 6e 20 74 77 6f 20 32 35 36 2d 63 6f 6c 6f | in two 256-colo| 00001050 75 72 20 73 70 72 69 74 65 73 2c 20 77 68 69 63 |ur sprites, whic| 00001060 68 20 61 72 65 20 65 61 73 79 20 74 6f 20 61 63 |h are easy to ac| 00001070 63 65 73 73 20 73 69 6e 63 65 0a 74 68 65 79 27 |cess since.they'| 00001080 72 65 20 6f 6e 65 20 62 79 74 65 20 70 65 72 20 |re one byte per | 00001090 70 69 78 65 6c 2e 20 28 54 77 6f 20 61 72 65 20 |pixel. (Two are | 000010a0 72 65 71 75 69 72 65 64 20 62 65 63 61 75 73 65 |required because| 000010b0 20 79 6f 75 20 64 6f 6e 27 74 20 77 61 6e 74 20 | you don't want | 000010c0 74 6f 20 73 74 61 72 74 0a 6f 76 65 72 77 72 69 |to start.overwri| 000010d0 74 69 6e 67 20 74 68 65 20 6f 6c 64 20 67 65 6e |ting the old gen| 000010e0 65 72 61 74 69 6f 6e 20 62 65 66 6f 72 65 20 79 |eration before y| 000010f0 6f 75 27 76 65 20 66 69 6e 69 73 68 65 64 20 72 |ou've finished r| 00001100 65 61 64 69 6e 67 20 69 74 29 2e 20 4f 6e 65 20 |eading it). One | 00001110 6f 72 20 74 77 6f 0a 6d 69 6c 64 6c 79 20 63 75 |or two.mildly cu| 00001120 6e 6e 69 6e 67 20 74 65 63 68 6e 69 71 75 65 73 |nning techniques| 00001130 20 61 72 65 20 75 73 65 64 20 66 6f 72 20 73 70 | are used for sp| 00001140 65 65 64 2c 20 62 75 74 20 69 74 27 73 20 66 61 |eed, but it's fa| 00001150 69 72 6c 79 20 73 74 72 61 69 67 68 74 66 6f 72 |irly straightfor| 00001160 77 61 72 64 0a 72 65 61 6c 6c 79 2e 2e 2e 0a 0a |ward.really.....| 00001170 49 6e 74 65 72 65 73 74 69 6e 67 20 72 65 73 75 |Interesting resu| 00001180 6c 74 73 20 63 61 6e 20 62 65 20 70 72 6f 64 75 |lts can be produ| 00001190 63 64 20 77 69 74 68 20 61 20 76 6f 6e 20 4e 65 |cd with a von Ne| 000011a0 75 6d 61 6e 6e 20 6e 65 69 67 68 62 6f 75 72 68 |umann neighbourh| 000011b0 6f 6f 64 2c 20 6e 3d 31 30 30 2c 0a 6b 31 3d 32 |ood, n=100,.k1=2| 000011c0 2c 20 6b 32 3d 33 2c 20 67 3d 31 38 20 6f 72 20 |, k2=3, g=18 or | 000011d0 74 68 65 72 65 61 62 6f 75 74 73 2e 20 41 70 70 |thereabouts. App| 000011e0 61 72 65 6e 74 6c 79 20 69 74 20 6c 6f 6f 6b 73 |arently it looks| 000011f0 20 61 20 62 69 74 20 6c 69 6b 65 20 63 65 72 74 | a bit like cert| 00001200 61 69 6e 0a 6f 73 63 69 6c 6c 61 74 69 6e 67 20 |ain.oscillating | 00001210 63 68 65 6d 69 63 61 6c 20 72 65 61 63 74 69 6f |chemical reactio| 00001220 6e 73 2e 2e 2e 0a 0a 0a 43 4f 4e 54 41 43 54 5f |ns......CONTACT_| 00001230 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f 5f |________________| * 00001270 5f 5f 5f 5f 5f 0a 0a 70 6f 6e 74 75 73 40 61 72 |_____..pontus@ar| 00001280 63 61 64 65 2e 64 65 6d 6f 6e 2e 63 6f 2e 75 6b |cade.demon.co.uk| 00001290 2c 20 6f 72 20 39 20 4d 6f 6e 6d 6f 75 74 68 20 |, or 9 Monmouth | 000012a0 52 6f 61 64 2c 20 4f 78 66 6f 72 64 20 4f 58 31 |Road, Oxford OX1| 000012b0 20 34 54 44 2c 20 45 6e 67 6c 61 6e 64 0a 0a 48 | 4TD, England..H| 000012c0 61 70 70 69 6e 67 20 68 6f 64 67 69 6e 67 2e 2e |apping hodging..| 000012d0 2e 0a 0a 50 6f 6e 74 0a |...Pont.| 000012d8