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
12
bBestMoveInfo::bBestMoveInfo
()
13
: score{
SCORE_UNDEFINED
}
14
, moveid{0}
15
{
16
}
17
18
bBestMoveInfo::bBestMoveInfo
(
bScore
const
_score,
movenum_t
const
_moveid)
19
: score{_score}
20
, moveid{_moveid}
21
{
22
}
23
24
bBestMoveInfo::bBestMoveInfo
(
bBestMoveInfo
const
& sr)
25
: score{sr.score}
26
, moveid{sr.moveid}
27
{
28
}
29
30
bBestMoveInfo::bBestMoveInfo
(
bBestMoveInfo
&& sr) noexcept
31
: score{std::move(sr.score)}
32
, moveid{std::move(sr.moveid)}
33
{
34
}
35
36
bBestMoveInfo
&
bBestMoveInfo::operator=
(
bBestMoveInfo
const
& sr)
37
{
38
score
= sr.
score
;
39
moveid
= sr.
moveid
;
40
return
*
this
;
41
}
42
43
bBestMoveInfo
&
bBestMoveInfo::operator=
(
bBestMoveInfo
&& sr)
noexcept
44
{
45
score = std::move(sr.score);
46
moveid = std::move(sr.moveid);
47
return
*
this
;
48
}
49
50
bBestMoveInfo::~bBestMoveInfo
()
51
{
52
}
53
54
// eof
belofte.h
This is the main include file, needs to be included before any other include.
movenum_t
uint_fast8_t movenum_t
Definition
belofte.h:109
bScore
int16_t bScore
Definition
bestmoveinfo.h:11
bBestMoveInfo
Definition
bestmoveinfo.h:15
bBestMoveInfo::~bBestMoveInfo
~bBestMoveInfo()
Definition
bestmoveinfo.cpp:50
bBestMoveInfo::bBestMoveInfo
bBestMoveInfo()
Definition
bestmoveinfo.cpp:12
bBestMoveInfo::moveid
movenum_t moveid
Definition
bestmoveinfo.h:27
bBestMoveInfo::score
bScore score
Definition
bestmoveinfo.h:26
bBestMoveInfo::operator=
bBestMoveInfo & operator=(bBestMoveInfo const &bmi)
Definition
bestmoveinfo.cpp:36
SCORE_UNDEFINED
constexpr bScore SCORE_UNDEFINED
Definition
eval.h:20
src
bestmoveinfo.cpp
Generated on 10/10/2024 by
1.9.8