Belofte version 2.1.8
A promising chess program using the UCI or Winboard interface
bestmoveinfo.cpp
Go to the documentation of this file.
1/*---------------------------------------------------------------------+
2 * File: bestmoveinfo.cpp
3 * Project: part of belofte - A Promising Chess Program
4 * Author: yves
5 * SPDX-License-Identifier: GPL-2.0-only
6+----------------------------------------------------------------------*/
7
8#include "belofte.h"
9
10//-----------------------------------------------------------------------
11
13 : score{SCORE_UNDEFINED}
14 , moveid{0}
15{
16}
17
18bBestMoveInfo::bBestMoveInfo(bScore const _score, movenum_t const _moveid)
19 : score{_score}
20 , moveid{_moveid}
21{
22}
23
25 : score{sr.score}
26 , moveid{sr.moveid}
27{
28}
29
31 : score{std::move(sr.score)}
32 , moveid{std::move(sr.moveid)}
33{
34}
35
37{
38 score = sr.score;
39 moveid = sr.moveid;
40 return *this;
41}
42
44{
45 score = std::move(sr.score);
46 moveid = std::move(sr.moveid);
47 return *this;
48}
49
53
54// eof
This is the main include file, needs to be included before any other include.
uint_fast8_t movenum_t
Definition belofte.h:109
int16_t bScore
movenum_t moveid
bBestMoveInfo & operator=(bBestMoveInfo const &bmi)
constexpr bScore SCORE_UNDEFINED
Definition eval.h:20