From 8ec9ff690082e9761e056bf5740daf6b80769f1f Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Tue, 29 Apr 2025 15:05:12 -0500 Subject: implement simple bot based draft --- go/game/playerControl.go | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'go/game/playerControl.go') diff --git a/go/game/playerControl.go b/go/game/playerControl.go index 94c8be7e..bad1a13a 100644 --- a/go/game/playerControl.go +++ b/go/game/playerControl.go @@ -13,6 +13,7 @@ const ( PriorityNotification TargetSelectionPrompt DeclareTriggeredActionsPrompt + DraftPickPrompt ) func (n PlayerNotificationType) String() string { @@ -27,6 +28,8 @@ func (n PlayerNotificationType) String() string { return "TargetSelectionPrompt" case DeclareTriggeredActionsPrompt: return "DeclareTriggeredActionsPrompt" + case DraftPickPrompt: + return "DraftPickPrompt" default: log.Panicf("Unhandled notification %d", n) return "" @@ -93,6 +96,10 @@ func newDeclareTriggeredActionsPrompt(triggeredActions []*TriggeredAction) Playe return PlayerNotification{DeclareTriggeredActionsPrompt, triggeredActions, nil} } +func newDraftPickPrompt(pack PileOfCards) PlayerNotification { + return PlayerNotification{DraftPickPrompt, pack, nil} +} + type PlayerControl interface { Player() *Player RecvAction() Action -- cgit v1.2.3