Advertisement
JadonChan

Strategy.h

May 31st, 2024
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.83 KB | None | 0 0
  1. /********************************************************
  2. *   Strategy.h : 策略接口文件                           *
  3. *   张永锋                                              *
  4. *   [email protected]                                 *
  5. *   2014.5                                              *
  6. *********************************************************/
  7.  
  8. #ifndef STRATEGY_H_
  9. #define STRATEGY_H_
  10.  
  11. #include "Point.h"
  12.  
  13. #define VALUEC (1.0)
  14. #define CHESS(myTurn) ((myTurn) ? 1 : 2)
  15.  
  16. extern "C" Point *getPoint(const int M, const int N, const int *top, const int *_board,
  17.                            const int lastX, const int lastY, const int noX, const int noY);
  18.  
  19. extern "C" void clearPoint(Point *p);
  20.  
  21. void clearArray(int M, int N, int **board);
  22.  
  23. /*
  24.     添加你自己的辅助函数
  25. */
  26. void build(const int *const *board, const int *top);
  27.  
  28. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement