ksquares
aicontroller.h
Go to the documentation of this file.
43 aiController(int newPlayerId, const QList<bool> &newLines, const QList<int> &newSquareOwners, int newWidth, int newHeight);
void linesFromSquare(int *sidesOfSquare, int squareIndex) const
Definition: aicontroller.cpp:543
Definition: aicontroller.h:15
Definition: aicontroller.h:15
KSquares::Direction lineDirection(int lineIndex) const
Definition: aicontroller.cpp:555
QList< int > squaresFromLine(int lineIndex) const
Definition: aicontroller.cpp:515
int countBorderLines(int squareIndex, const bool *linesList) const
Definition: aicontroller.cpp:509
QList< int > autoFill(int safeMovesLeft)
Finds lines that can be filled without causing squares to be surrounded by 3 lines as a result...
Definition: aicontroller.cpp:33
aiController(int newPlayerId, const QList< bool > &newLines, const QList< int > &newSquareOwners, int newWidth, int newHeight)
Create a new AI controller.
Definition: aicontroller.cpp:19
int chooseLine() const
Choses where to draw the line: Creates a list of all the squares which are surrounded by 3 lines and ...
Definition: aicontroller.cpp:59
QList< int > chooseLeastDamaging(const QList< int > &choiceList) const
Definition: aicontroller.cpp:178
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:18:39 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:18:39 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.