3#ifndef OSL_RECORD_KANJIMOVE_H
4#define OSL_RECORD_KANJIMOVE_H
7#include <unordered_map>
30 const Move& last_move)
const;
42 const Player& player)
const;
43 typedef std::unordered_map<std::string, Square>
Parse kanji records such as "7六歩", the style of which is generally used to write Shogi records in Jap...
str2position_t str2position
const Move strToMove(const std::string &, const NumEffectState &state, const Move &last_move) const
Convert a Japanese string (one token) to a move object.
std::unordered_map< std::string, Square > str2position_t
std::unordered_map< std::string, Ptype > str2piece_t
static const KanjiMove & instance()
Square toSquare(const std::string &) const
std::list< Move > found_moves_t
Ptype toPtype(const std::string &) const
void setVerbose(bool verbose)
void selectCandidates(found_moves_t &found, std::string &str, const Square &to_pos, const Player &player) const