Zomis / Games

Many kinds of games, playable in both multiplayer or local play. Replays, spectator mode, and AIs.
https://games.zomis.net
MIT License
17 stars 5 forks source link

Resource Map with dynamic resources and triggers #313

Open Zomis opened 2 years ago

Zomis commented 2 years ago

Write a class that can keep track of "resources", i.e. Int values that can change over time and can be influenced by other effects.

This class should be able to replace Caravan in Spice Road, and Money in Splendor.

This class can be created individually and can be posted for review.

Related possible future features:

Zomis commented 2 years ago

Wildcards and resources that counts as "one of" or "all of" is currently no need to support, and I also see a very limited use-case for that. There might be some use-cases for it, but it is more coupled with actions than with resource maps themselves.

Listeners have a high potential use-case in for example in Alchemists, to things like "When you gain reputation, gain one more reputation" (although that also kinda includes a modifier)

Modifiers have a use-case in Cardshifter-like games and for potential advanced rules for other games, such as Splendor: "For the next 3 turns you have 1 wildcard to use"