From c98dd8aacd47eb3732392f41c412b3f54036ef3d Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Tue, 7 Feb 2023 14:58:22 +0100 Subject: intermediate commit * implement most of the kraken cards * unify permanent marks * add state based actions hook for card implementations --- go/game/map.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'go/game/map.go') diff --git a/go/game/map.go b/go/game/map.go index 2115e0b0..b86debad 100644 --- a/go/game/map.go +++ b/go/game/map.go @@ -269,6 +269,10 @@ func (m *Map) AllTiles() []*Tile { return m.FilterTiles(func(*Tile) bool { return true }) } +func (m *Map) FreeTiles() []*Tile { + return m.FilterTiles(func(t *Tile) bool { return t.IsFree() }) +} + func (m *Map) distributeStoreCards(cards PileOfCards, rand *rand.Rand) { nStores := len(m.Stores) stores := make([]*Store, 0, nStores) -- cgit v1.2.3