tartan 1.2.2.1
Chess API
|
Tartan library namespace. More...
Namespaces | |
namespace | chess |
Chess game namespace. | |
namespace | ex |
Tartan tt::Board exceptions set. | |
Classes | |
class | Board |
8x8 game board More... | |
class | Piece |
Generic board memeber API. More... | |
Typedefs | |
using | TurnMap = Piece::TurnMap |
using | Position = Piece::Position |
using | Turn = Piece::Turn |
using | Color = Piece::Color |
using | BoardT = std::array< std::array< Piece *, 8 >, 8 > |
Underlying Board grid representation type. | |
Functions | |
std::ostream & | operator<< (std::ostream &os, const Board &cb) |
bool | operator!= (const Board &lhs, const Board &rhs) |
bool | operator== (const Board &lhs, const Board &rhs) |
bool | operator== (const Position &lhs, const Position &rhs) |
std::ostream & | operator<< (std::ostream &os, const Position &p) |
bool | operator== (const Turn &lhs, const Turn &rhs) |
bool | operator!= (const Turn &lhs, const Turn &rhs) |
std::ostream & | operator<< (std::ostream &os, const Turn &t) |
bool | operator== (const TurnMap &lhs, const TurnMap &rhs) |
bool | operator!= (const TurnMap &lhs, const TurnMap &rhs) |
Tartan library namespace.
This is a bind to function !lhs.isEqual(rhs)
.
lhs | left object of == operator |
rhs | right object of == operator |
lhs
if every Turn object of lhs
is equal to every corresponding object in rhs
true
otherwise std::ostream & tt::operator<< | ( | std::ostream & | os, |
const Board & | cb | ||
) |
This function puts the str() function result to os
object with <<
operator.
os | calling object |
b | Board object for display |
os
object std::ostream & tt::operator<< | ( | std::ostream & | os, |
const Position & | p | ||
) |
Puts string representation of position to std::ostream.
std::ostream & tt::operator<< | ( | std::ostream & | os, |
const Turn & | t | ||
) |
Puts the t.str()
in os
object
os | invoking std::ostream object |
t | Turn object for writting |
std::ostream
os
object This is a bind to function lhs.isEqual(rhs)
.
true
if corresponding coordinates of both objects are equal lhs | left object of == operator |
rhs | right object of == operator |