27 #include <QTextStream> 28 #include "board/move.h" 29 #include "timecontrol.h" 31 #include "gameadjudicator.h" 32 #include "tournamentplayer.h" 33 #include "tournamentpair.h" 64 virtual QString type()
const = 0;
68 bool isFinished()
const;
83 int currentRound()
const;
93 int gamesPerEncounter()
const;
99 int roundMultiplier()
const;
101 int finishedGameCount()
const;
103 int finalGameCount()
const;
107 int playerCount()
const;
112 int seedCount()
const;
122 void setName(
const QString& name);
124 void setSite(
const QString& site);
126 void setVariant(
const QString& variant);
132 void setGamesPerEncounter(
int count);
137 virtual bool canSetRoundMultiplier()
const;
143 void setRoundMultiplier(
int factor);
145 void setStartDelay(
int delay);
153 void setRecoveryMode(
bool recover);
171 void setOpeningDepth(
int plies);
179 void setPgnOutput(
const QString& fileName,
188 void setPgnCleanupEnabled(
bool enabled);
196 void setOpeningRepetition(
bool repeat);
203 void setOpeningBookOwnership(
bool enabled);
208 void setSeedCount(
int seedCount);
221 int bookDepth = 256);
226 virtual QString results()
const;
281 void setCurrentRound(
int round);
283 int gamesInProgress()
const;
306 virtual void onGameAboutToStart(
ChessGame* game,
322 virtual void initializePairing() = 0;
329 virtual int gamesPerCycle()
const = 0;
351 virtual void onFinished();
359 virtual void addScore(
int player,
int score);
364 virtual bool areAllGamesFinished()
const;
372 virtual bool hasGauntletRatingsOrder()
const;
375 void startNextGame();
376 bool writePgn(
PgnGame* pgn,
int gameNumber);
406 int m_nextGameNumber;
407 int m_finishedGameCount;
408 int m_savedGameCount;
409 int m_finalGameCount;
410 int m_gamesPerEncounter;
411 int m_roundMultiplier;
416 bool m_repeatOpening;
420 bool m_bookOwnership;
436 #endif // TOURNAMENT_H Use additional data like extra tags and comments.
Definition: pgngame.h:60
A class for constructing new chess players.
Definition: playerbuilder.h:37
Time controls of a chess game.
Definition: timecontrol.h:34
A class for storing a player's tournament-specific details.
Definition: tournamentplayer.h:27
A game of chess in PGN format.
Definition: pgngame.h:51
Definition: chessgame.h:38
The side or color of a chess player.
Definition: side.h:34
PgnMode
Definition: pgngame.h:55
A class for adjudicating chess games.
Definition: gameadjudicator.h:31
A class for managing chess games and players.
Definition: gamemanager.h:39
Base class for chess tournaments.
Definition: tournament.h:44
A collection of opening moves for chess.
Definition: openingbook.h:42
A single encounter in a tournament.
Definition: tournamentpair.h:30
A Sequential Probability Ratio Test.
Definition: sprt.h:31
A suite of chess openings.
Definition: openingsuite.h:39