chess_logic v0.3.0 ChessLogic.Square

Documentation for Chess.Square. Helper functions for square 0x88 notation

Link to this section Summary

Functions

Returns the row/col from square or piece.

Returns the square chars to piece.

Returns the square to charlist.

Returns the square to string.

Returns the square from row/col.

Link to this section Functions

Link to this function

from_square(square)

Returns the row/col from square or piece.

Link to this function

square_chars_to_pieces(row_string, pieces, row_id)

Returns the square chars to piece.

Link to this function

square_to_charlist(square)

Returns the square to charlist.

Link to this function

square_to_string(piece_or_square)

Returns the square to string.

Returns the square from row/col.

Link to this function

to_square(row, col)