Xiangiqgame
AI engine for Xiangqi
Loading...
Searching...
No Matches
move_translator.cpp File Reference
#include <gameboard/board_data_structs.hpp>
#include <movetranslation/move_translator.hpp>
#include <regex>
#include <sstream>
#include <string>
Include dependency graph for move_translator.cpp:

Go to the source code of this file.

Namespaces

namespace  movetranslation
 

Functions

const std::string movetranslation::GetInput (std::istream &input_stream)
 
const std::string movetranslation::Trim (const std::string &str)
 
const std::vector< std::string > movetranslation::Tokenize (const std::string &input)
 
bool movetranslation::IsValidAlgebraicMove (const std::vector< std::string > &tokens)
 
bool movetranslation::IsValidAlgebraicBoardSpace (const std::string &algebraic_space)