kigo
game.h
Go to the documentation of this file.
void canRedoChanged(bool)
This signal is emitted when availability of redo moves changes.
QList< Stone > finalStates(FinalState state)
Report fields with a specified final status in a finished game.
Definition: game.cpp:669
FinalState finalState(const Stone &field)
Report the final status of a field in a finished game.
Definition: game.cpp:650
Score estimatedScore()
Returns an estimate of the final score based on the current game situation.
Definition: game.cpp:706
void boardSizeChanged(int)
This signal is emitted when the board size was changed.
bool start(const QString &command="gnugo --mode gtp")
Connect to the given Go game game in GTP mode.
Definition: game.cpp:69
QList< Stone > legalMoves(const Player &player)
List all legal moves for either player.
Definition: game.cpp:616
void consecutivePassMovesPlayed(int)
This signal is emitted when both players played a pass move after another.
void waiting(bool)
This signal is emitted when the game starts or ends a non-blocking wait.
void currentPlayerChanged(const Player &)
This signal is emitted when the current player changes.
QList< Stone > bestMoves(const Player &player)
Generate a list of the best moves for a player with weights.
Definition: game.cpp:593
QList< Stone > stones(const Player &player)
Returns a list of all stones of that player on the board.
Definition: game.cpp:531
void boardInitialized()
This signal is emitted when the board is first started and can be used to trigger an update to a visu...
bool isRunning() const
Check whether the Game object is connected to a Go game, running and waiting for commands to be fed w...
Definition: game.h:99
int captures(const Player &player)
List the number of captures taken by either player.
Definition: game.cpp:636
bool canUndo() const
int fixedHandicapUpperBound()
Returns the maximum amount fixed handicap stones placeable at the current Go board size...
Definition: game.cpp:255
QList< Stone > liberties(const Stone &field)
Returns the positions of the liberties for the stone at 'field'.
Definition: game.cpp:577
bool canRedo() const
The Move class is a light-weight representation of a Go move (to be) made by a Go player...
Definition: move.h:36
The Game class implements the Go game and acts as a wrapper around a remote Go Game game implementing...
Definition: game.h:60
void passMovePlayed(const Player &)
FinalState
Enumeration of all possible final states of a field when a game is over.
Definition: game.h:68
QObject * parent() const
QProcess::ProcessState state() const
void boardChanged()
This signal is emitted when the board situation changed and can be used to trigger an update to a vis...
void canUndoChanged(bool)
This signal is emitted when availability of undo moves changes.
bool generateMove(const Player &player, bool undoable=true)
Definition: game.cpp:359
Definition: game.h:71
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:18:29 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:29 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.