[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnugo-devel] #define MAX_BOARD 9
From: |
Trevor Morris |
Subject: |
[gnugo-devel] #define MAX_BOARD 9 |
Date: |
Thu, 25 Apr 2002 17:45:45 -0400 |
http://www.public32.com/games/go/trevor_3_3.1
Trying to compile with MAX_BOARD set to 9 causes crashes.
This patch avoids stops the joseki compiler early, and isn't a complete
fix. The other change is simple.
These two changes allow one to play with this option:
gnugo --nojosekidb
-Trevor
Index: interface/main.c
===================================================================
RCS file: /cvsroot/gnugo/gnugo/interface/main.c,v
retrieving revision 1.37
diff -r1.37 main.c
290c290,291
< board_size = 19;
---
> board_size = gg_min(19, MAX_BOARD);
>
Index: patterns/joseki.c
===================================================================
RCS file: /cvsroot/gnugo/gnugo/patterns/joseki.c,v
retrieving revision 1.11
diff -r1.11 joseki.c
401c401,406
<
---
>
> if (board_size > MAX_BOARD) {
> fprintf(stderr, "Board too big\n");
> return -1;
> }
>
- [gnugo-devel] #define MAX_BOARD 9,
Trevor Morris <=