APPLICATIONSCREATION GRAPHIQUE ★ The Generation Game ★

One Dimensional Automata (Computing with the Amstrad)Applications Creation Graphique
★ Ce texte vous est présenté dans sa version originale ★ 
 ★ This text is presented to you in its original version ★ 
 ★ Este texto se presenta en su versión original ★ 
 ★ Dieser Text wird in seiner Originalfassung präsentiert ★ 

IAN SHARPE's program adds dimension to your graphics display

THOSE who typed in Chris Ratcliffe's fractal program in the May 1987 issue of Computing with the Amstrad will have spent many happy hours watching it draw superb graphic displays.

Automata is another program which produces spectacular graphics and you don't have to wait long for the. results. The principle is similar to the Game of Life we published in October 1986.

The screen displays a colony of cells and the Amstrad produces successive new generations by applying a set of rules to the latest generation. In the Game of Life a generation is taken as a
two-dimensional grid but in Automata each is a line of cells represented by a row of pixels on the screen.

The latest generation is at the bottom of the screen and in each cycle of the program all the old generations are scrolled up by one line and the new one drawn at the bottom.

A pixel on the bottom line represents one cell in the latest generation. The program adds together the ink numbers of the three dots above it (above left, directly overhead and above right) and uses the result with a table of rules to obtain a value for the new cell.

You can select two types of operation. One adds three pixels as I've just described and the other adds two pixels — above left and above right leaving out the one in the middle. The left and right edges wrap round so each line is really a circle and the screen is effectively a cylinder.

The scrolling, calculation and plotting are all done in machine code to produce a fast display and about two screens scroll past every minute.

All the available options in Automata are selected from a menu which will usually lead to another screen. From most of these the spacebar will take you back to the menu. In the case of loading or saving a window, if you want to abort the operation just press Enter when asked for a filename.

The rules and colours can be changed to give the most striking effects and the screen window can be saved with the current settings including the seed. The first line must be seeded with cells so there's an editor which allows you to generate a line of random pixels or plot specific points.

RulesColoursSeed
0312113130
0130203120
0130203123
0213112322
0310203321
0310203321
0,9,26,17,0
10,24,6,0,0
10,24,6,0,0
10,24,6,0,0
10,26,25,0,0
10,26,25,0,0
...0,26,0,0,26,0,26,0,17,0...
Random
Random
...10,24,10,24,10...
...10,26,10,26,10...
...10,26,10,25,10...

Table 1: Some interesting rules to try.

From this section you can also turn the seeding off so that you can carry on generating from where you left off if you have returned to the main menu.

The automata, so called because
they are self-replicating, are stored in a separate window held lower down in memory. So if you exit to the main menu, maybe to alter the colours, the display will be preserved and you can return to it.

The number of possible patterns is huge, ranging from regular structures based on triangles to growths with an organic appearance. Automata can be treated as a pretty pattern generator

but it is based on a branch of mathematics and can be a rewarding source of study.

The program is set up with a default set of rules and a random seed which produce an interesting effect and Table I lists a few more for you to try. If you see any good colonies write in and tell us the rules, seed, type and colours and we'll print the better ones in the mail pages.

CWTA

★ PUBLISHER: Computing with the Amstrad
★ YEAR: 1987
★ CONFIG: AMSDOS + 64K
★ LANGUAGE:
★ LiCENCE: LISTING
★ COLLECTION: COMPUTING WITH THE AMSTRAD 1987
★ AUTHOR: Ian C. Sharpe
 

★ AMSTRAD CPC ★ DOWNLOAD ★

Type-in/Listing:
» One  Dimensional  Automata    (Computing  with  the  Amstrad)    ENGLISH    LISTINGDATE: 2021-02-02
DL: 175
TYPE: PDF
SiZE: 255Ko
NOTE: 7 pages/PDFlib v1.6

★ AMSTRAD CPC ★ A voir aussi sur CPCrulez , les sujets suivants pourront vous intéresser...

Lien(s):
» Applications » Dimension 6
» Applications » Tridimen
» Applications » Arrays variabel dimensioniert (Happy Computer)
» Applications » Dreidimensionale Funktionen in neuer Gestalt
Je participe au site:
» Pour ce titre nous ne disposons de fichier executable sur CPC (Dump, Saisie du listing) , alors si vous avez ça dans vos cartons ou vous désirez usé vos petit doigts boudinés sur votre clavier faites le nous savoir.
» Vous avez des infos personnel ?
» Vous avez remarqué une erreur dans ce texte ?
» Aidez-nous à améliorer cette page : en nous contactant via le forum ou par email.

CPCrulez[Content Management System] v8.7-desktop/c
Page créée en 529 millisecondes et consultée 718 fois

L'Amstrad CPC est une machine 8 bits à base d'un Z80 à 4MHz. Le premier de la gamme fut le CPC 464 en 1984, équipé d'un lecteur de cassettes intégré il se plaçait en concurrent  du Commodore C64 beaucoup plus compliqué à utiliser et plus cher. Ce fut un réel succès et sorti cette même années le CPC 664 équipé d'un lecteur de disquettes trois pouces intégré. Sa vie fut de courte durée puisqu'en 1985 il fut remplacé par le CPC 6128 qui était plus compact, plus soigné et surtout qui avait 128Ko de RAM au lieu de 64Ko.