Skip to content
Settlers Journal
Go back

Checking Purchase Eligibility with CatanBankService Before Turn Transitions

Edit page

TLDR

Adding TransitionSpendResourcesNoopTurnRoll, which checks if a player can make any kind of purchase. E.g., buy a dev card, build a road, etc. Introducing CatanBankService. Refactoring setAvailableActions method to avoid immutable list issue.

alt text

Main work

Challenges

Learnings


Edit page
Share this post on:

Previous Post
Combining Bank and Graph Checks for Legal Purchase Transitions
Next Post
Implementing Resource Collection from Dice Rolls for All Players