home *** CD-ROM | disk | FTP | other *** search
- #include "comment.header"
-
- extern unsigned char ml[19][19];
- extern int MAXX, MAXY;
- extern void count(int m, int n, int color);
-
- void countlib(int m,int n,int color)
- /* count liberty of color piece at m, n */
- {
- int i, j;
-
- /* set all piece as unmarked */
- for (i = 0; i < MAXX; i++)
- for (j = 0; j < MAXY; j++)
- ml[i][j] = 1;
-
- /* count liberty of current piece */
- count(m, n, color);
- } /* end countlib */
-
-