v0.13.0 web and terminal client enhance, replay api, linux server deploy, doc and dependency update
test / test (push) Canceled after 0s

This commit is contained in:
lixen committed 2026-09-28 22:35:52 -04:00
1 parent 52ac0fe31a
commit f1ac4cbbe7
71 files changed
+7677 -537

No files matched your search

+18
View File
@@ -15,6 +15,8 @@ const (
CmdMakeMove
CmdUndoMove
CmdGetBoard
CmdResign
CmdDraw
)
// Command is a unified structure for all processor operations
@@ -84,3 +86,19 @@ func NewGetBoardCommand(gameID string) Command {
GameID: gameID,
}
}
func NewResignCommand(gameID string, req core.ResignRequest) Command {
return Command{
Type: CmdResign,
GameID: gameID,
Args: req,
}
}
func NewDrawCommand(gameID string, req core.DrawRequest) Command {
return Command{
Type: CmdDraw,
GameID: gameID,
Args: req,
}
}