ai client (#206)

This commit is contained in:
Gregor Zeitlinger 2025-04-11 15:13:49 +02:00 • committed by GitHub
commit 85a151da6c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -418,6 +418,7 @@ pub fn city_collections(game: &Game, player: &Player, city: &City) -> Vec<Collec
.permutations(l)
.map(|priority| city_collection(game, player, city, &priority))
.unique_by(Collect::total)
.filter(|c| c.total().amount() > 0) // todo check earlier?
.collect_vec()
}