Belofte  version 2.1.5
A promising chess program using the UCI or Winboard interface
level.h File Reference
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  bLevel
 

Enumerations

enum class  LevelType {
  Unset , SecondsPerMove , SuddenDeath , TimeControl ,
  FicherTimeControl , Infinite , MateSearch
}
 Implements clock n seconds per game - setGameTime(seconds * 1000) n seconds per game, increment inc seconds per move. More...
 

Variables

constexpr auto INFINITE_DEPTH = 50
 
constexpr auto DEFAULT_DEPTH = 1
 
constexpr auto QSDEPTH_MULTIPLYER = 2
 
constexpr auto QS_DEPTHEXTENSION = 5
 
constexpr auto MINIMAL_DEPTH_COMPLETED = 1
 
constexpr auto TIME_OVERFLOWMULTIPLYER = 3
 
constexpr auto TIME_UNDERFLOWMULTIPLYER = 2
 
constexpr auto TIME_UNDERFLOWDEVIDER = 5
 
constexpr auto TIME_LOSTINENGINE = 50
 time lost in between UI go command and bestmove return More...
 
constexpr auto TIME_LASTMOVEMARGIN = 100
 
constexpr auto DEFAULT_MOVETIME = 3000 + TIME_LOSTINENGINE
 

Enumeration Type Documentation

◆ LevelType

enum LevelType
strong

Implements clock n seconds per game - setGameTime(seconds * 1000) n seconds per game, increment inc seconds per move.

  • setGameTime(seconds * 1000, inc * 1000) n seconds per move - setMoveTime(seconds * 1000) n seconds per x moves - setMoveTime(seconds * 1000, x) n seconds per x moves, increment inc seconds per move
  • setMoveTime(seconds * 1000, x, inc * 1000) infinite - setInfinite() mate search - setMateSearch(depth)

restrict to depth x - setDepth(depth)

Todo:

restrict to n nodes - setNodes(nodes)

restrict to moves - setMoves(moves)

start pondering - setPondering()

Enumerator
Unset 
SecondsPerMove 
SuddenDeath 
TimeControl 
FicherTimeControl 
Infinite 
MateSearch 

Definition at line 48 of file level.h.

Variable Documentation

◆ INFINITE_DEPTH

constexpr auto INFINITE_DEPTH = 50
constexpr

◆ DEFAULT_DEPTH

constexpr auto DEFAULT_DEPTH = 1
constexpr

Definition at line 12 of file level.h.

Referenced by bLevel::bLevel(), and bLevel::initDepths().

◆ QSDEPTH_MULTIPLYER

constexpr auto QSDEPTH_MULTIPLYER = 2
constexpr

Definition at line 13 of file level.h.

Referenced by bLevel::initDepths().

◆ QS_DEPTHEXTENSION

constexpr auto QS_DEPTHEXTENSION = 5
constexpr

Definition at line 14 of file level.h.

Referenced by bLevel::initDepths().

◆ MINIMAL_DEPTH_COMPLETED

constexpr auto MINIMAL_DEPTH_COMPLETED = 1
constexpr

Definition at line 15 of file level.h.

Referenced by bLevel::stillTimeLeft().

◆ TIME_OVERFLOWMULTIPLYER

constexpr auto TIME_OVERFLOWMULTIPLYER = 3
constexpr

Definition at line 16 of file level.h.

◆ TIME_UNDERFLOWMULTIPLYER

constexpr auto TIME_UNDERFLOWMULTIPLYER = 2
constexpr

Definition at line 18 of file level.h.

◆ TIME_UNDERFLOWDEVIDER

constexpr auto TIME_UNDERFLOWDEVIDER = 5
constexpr

Definition at line 21 of file level.h.

◆ TIME_LOSTINENGINE

constexpr auto TIME_LOSTINENGINE = 50
constexpr

time lost in between UI go command and bestmove return

Todo:
replace based on actual measurements

Definition at line 25 of file level.h.

Referenced by bLevel::setMoveTime().

◆ TIME_LASTMOVEMARGIN

constexpr auto TIME_LASTMOVEMARGIN = 100
constexpr

Definition at line 26 of file level.h.

◆ DEFAULT_MOVETIME

constexpr auto DEFAULT_MOVETIME = 3000 + TIME_LOSTINENGINE
constexpr

Definition at line 28 of file level.h.

Referenced by main().