[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [gnugo-devel] assertion failure in the board code
From: |
Arend Bayer |
Subject: |
Re: [gnugo-devel] assertion failure in the board code |
Date: |
Fri, 7 Mar 2003 18:49:24 +0100 (CET) |
Gunnar wrote:
> It's a safe bet that the move history collapsing around line 1000 is
> the triggering factor. I have a feeling that the bug may have been
> introduced with the patch arend_3_13.1.
You are right on both points.
The patch below fixes the bug.
Arend
Index: engine/board.c
===================================================================
RCS file: /cvsroot/gnugo/gnugo/engine/board.c,v
retrieving revision 1.67
diff -u -p -r1.67 board.c
--- engine/board.c 5 Mar 2003 18:52:56 -0000 1.67
+++ engine/board.c 7 Mar 2003 17:48:48 -0000
@@ -1021,6 +1021,7 @@ play_move(int pos, int color)
board_ko_pos = saved_board_ko_pos;
white_captured = saved_white_captured;
black_captured = saved_black_captured;
+ new_position();
}
move_history_color[move_history_pointer] = color;