25#include "board/result.h"
26#include "board/move.h"
27#include "timecontrol.h"
28#include "moveevaluation.h"
30namespace Chess {
class Board; }
66 virtual bool isReady()
const;
72 bool hasError()
const;
106 void setTimeControl(
const TimeControl& timeControl);
109 void addTime(
int bonus);
122 virtual void makeBookMove(
const Chess::Move& move);
128 void setName(
const QString& name);
137 virtual void startPondering();
140 virtual void clearPonderState();
152 bool areClaimsValidated()
const;
154 void setClaimsValidated(
bool validate);
160 void setCanPlayAfterTimeout(
bool enable);
238 virtual void onCrashed();
244 virtual void onTimeout();
265 virtual bool canPlayAfterTimeout()
const;
287 void setState(
State state);
290 void setError(
const QString& error);
309 bool m_claimedResult;
310 bool m_validateClaims;
311 bool m_canPlayAfterTimeout;
A chess player, human or AI.
Definition: chessplayer.h:39
State
Definition: chessplayer.h:45
@ Starting
Starting or initializing.
Definition: chessplayer.h:47
@ Observing
Observing a game, or waiting for turn.
Definition: chessplayer.h:49
@ Idle
Idle and ready to start a game.
Definition: chessplayer.h:48
@ Thinking
Thinking of the next move.
Definition: chessplayer.h:50
@ NotStarted
Not started or uninitialized.
Definition: chessplayer.h:46
@ FinishingGame
Finishing or cleaning up after a game.
Definition: chessplayer.h:51
void moveMade(const Chess::Move &move)
void resultClaim(const Chess::Result &result)
MoveEvaluation m_eval
Definition: chessplayer.h:299
virtual void startGame()=0
void nameChanged(const QString &name)
virtual void startThinking()=0
void debugMessage(const QString &data)
void thinking(const MoveEvaluation &eval)
virtual void makeMove(const Chess::Move &move)=0
void startedThinking(int timeLeft)
virtual bool supportsVariant(const QString &variant) const =0
virtual bool isHuman() const =0
An internal chessboard class.
Definition: board.h:58
A small and efficient chessmove class.
Definition: move.h:43
The result of a chess game.
Definition: result.h:35
Type
Definition: result.h:41
The side or color of a chess player.
Definition: side.h:36
Evaluation data for a chess move.
Definition: moveevaluation.h:36
Time controls of a chess game.
Definition: timecontrol.h:36