BenBot
1.7.5
A chess engine
Loading...
Searching...
No Matches
UCI.hpp
Go to the documentation of this file.
1
/*
2
* ======================================================================================
3
*
4
* ░▒▓███████▓▒░░▒▓████████▓▒░▒▓███████▓▒░ ░▒▓███████▓▒░ ░▒▓██████▓▒░▒▓████████▓▒░
5
* ░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░ ░▒▓█▓▒░░▒▓█▓▒░ ░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░░▒▓█▓▒░ ░▒▓█▓▒░
6
* ░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░ ░▒▓█▓▒░░▒▓█▓▒░ ░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░░▒▓█▓▒░ ░▒▓█▓▒░
7
* ░▒▓███████▓▒░░▒▓██████▓▒░ ░▒▓█▓▒░░▒▓█▓▒░ ░▒▓███████▓▒░░▒▓█▓▒░░▒▓█▓▒░ ░▒▓█▓▒░
8
* ░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░ ░▒▓█▓▒░░▒▓█▓▒░ ░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░░▒▓█▓▒░ ░▒▓█▓▒░
9
* ░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░ ░▒▓█▓▒░░▒▓█▓▒░ ░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░░▒▓█▓▒░ ░▒▓█▓▒░
10
* ░▒▓███████▓▒░░▒▓████████▓▒░▒▓█▓▒░░▒▓█▓▒░ ░▒▓███████▓▒░ ░▒▓██████▓▒░ ░▒▓█▓▒░
11
*
12
* ======================================================================================
13
*/
14
21
22
#pragma once
23
24
#include <expected>
25
#include <
libchess/moves/Move.hpp
>
26
#include <string>
27
#include <string_view>
28
29
namespace
chess::game
{
30
struct
Position
;
31
}
// namespace chess::game
32
33
namespace
chess::notation
{
34
35
using
game::Position;
36
using
moves::Move;
37
43
[[nodiscard]]
auto
to_uci
(
Move
move) -> std::string;
44
53
[[nodiscard]]
auto
from_uci
(
54
const
Position
& position, std::string_view text)
55
-> std::expected<Move, std::string>;
56
57
}
// namespace chess::notation
Move.hpp
chess::notation::to_uci
auto to_uci(Move move) -> std::string
chess::notation::from_uci
auto from_uci(const Position &position, std::string_view text) -> std::expected< Move, std::string >
chess::game
Definition
CastlingRights.hpp:28
chess::notation
Definition
Algebraic.hpp:32
chess::game::Position
Definition
Position.hpp:74
chess::moves::Move
Definition
Move.hpp:75
libchess
include
libchess
notation
UCI.hpp
Generated on
for BenBot by
1.16.1