Belofte version 2.1.9
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 depth_t INFINITE_DEPTH = 50
 
constexpr depth_t DEFAULT_DEPTH = 5
 
constexpr depth_t QS_DEPTHEXTENSION = 4
 
constexpr auto MINIMAL_DEPTH_COMPLETED = 1
 
constexpr auto TIME_OVERFLOWMULTIPLYER = 2
 
constexpr auto TIME_UNDERFLOWMULTIPLYER = 2
 
constexpr auto TIME_UNDERFLOWDEVIDER = 2
 
constexpr auto TIME_LOSTINENGINE = 50
 time lost in between UI go command and bestmove return
 
constexpr auto TIME_LASTMOVEMARGIN = 100
 

Enumeration Type Documentation

◆ LevelType

enum class 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 - setDepthCommand(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 45 of file level.h.

Variable Documentation

◆ INFINITE_DEPTH

◆ DEFAULT_DEPTH

◆ QS_DEPTHEXTENSION

depth_t QS_DEPTHEXTENSION = 4
constexpr

Definition at line 13 of file level.h.

Referenced by bLevel::bLevel().

◆ MINIMAL_DEPTH_COMPLETED

auto MINIMAL_DEPTH_COMPLETED = 1
constexpr

Definition at line 14 of file level.h.

Referenced by bLevel::stillTimeLeft().

◆ TIME_OVERFLOWMULTIPLYER

auto TIME_OVERFLOWMULTIPLYER = 2
constexpr

Definition at line 15 of file level.h.

◆ TIME_UNDERFLOWMULTIPLYER

auto TIME_UNDERFLOWMULTIPLYER = 2
constexpr

Definition at line 17 of file level.h.

◆ TIME_UNDERFLOWDEVIDER

auto TIME_UNDERFLOWDEVIDER = 2
constexpr

Definition at line 20 of file level.h.

◆ TIME_LOSTINENGINE

auto TIME_LOSTINENGINE = 50
constexpr

time lost in between UI go command and bestmove return

Todo
replace based on actual measurements

Definition at line 24 of file level.h.

Referenced by bLevel::setMoreTimeRequired(), and bLevel::setMoveTime().

◆ TIME_LASTMOVEMARGIN

auto TIME_LASTMOVEMARGIN = 100
constexpr

Definition at line 25 of file level.h.

Referenced by bLevel::setMoreTimeRequired().