Xiangiqgame
AI engine for Xiangqi
Loading...
Searching...
No Matches
movetranslation Namespace Reference

Classes

class  AlgebraicBoardSpace
 
class  AlgebraicMove
 
class  InvalidAlgebraicSpaceException
 
class  InvalidVectorSizeException
 

Functions

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

Function Documentation

◆ GetInput()

const std::string movetranslation::GetInput ( std::istream &  input_stream)

Definition at line 85 of file move_translator.cpp.

◆ IsValidAlgebraicBoardSpace()

bool movetranslation::IsValidAlgebraicBoardSpace ( const std::string &  algebraic_space)

Definition at line 134 of file move_translator.cpp.

◆ IsValidAlgebraicMove()

bool movetranslation::IsValidAlgebraicMove ( const std::vector< std::string > &  tokens)

Definition at line 117 of file move_translator.cpp.

◆ Tokenize()

const std::vector< std::string > movetranslation::Tokenize ( const std::string &  input)

Definition at line 103 of file move_translator.cpp.

◆ Trim()

const std::string movetranslation::Trim ( const std::string &  str)

Definition at line 92 of file move_translator.cpp.