Skip to content

Commit

Permalink
Fix ko feature
Browse files Browse the repository at this point in the history
  • Loading branch information
zakki committed Oct 23, 2017
1 parent bb53e64 commit a4bdc0e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/GoBoard.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1994,7 +1994,7 @@ WritePlanes(
LadderExtension(game, opp, ladder[1]);

{
const int koT = RevTransformMove(game->ko_pos, tran);
const int ko = game->ko_pos;

#define OUTPUT(block) \
for (int y = board_start; y <= board_end; y++) { \
Expand All @@ -2013,7 +2013,7 @@ WritePlanes(
OUTPUT({ OUTPUT_FEATURE(data_basic, color == S_BLACK); });
OUTPUT({ OUTPUT_FEATURE(data_basic, true); });

OUTPUT({ OUTPUT_FEATURE(data_basic, p == koT); });
OUTPUT({ OUTPUT_FEATURE(data_basic, p == ko); });

OUTPUT({ int l = GetLibs(game, p); data_basic.push_back((c == color) ? (std::min(l, 10) / 10.0f) : 0.0f); });
OUTPUT({ int l = GetLibs(game, p); data_basic.push_back((c == opp) ? (std::min(l, 10) / 10.0f) : 0.0f); });
Expand Down

0 comments on commit a4bdc0e

Please sign in to comment.