Previous: Scoring, Up: Analyzing


5.8 Colored Display

Various colored displays of the board may be obtained in a color xterm or rxvt window. Xterm will only work if xterm is compiled with color support. If the colors are not displayed on your xterm, try rxvt. You may also use the Linux console. The colored display will work best if the background color is black; if this is not the case you may want to edit your .Xdefaults file or add the options -bg black -fg white to xterm or rxvt. On Mac OS X put setenv TERM xterm-color in your .tcshrc file to enable color in the terminal.

5.8.1 Dragon Display

You can get a colored ASCII display of the board in which each dragon is assigned a different letter; and the different matcher_status values (ALIVE, DEAD, UNKNOWN, CRITICAL) have different colors. This is very handy for debugging. Actually two diagrams are generated. The reason for this is concerns the way the matcher status is computed. The dragon_status (see Dragons) is computed first, then for some, but not all dragons, a more accurate owl status is computed. The matcher status is the owl status if available; otherwise it is the dragon_status. Both the dragon_status and the owl_status are displayed. The color scheme is as follows:

     green = alive
     cyan = dead
     red = critical
     yellow = unknown
     magenta = unchecked

To get the colored display, save a game in sgf format using CGoban, or using the -o option with GNU Go itself.

Open an xterm or rxvt window.

Execute gnugo -l [filename] -L [movenum] -T to get the colored display.

Other useful colored displays may be obtained by using instead:

5.8.2 Eye Space Display

Instead of -T, try this with -E. This gives a colored display of the eyespaces, with marginal eye spaces marked `!' (see Eyes).

5.8.3 Moyo Display

The option -m level can give colored displays of the various quantities which are computed in engine/moyo.c.

GNU Go contains two distinct implementations of the concepts of Territory, Moyo and Area (see Territory and Moyo). Primarily GNU Go computes Territory, Moyo and Area using the influence code, and reports them with the functions whose_territory(), whose_moyo() and whose_area(). To get a colored display of the influence regions found by this module, use -m 0x18 to see the initial influence, and e.g. -m 0x10 --debug-influence D5 to see the influence after having made the move D5. There are various other options available for numerical displays influence; for a detailed description see Influential Display.

The regions found by Bouzy's algorithm (see Alternative Moyo) are used only in the function estimate_score(). These can be displayed with the following options:

     -m level
      use or (hexadecimal)   cumulative values for printing these reports :
         1       0x01         ascii printing of territorial evaluation (5/21)
         2       0x02         ascii printing of moyo evaluation (5/10)
         4       0x04         ascii printing of area (4/0)

The -m options can be combined by adding the levels.