CrissCross.
More...
#include <game.h>
|
void | endTurn () |
| Ends the current turn.
|
|
void | nextTurn () |
| Switches to the next turn.
|
|
bool | checkVictory () |
| Checks whether somebody won or not.
|
|
bool | gameDraw () const |
| Checks whether the game is draw or not.
|
|
void | victory () |
| Someone won, process the victory.
|
|
void | draw () |
| The match is over but nobody won, the game is draw.
|
|
void | AI_playTurn () |
| Main function for the AI to play its turn.
|
|
void | AI_updateWeights () |
| Updates the weights of the tiles.
|
|
unsigned | AI_makeChoice () const |
| Makes the choice depending on the weights.
|
|
CrissCross.
Player vs AI criss-cross game
◆ AI_makeChoice()
unsigned CrissCross::AI_makeChoice |
( |
| ) |
const |
|
private |
Makes the choice depending on the weights.
- Returns
- The tile to select
- See also
- AI_playTurn();
◆ AI_updateWeights()
void CrissCross::AI_updateWeights |
( |
| ) |
|
|
private |
The documentation for this class was generated from the following files:
- logdoctor/games/crisscross/game.h
- logdoctor/games/crisscross/game.cpp