Crate game_board

Crate game_board 

Source

Structs§

Board
Represents a game board that holds pieces of a certain type.
Square
Represents a square on a simple_chess board.

Enums§

SquareColor

Functions§

get_column_and_row_from_square_name
Converts a simple_chess-style coordinate string to a given column and row.
get_file_name
Converts a column number (1-based) into a corresponding column name represented as a string.
get_rank_name
Retrieves the rank name (1-based index) given the row (0-based index).
get_square_name_from_row_and_col
Converts a given column and row to a simple_chess-style coordinate string.