28 #ifndef GROOVIE_LOGIC_CELL_H 29 #define GROOVIE_LOGIC_CELL_H 31 #include "common/textconsole.h" 44 void run(uint16 depth, byte *scriptBoard);
52 void copyToTempBoard();
53 void copyFromTempBoard();
54 void copyToShadowBoard();
57 void pushShadowBoard();
58 void popShadowBoard();
62 bool canMoveFunc1(int8 color);
63 bool canMoveFunc2(int8 color);
64 bool canMoveFunc3(int8 color);
65 void takeCells(uint16 whereTo, int8 color);
67 int countCellsOnTempBoard(int8 color);
68 void makeMove(int8 color);
69 int getBoardWeight(int8 color1, int8 color2);
70 void chooseBestMove(int8 color);
71 int8 calcBestWeight(int8 color1, int8 color2, uint16 depth,
int bestWeight);
72 void doGame(int8 color,
int depth);
73 void calcMove(int8 color, uint16 depth);
82 int8 _shadowBoard[64];
83 int8 _boardStack[570];
88 int8 _stack_startXY[128];
89 int8 _stack_endXY[128];
90 int8 _stack_pass[128];
94 bool _flag1, _flag2, _flag4;
101 #endif // GROOVIE_LOGIC_CELL_H