chess_logic v0.1.0 ChessLogic.PieceWithSquare

Documentation for PieceWithSquare.

Transform chessfold data into current app data, and back…

Link to this section Summary

Functions

chessfld -> piece_with_square

piece_with_square -> chessfld

Link to this section Types

Link to this type file()
file() :: 0..7
Link to this type rank()
rank() :: 0..7
Link to this type square()
square() :: %{rank: rank(), file: file()}
Link to this type t()
t() :: %ChessLogic.PieceWithSquare{
  piece: %ChessLogic.Piece{pcolor: term(), ptype: term()},
  square: square()
}

Link to this section Functions

Link to this function from_chessfold_piece(arg)

chessfld -> piece_with_square.

Link to this function to_chessfold_piece(piece_with_square)

piece_with_square -> chessfld.