Skip to content
Settlers Journal
Go back

Validation Logic for PLACE_FREE_SETTLEMENT Action

Edit page

TLDR

Writing validation logic for the PLACE_FREE_SETTLMENT action, which requires checking the current game’s graph state. Returning 409 if the requested action is illegal.

alt text Rough ideas about how state transitions would work.

alt text Determining which indices would be illegal to place a settlement at.

alt text Returning 409 if an invalid index was chosen.

Main work

Challenges

Learnings


Edit page
Share this post on:

Previous Post
Multi-Outcome FSM Transitions and Completing Initial Settlement Placement
Next Post
Designing the Graph Data Structure to Manage Board Pieces