From a3ca136cd776ff0089dc33e401d1fc474dc17138 Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Mon, 8 Sep 2025 15:38:07 +0200 Subject: support explicitly winning and implement Approach Supremacy! --- go/game/state.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'go/game/state.go') diff --git a/go/game/state.go b/go/game/state.go index 9baaea5f..a9c2f638 100644 --- a/go/game/state.go +++ b/go/game/state.go @@ -410,6 +410,10 @@ func (s *LocalState) declareAction(a Action) { } } +func (s *LocalState) counterAction(a Action) { + s.stack.remove(a) +} + func (s *LocalState) orderTriggeredActions(triggeredActions []*TriggeredAction) []Action { // Sort triggers by their controller playerActions := make(map[*Player][]*TriggeredAction) -- cgit v1.2.3