Usage of the Life Game Program

Executable program and used DLL-s

are not given.
Please download at least the Personal Edition of Visual Prolog 7.5 and build the program using its .vipprj file and source files.

Project file

Build Life.vipprj using your Visual Prolog 7.5 package. The executable program appears in the Exe sub-folder. Its name is Life.exe The necessary dll-s are included in the last version of the VIP 7.5 Personal Edition.

Running the program

Execute the above program. You'll get the following Russian Russian flag full-screen dialog because the program is based on [2] having Russian user interface. Here is a Russian-English dictionary. The group boxes and the controls within them as well as the required order of their filling will be explain below.

The full screen dialog

When the program is starting at first the conditions of the usage of the Visual Prolog Personal Edition appears. Ini screen of VIP PE
This dialog must confirmed by its [OK] button.
Then the About Dialog of the program is brought in front of the main form. About dialog
The About dialog may confirmed by its own [OK] button but it disappears after a certain timeout.
Full start screen
Areas of the full screen dialog

Group box Picture Control text
in Russian
Control text
in English
Explanation
Lookout Ячейки Cells Header for shape selection
6-угольные have 6 sides Regular hexagonal cells
Загрузи из Load from Select a Lookout file from a sub-folder of the Results folder by the displayed common dialog.
ниоткуда from nowhere In case of successful loading this read only field contains the sub-folder selected above.
Число Ячеек Count of cells on the horizontal X-axis. See general validation of integer and real controls.
Размер Size of the cells in pixels.
Установи Validate on the horizontal X-axis. See validation of the conditions read in this frame.
Покажи Show
Show the (0,0) central cell and its neighbors.
Rectangular Hexagonal
Fate Общие критерия Common conditions valid for all life stages of all species.List boxes providing extended multiple selection.
Рождения of birth If the count of the neighbors of an empty cell is selected here then a new organism is born there. The selection can be handled with double click.
Смерти of death If the count of the neighbors of an inhabited cell is selected here then the organism dies here. The selection can be handled with double click.
Без угловых without being
at the corners
Mark this check box if you do not accept rectangular cells not having commonn side but only a common corners as neighbors. The selection can be handled with double click.
The rectangular cells have 8 neighbors if this check box is marked.
The rectangular cells have 4 neighbors if this check box is not marked.
This check box has no effect on hexagonal cells.
They have always 6 neighbors except at the sides of the playground.
Загрузи из Load from Select a Fate file from a sub-folder of the Results folder by the displayed common dialog.
ниоткуда from nowhere In case of successful loading this read only field contains the sub-folder selected above.
Сравни Compare Click on this button in order to validate the birth and death conditions and compare them. The results of their validation and comparison are shown here.
Species Загрузи из Load from Select a Species file from a sub-folder of the Results folder by the displayed common dialog.
ниоткуда from nowhere In case of successful loading this read only field contains the sub-folder selected above.
Породы Species
Добави Add Click on this button in order to add a new species. The successful selection appears in the modified sciLexer window. Two species in the modifier sciLexer window
Забудь Forget one or more species.
Всех All Forget all species.
Последнюю Last Forget last entered species.
Цветы и имена гонщиков Colors and names of competitors The form contains a colored multi-line window supported by the author's contribution to Visual Prolog Tip and Samples. This small window can be saved together with the other results as a Log.html file. Its content can be manually selected and copied to another window by the ordinary selecting, copying and pasting hot keys.
Life stages
of the species
Породы Species Select species whose sequence of life stages has to be modified.
Загрузи из Load from Select a Development file from a sub-folder of the Results folder by the displayed common dialog.
ниоткуда from nowhere In case of successful loading this read only field contains the sub-folder selected above.
Стадии Stages Add another life stage of the selected species using the dialog shown below. Select added lifestage The selected stage appears in the list box under the button.
Сроки Lifetimes Life times of the corresponding stages.
Ограниченный Limited Radio button for the choice the the life time of the selected stage of the selected species is limited
[ ] пкл Generations Enter the value of the limited life time in this integer control. See general validation of integer and real controls.
Беспредельный=-1 Unlimited The unlimited life time of the selected stage is denoted by "-1".
Не имеет=0 Does not have If the selected stage is missing from the sequence of development of the selected species then a "0" appears in the list box.
Срок Lifetime Bound the entered life time to the selected life stage of the selected species.
Feed chain
Загрузи из Load from Select a FeedChain file from a sub-folder of the Results folder by the displayed common dialog.
ниоткуда from nowhere In case of successful loading this read only field contains the sub-folder selected above.
Хищники Predators Select the name and life stage of the predator.
Добычи Preys Select the name and life stage of the prey.
Фиксируй Confirm Confirm selection.
Selection of predator-prey pairs See validation errors.
Вытри Remove Remove the selected predator-prey relationship.
Remove selected predator-prey relationship
Intoxication Загрузи из Load from Select an Intoxication file from a sub-folder of the Results folder by the displayed common dialog.
ниоткуда from nowhere In case of successful loading this read only field contains the sub-folder selected above.
Породы Species Select a species whose corps intoxicates the cell.
Уровень Level This list box shows the current level of the intoxication. Here "-1" means ""forever""
в Течение during The integer control receives the level of the intoxication. See general validation of integer and real controls.
поколений generations
Нет No Select this radio button if the cells where this species has died become at once empty that available for newborn organisms.
Вечно Forever Select this radio button if the cells where this species has died become deserted for the rest of the game.
Вставка Enter Validate and enter your intoxication data.
Properties
of the cell
Координаты Coordinates When the use lifts up the mouse its coordinates appear in the integer fields after X and Y. Its state and inhabitants appear in the list buttons. The user is allowed to change these values and enter them. See general validation of integer and real controls.
Родилась в поколении Born in the generation Read only field.
Сост.
Dropped down menu of the cell states.
State The state of the cell. Select "обитаемая" if you want to place a living organism in the cell. See the explanation of the further states in the states target="_blank" title="object model">object model
Уровень
Menu of intoxicaton level
Level of intoxication. It is necessary only for "отравленнaя"="poisoned" state.
Порода
Species menu
Species The dropped down list button shows the menu of the defined species.
Пол
Menu of sex
Sex The dropped down list button shows the menu of the defined sex preceded by the special character codes written i the cell instead of the long words. See the Sex table Sex table of the object model.
Стадия Life stage This list button shows the menu of the life stages.
Плодородие Productivity Read-only properties derived from the life stage
Активность Activity
Внеси Enter Change the state and the inhabitants of the selected cell.
Initial state
Состав колонии Composition of the colony The program provided the following ways of the determination initial state of of the game:
  1. Reading in an earlier initial or final state. This mode sets all cells to empty before reading in the new colony. The cells entered by all other modes overwrite only the cells in the place of new ones.
  2. Fill the cells randomly with the cells in the selected state. More than one random filling can be overlaid.
  3. Fill some cells using a pattern. More than one pattern can be overlaid. The patterns can be
    • composed manually,
    • saved for future usage,
    • read in later.
  4. Selecting coordinates and cell properties one by one, manually.
Новый New Start a new initial allocation of the organisms with empty playground.
Сброс Throw away Throw away entered species. Rest default shape of the playground, birth and death rules. These defaults must be validated and confirmed.
Загрузи из Load from Select an Initial or Final file from a sub-folder of the Results folder by the displayed common dialog.
ниоткуда from nowhere In case of successful loading this read only field contains the sub-folder selected above.
Заполни cлучайно Fill in randomly Fill in the playground with species selected in the group box properties of the cells using the selected probability. See general validation of integer and real controls.
Вероятность обитании [ ] % Probability of the filling.
Загр. Load from Select a Pattern file from a sub-folder of the Results folder by the displayed common dialog.
ниоткуда from nowhere In case of successful loading this read only field contains the sub-folder selected above.
C The pattern is defined by a center point C having two integer coordinates
U and two vectors: U and V.
V
I Three from-to pairs: (ifrom, ito),
J (jfrom, jto) and.
K (kfrom, kto), respectively.
The translated Pi,j points are Pi,j=C+i*P+j*V
where i=(ifrom..ito) and
j=(jfrom..jto), respectively.
шаг step The k=kfrom..kto(kstep) cycle defines whether the above Pi,j coordinates define the filled cells or their neighbors are filled with the selected organism of state. If 0{kfrom,kfrom+kstep,...,kto} then Pi,j is selected otherwise the translated point is not selected only its neighbors.
Схемой With the pattern Execute the filling with the pattern.
Выбери Select Select empty directory. The file name is automatically Pattern.csv . A more detailed description of the patterns with a few examples is here.
Некуда Nowhere
Place of storage
of conditions,
initial and
final states
Выбери Select Select empty directory. The file name is automatically Pattern.csv .
This button and the check boxes must be pressed before the starting of the simulation!
Table of saved files
File type Evaluate with Name Contents
Pictures Paint Initial.png Initial habitation
Final.png Final habitation
Log file Firefox Log.html Color of species, main messages
Comma separated value files Excel using the
Term
VB Macro
handling output of
file::save procedure
Lookout.csv Type and shape of the playground
Fate.csv Birth and death rules
Species.csv Names and colors of the species
Intoxication.csv Poisoning of the cells where organisms have died
Development.csv Life stages of the species and their life times
FeedChain.csv Predator-prey relationships
Process.csv Final state of the game and counts of alive cells in all generations
Initial.csv Initial habitation of the playground.
Final.csv Final habitation of the playground.
Некуда Nowhere
Сохрани условия Save conditions Mark the required check boxes and confirm your selection with the above button.
Исходные Initial
Конечные станции Final state
Process Смена поколений Change of generations This group box invokes the simulation.
по Таймеру timed Select this radio button for automatic simulation, with a given steps after displaying each generation.
мсек milliseconds List edit of timer, in milliseconds.
List edit of timer
Старт Start Click on this button in order to start the automatic timed simulation.
Стоп Stop Stop on this button in order to stop the automatic timed simulation.
Вручную Manual Radio button enabling the manual stepwise simulation
Шаг Step Click on this button in order to execute the next step of the manual simulation.
нынейшее Current Last generation followed by a read-only integer control.
показанное Shown Shown generation
Пок. Gen[eration] The integer control of the shown generation may be set between 1 and the current generation. See general validation of integer and real controls.
Живут Are living Count of the living cells in the last and the shown generation in two read-only integer controls.
Покажи Show Click on this button in order to show the given generation. (An earlier one or the last one again).
Show an earlier genertaion
Состояние State of the colony Read-only field.
Possible values Remarks
Russian English
Oжидающее waiting The game is waiting for automatic or manual start.
Oткрытое started The game has started and it is in progress.
Превpанное interrupted The game has stopped manually.
Все вымерли perished The game is over because all organisms have died out.
Устойчивое steady The game is over it reached a steady state.
Повторяющееся состояние periodic The game is over because the picture of an earlier generation has repeated.
Territory Generation # of the above example: The living cells hit the frame of the playground. The intoxication of the central cells have decreased to zero. A few poisoned cell have still remained.
G6 the living cells hit the border of the playgound
The steady state and all files needed for the reproduction are in the folder Results/44-12-intox3gen sub-folder.