[][src]Crate myopic_core

Modules

constants
hash

Structs

BitBoard

A bitboard is a value type wrapping a 64 bit integer which represents a set of squares on a chess board. Each bit is mapped to a particular square on the board, 0 -> H1, 1 -> G1,..., 8 -> H2,..., 63 -> A8. For example if we know a piece to reside on a particular square we can use a bitboard to to capture the available moves for that piece.

CastleZoneSet

Enums

CastleZone

Represents one of the four different areas on a chessboard where the special castling move can take place (two for each side).

Dir

Type representing a square on a chessboard.

Piece

Value type wrapping a single integer representing one of the 12 different pieces in a game of chess.

Side

Represents the two different teams in a game of chess.

Square

Type representing a square on a chessboard.

Traits

Reflectable

Chess is a symmetric game and this trait represents a component of the game which can be reflected to it's symmetric opposite component.