Conquer Chess
Chess and Starcraft combined
Loading...
Searching...
No Matches
pgn_game_string.h
Go to the documentation of this file.
1#ifndef PGN_GAME_STRING_H
2#define PGN_GAME_STRING_H
3
4#include <string>
5#include <vector>
6
14{
15public:
16 pgn_game_string(const std::string& pgn_str = "");
17
18 const auto& get() const noexcept { return m_pgn_str; }
19
20private:
21 std::string m_pgn_str;
22};
23
25
26
27
40
43std::vector<std::string> split_pgn_str(const pgn_game_string& pgn_str);
44
46
47bool operator==(const pgn_game_string& lhs, const pgn_game_string& rhs) noexcept;
48
49
50#endif // PGN_GAME_STRING_H
A string that is a PGN notation string of a game.
Definition pgn_game_string.h:14
const auto & get() const noexcept
Definition pgn_game_string.h:18
pgn_game_string get_replay_1_as_pgn_str() noexcept
Definition pgn_game_string.cpp:14
void test_pgn_game_string()
Definition pgn_game_string.cpp:44
pgn_game_string get_scholars_mate_as_pgn_str() noexcept
Get the PGN for a scholar's mate.
Definition pgn_game_string.cpp:19
std::vector< std::string > split_pgn_str(const pgn_game_string &pgn_str)
Split the PGN string into its moves E.g.
Definition pgn_game_string.cpp:24