From 8ed78c32d4625a0b22420ad343662abec49c3344 Mon Sep 17 00:00:00 2001 From: Petr Baudis Date: Thu, 27 Mar 2008 19:59:11 +0100 Subject: [PATCH] Playout: Add color field to amafmap --- playout.c | 3 +++ playout.h | 1 + 2 files changed, 4 insertions(+) diff --git a/playout.c b/playout.c index 9265c82..acc0abf 100644 --- a/playout.c +++ b/playout.c @@ -21,6 +21,9 @@ play_random_game(struct board *b, enum stone starting_color, int gamelen, enum stone policy_color = stone_other(starting_color); coord_t urgent; + if (amafmap) + amafmap->color = color; + int passes = is_pass(b->last_move.coord); while (gamelen-- && passes < 2) { diff --git a/playout.h b/playout.h index 4d20b34..67759da 100644 --- a/playout.h +++ b/playout.h @@ -14,6 +14,7 @@ typedef coord_t (*playout_policeman)(void *playout_policy, struct board *b, enum * S_WHITE: This move was played by white first */ struct playout_amafmap { + enum stone color; enum stone *map; // [b->size2] }; -- 2.11.4.GIT