home *** CD-ROM | disk | FTP | other *** search
/ Big Green CD 8 / BGCD_8_Dev.iso / OPENSTEP / Games / NeXTGo-3.0-MIS / gnugo.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-07-06  |  2.5 KB  |  53 lines

  1. #include "comment.header"
  2.  
  3. /* $Id: gnugo.h,v 1.3 1997/07/06 19:38:22 ergo Exp $ */
  4.  
  5. /*
  6.  * $Log: gnugo.h,v $
  7.  * Revision 1.3  1997/07/06 19:38:22  ergo
  8.  * actual version
  9.  *
  10.  * Revision 1.2  1997/05/04 18:57:19  ergo
  11.  * added time control for moves
  12.  *
  13.  */
  14.  
  15. extern void sethand(int i);        // set up the handicap stones.
  16. extern void examboard(int color);  // remove dead stones.
  17. extern void eval(int color);       // evaluate the liberties of the stones.
  18. extern void countlib(int m, int n, int color);
  19.                                    // count the liberties of the color at m,n.
  20. extern void count(int i, int j, int color);
  21.                                    // count the liberties of the stone at i,j.
  22. extern int suicide(int i, int j);  // determine if legally placed stone.
  23. extern void genmove(int *i, int *j);
  24.                                    // generate computer move.
  25. extern int findwinner(int *i, int *j, int *val);
  26.                                    // find opponent piece to capture or attack.
  27. extern int findopen(int m, int n, int i[], int j[], int color, int minlib, int *ct);
  28.                                    // find all open spaces i, j from m, n.
  29. extern int findsaver(int *i, int *j, int *val);
  30.                                    // find move if any pieces are threatened.
  31. extern void initmark();            // initialize all markings with zero.
  32. extern int findnextmove(int m, int n, int *i, int *j, int *val, int minlib);
  33.                                    // find new move i,j from group containing m,n.
  34. extern int fval(int newlib, int minlib);
  35.                                    // evaluate new move.
  36. extern int findpatn(int *i, int *j, int *val);
  37.                                    // find pattern to match for next move.
  38. extern int opening(int *i, int *j, int *cnd, int type);
  39.                                    // get move for opening from game tree.
  40. extern int openregion(int i1, int j1, int i2, int j2);
  41.                                    // check if region from i1,j1  to i2,j2 is open.
  42. extern int matchpat(int m, int n, int *i, int *j, int *val);
  43.                                    // match pattern and get next move.
  44. extern int fioe(int i, int j);     // check edges.
  45. extern void Random(int *i);        // return a random integer.
  46. extern void seed(int *i);          // seed a random number generator.
  47. extern void score_game(void);      // remove dead stones and score the game.
  48. extern void find_owner(void);
  49. extern int surrounds_territory(int x, int y);
  50. extern void find_pattern_in_board(int x, int y);
  51. extern void set_temp_to_p(void);
  52. extern void set_p_to_temp(void);
  53.