File indexing completed on 2024-05-19 07:52:01

0001 /*
0002     SPDX-FileCopyrightText: 2012 Ian Wadham <iandw.au@gmail.com>
0003 
0004     SPDX-License-Identifier: GPL-2.0-or-later
0005 */
0006 
0007 #ifndef AI_GLOBALS_H
0008 #define AI_GLOBALS_H
0009 
0010 #define AILog 0
0011 
0012 /*   VALUES of AILog
0013  *   ---------------
0014  *   0    0   No logging of game, moves or AI.  No logging code compiled.
0015  *   >0   1   Log the game (i.e. a summary of moves at the end of the game).
0016  *   >1   2   Add logging of moves as they happen.
0017  *   >2   3   Add logging of likely moves and MiniMax recursions.
0018  *   >3   4   Add logging of intermediate and ending positions of recursions.
0019  *   >4   5   Add logging of processes inside AI_Box and its stack.
0020  */
0021 
0022 enum Player {Nobody, One, Two};
0023 
0024 // Used in AI_Main and the inheritors of AI_Base (e.g. AI_Kepler, AI_Newton).
0025 const int HighValue     = 999;
0026 const int VeryHighValue = 9999;
0027 const int WinnerPlus1   = 0x3fffffff;
0028 
0029 #endif // AI_GLOBALS_H