Closed ldrone closed 9 years ago
The second condition is necessary because the handicap is stored in 2 places in the SGF file: the HA[] property contains the number of handicap stones, but has no effect on the board setup by the SGF specification. The handicap stones' position is set using the AB[] property, see http://www.red-bean.com/sgf/go.html#HA When a new game with fixed handicap placement is created, there is no file to read the handicap placement from, so the handicap is set up by a special function.
Your problem can be interpreted in 2 ways:
Opening an existing sgf game does not draw handicap stones on board.
Changing line 44 in file game_interfaces/qgoboardlocalinterface.cpp fixes it: if (gameData->handicap) // && gameData->fileName.isEmpty())
I'm not sure if this is the proper fix, that is, why the second condition is necessary.