inline std::string Location::ToCoords() const { std::stringstream coords; uint x,y; ToCoords(_pos, x, y); coords << static_cast<char>(x + 'a' - 1); coords << y; return coords.str(); }
inline bool Location::ValidPosition(uint pos) { uint x, y; ToCoords(pos, x, y); return ValidLocation(x, y); }