24#include <QCoreApplication>
36 Q_DECLARE_TR_FUNCTIONS(
Result)
75 explicit Result(Type type = NoResult,
82 bool operator==(
const Result& other)
const;
84 bool operator!=(
const Result& other)
const;
110 QString toVerboseString()
const;
The result of a chess game.
Definition result.h:35
Type
Definition result.h:41
@ Disconnection
Loser disconnects, or terminates (if it's an engine).
Definition result.h:55
@ NoResult
No result. The game may continue.
Definition result.h:61
@ Agreement
Both players agree to a result.
Definition result.h:59
@ Win
Win by any means.
Definition result.h:43
@ Draw
Draw by any means.
Definition result.h:45
@ Adjudication
Adjudication by the GUI.
Definition result.h:51
@ ResultError
Result error, caused by an invalid result string.
Definition result.h:63
@ Resignation
Loser resigns.
Definition result.h:47
@ Timeout
A player's time flag falls.
Definition result.h:49
@ StalledConnection
Loser's connection stalls (doesn't respond to ping).
Definition result.h:57
@ IllegalMove
Loser tries to make an illegal move.
Definition result.h:53
Result(Type type=NoResult, Side winner=Side(), const QString &description=QString())
Definition result.cpp:24
The side or color of a chess player.
Definition side.h:36