aboutsummaryrefslogtreecommitdiff
path: root/go/game/playerControl.go
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fischer@muhq.space>2025-04-29 15:05:12 -0500
committerFlorian Fischer <florian.fischer@muhq.space>2025-08-20 15:57:16 +0200
commit8ec9ff690082e9761e056bf5740daf6b80769f1f (patch)
tree02e2c5a4f2deb440f4b8fc79237742cddb8815f6 /go/game/playerControl.go
parenta56641946ad4adcf2e59c08ca4befe70ca1e0e1b (diff)
downloadmuhqs-game-8ec9ff690082e9761e056bf5740daf6b80769f1f.tar.gz
muhqs-game-8ec9ff690082e9761e056bf5740daf6b80769f1f.zip
implement simple bot based draft
Diffstat (limited to 'go/game/playerControl.go')
-rw-r--r--go/game/playerControl.go7
1 files changed, 7 insertions, 0 deletions
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