home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / games / volume15 / reversi / part02 / reversi.h < prev   
Text File  |  1993-01-27  |  1KB  |  42 lines

  1. /*
  2.     reversi - play a game of reversi against the computer or a human
  3.     Copyright (C) 1992  Elias Martenson
  4.  
  5.     This program is free software; you can redistribute it and/or modify
  6.     it under the terms of the GNU General Public License as published by
  7.     the Free Software Foundation; either version 2 of the License, or
  8.     (at your option) any later version.
  9.  
  10.     This program is distributed in the hope that it will be useful,
  11.     but WITHOUT ANY WARRANTY; without even the implied warranty of
  12.     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13.     GNU General Public License for more details.
  14.  
  15.     You should have received a copy of the GNU General Public License
  16.     along with this program; if not, write to the Free Software
  17.     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  18.  
  19.     Contact me by email at elias@proxxi.se
  20. */
  21.  
  22. #define TRUE (1)
  23. #define FALSE (0)
  24.  
  25. /* Some score definitions */
  26.  
  27. #define SQUARE_SCORE 10
  28. #define BORDER_SCORE 800
  29. #define CORNER_SCORE 4000
  30. #define BORDER_POS_BONUS 10
  31. #define BORDER2_POS_BONUS 10
  32. #define BORDER2_SCORE 50
  33. #define BORDER2_CORNER_SCORE -200
  34. #define BORDER3_CORNER_SCORE 150
  35. #define BORDER3_SCORE 400
  36.  
  37. #define NO_MOVE_BONUS 10000
  38. #define DIV_POINTS 1.2  /* This is a float! */
  39.  
  40. #define get_board(board,X,Y) (board)[((X)*8) + (Y)]
  41.  
  42.