BenBot
1.7.5
A chess engine
Loading...
Searching...
No Matches
Algebraic.hpp
Go to the documentation of this file.
1
/*
2
* ======================================================================================
3
*
4
* ░▒▓███████▓▒░░▒▓████████▓▒░▒▓███████▓▒░ ░▒▓███████▓▒░ ░▒▓██████▓▒░▒▓████████▓▒░
5
* ░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░ ░▒▓█▓▒░░▒▓█▓▒░ ░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░░▒▓█▓▒░ ░▒▓█▓▒░
6
* ░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░ ░▒▓█▓▒░░▒▓█▓▒░ ░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░░▒▓█▓▒░ ░▒▓█▓▒░
7
* ░▒▓███████▓▒░░▒▓██████▓▒░ ░▒▓█▓▒░░▒▓█▓▒░ ░▒▓███████▓▒░░▒▓█▓▒░░▒▓█▓▒░ ░▒▓█▓▒░
8
* ░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░ ░▒▓█▓▒░░▒▓█▓▒░ ░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░░▒▓█▓▒░ ░▒▓█▓▒░
9
* ░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░ ░▒▓█▓▒░░▒▓█▓▒░ ░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░░▒▓█▓▒░ ░▒▓█▓▒░
10
* ░▒▓███████▓▒░░▒▓████████▓▒░▒▓█▓▒░░▒▓█▓▒░ ░▒▓███████▓▒░ ░▒▓██████▓▒░ ░▒▓█▓▒░
11
*
12
* ======================================================================================
13
*/
14
20
21
#pragma once
22
23
#include <expected>
24
#include <
libchess/moves/Move.hpp
>
25
#include <string>
26
#include <string_view>
27
28
namespace
chess::game
{
29
struct
Position
;
30
}
// namespace chess::game
31
32
namespace
chess::notation
{
33
34
using
game::Position
;
35
using
moves::Move
;
36
46
[[nodiscard]]
auto
to_alg
(
const
Position
& position,
Move
move) -> std::string;
47
58
[[nodiscard]]
auto
from_alg
(
const
Position
& position, std::string_view text)
59
-> std::expected<Move, std::string>;
60
61
}
// namespace chess::notation
Move.hpp
chess::notation::from_alg
auto from_alg(const Position &position, std::string_view text) -> std::expected< Move, std::string >
chess::notation::to_alg
auto to_alg(const Position &position, Move 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
Algebraic.hpp
Generated on
for BenBot by
1.16.1