iamlogand / republic-of-rome-online

An online adaptation of The Republic of Rome, a strategy board game
https://www.roronline.com/
MIT License
5 stars 2 forks source link

Add functions for sequence of play operations #395

Closed iamlogand closed 8 months ago

iamlogand commented 9 months ago

A common cause of bugs in the backend has been the failure to get step and phase instances correctly (e.g. the wrong instance is retrieved, or a new instance is given the wrong index). To reduce the risk of this happening again, write and use functions for these operations to centralize the logic: