Current section
Files
Jump to
Current section
Files
src/move.erl
-module(move).
-compile([no_auto_import, nowarn_unused_vars, nowarn_unused_function, nowarn_nomatch]).
-export_type([move/0, move_with_capture/0]).
-type move() :: {normal,
position:position(),
position:position(),
gleam@option:option(piece:piece())} |
{castle, position:position(), position:position()} |
{en_passant, position:position(), position:position()}.
-type move_with_capture() :: {move_with_capture,
move(),
gleam@option:option(piece:piece())}.