home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.uni-stuttgart.de/pub/systems/acorn/
/
Acorn.tar
/
Acorn
/
acornet
/
fun
/
games
/
corewars.spk
/
!CoreInfo
/
Info
/
Colours
< prev
next >
Wrap
Text File
|
1990-11-01
|
3KB
|
64 lines
COLOURS
-------
This file details the colour scheme used in !Corewars during the execution
of the programs.
The colours used follow a logical pattern, with the two sides having a base
colour of green and red accordingly.
Each cell has its own particular colour, which is determined in the follow-
ing manner:
If a cell has not been altered or overwritten in any way, it is black (def-
ault).
If a cell has been overwritten (bombed) by the green side, it is set to dark
green, and vice versa for the red side.
If a cell has just been executed, a tint of blue is added to the base colour
of each side, ie. a cell executed by green is set to cyan (green+blue) and
set to magenta if executed by red (red+blue).
If a cell has been protected, the colour already present in the cell is made
brighter in tone, but remains the same base colour. ie. a dark magenta cell
(executed by red) when protected by the green side is turned into a bright
magenta cell. However, if a cell is black before protection, it is given the
same base colour as the side protecting it, ie a black cell protected by red
turns to a bright red colour (see file 'commands' about command PCT).
When a cell is deprotected by being written to, a similar rule is followed,
where the colour of the cell is preserved, but the colour is toned down, ie.
a bright green cell written to by the red side turns into a dark green col-
our (See section 'commands' about command PCT).
In addition, when a cell is being executed, and <ctrl> is being held down,
or single stepping is enabled, the current cell being executed is either a
very bright green for a green execution, and a bright pink colour for a red
execution.
In summary:
Cell colour Meaning
----------------------------------------------------------------------------
Black Unaltered
Dark Green Over-written by green
Dark Red Over-written by red
Dark Cyan Executed by green
Dark Magenta Executed by red
Bright Green Over-written by green and protected
Bright Red Over-written by red and protected
Bright Cyan Executed by green and protected
Bright Magenta Executed by red and protected
Very Bright Green Green executing
Bright Pink Red executing
This extensive system is intended as a guide to interested programmers who
wish to see the full execution of their programs, and want to know everything
that is going on. Admittedly, a typical Corewars battle may look very
confusing at times as a result.