22 #ifndef ASYLUM_PUZZLES_TICTACTOE_H 23 #define ASYLUM_PUZZLES_TICTACTOE_H 25 #include "asylum/puzzles/puzzle.h" 55 uint32 _numberOfPossibleMoves;
70 void getTwoEmpty(uint32 field1, uint32 field2, uint32 field3);
75 bool computerThinks();
76 GameStatus returnLineData(uint32 field1, uint32 field2, uint32 field3,
char mark, uint32 *counterX, uint32 *counterO)
const;
79 uint32 returnEmptySlot(uint32 position1, uint32 position2, uint position3)
const;
81 int32 lookForAWinner();
82 bool strategy(
char mark);
83 bool tryToWin() {
return strategy(
'X'); }
84 bool tryNotToLose() {
return strategy(
'O'); }
85 bool arbitraryPlacement();
91 #endif // ASYLUM_PUZZLES_TICTACTOE_H
Definition: tictactoe.h:31
Definition: eventhandler.h:43