Previous: Debugging, Up: Tactical Reading


11.10 Connection Reading

GNU Go does reading to determine if strings can be connected. The algorithms for this are in readconnect.c. As with the reading code, the connection code is not pattern based.

The connection code is invoked by the engine through the functions:

To see the connection code in action, you may try the following example.

     gnugo --quiet -l connection3.sgf --decide-connection M3/N7 -o vars.sgf

(The file connection3.sgf is in regression/games.) Examine the sgf file produced by this to see what kind of reading is done by the functions string_connect() and string_disconnect(), which are called by the function decide_connection.

One use of the connection code is used is through the autohelper macros oplay_connect, xplay_connect, oplay_disconnect and xplay_disconnect which are used in the connection databases.