pub type Message {
AllLegalMoves(reply_with: Subject(List(Move)))
ApplyMove(
reply_with: Subject(Result(Game, String)),
move: Move,
)
ApplyMoveUciString(
reply_with: Subject(Result(Game, String)),
move: String,
)
ApplyMoveSanString(
reply_with: Subject(Result(Game, String)),
move: String,
)
ApplyMoveRaw(
reply_with: Subject(Result(Game, String)),
move: Move,
)
UndoMove(reply_with: Subject(Result(Game, String)))
GetState(reply_with: Subject(Game))
GetSideToMove(reply_with: Subject(Color))
GetFen(reply_with: Subject(String))
GetStatus(reply_with: Subject(Option(Status)))
NewGame(reply_with: Subject(Game))
NewGameFromFen(
reply_with: Subject(Result(Game, String)),
fen: String,
)
DisableStatus(reply_with: Subject(Result(Game, Nil)))
Shutdown
PrintBoard(reply_with: Subject(Result(String, String)))
}
Constructors
-
AllLegalMoves(reply_with: Subject(List(Move)))
-
ApplyMove(reply_with: Subject(Result(Game, String)), move: Move)
-
ApplyMoveUciString(
reply_with: Subject(Result(Game, String)),
move: String,
)
-
ApplyMoveSanString(
reply_with: Subject(Result(Game, String)),
move: String,
)
-
ApplyMoveRaw(
reply_with: Subject(Result(Game, String)),
move: Move,
)
-
UndoMove(reply_with: Subject(Result(Game, String)))
-
GetState(reply_with: Subject(Game))
-
GetSideToMove(reply_with: Subject(Color))
-
GetFen(reply_with: Subject(String))
-
GetStatus(reply_with: Subject(Option(Status)))
-
NewGame(reply_with: Subject(Game))
-
NewGameFromFen(
reply_with: Subject(Result(Game, String)),
fen: String,
)
-
DisableStatus(reply_with: Subject(Result(Game, Nil)))
-
-
PrintBoard(reply_with: Subject(Result(String, String)))