"State machine file is too big" - what am I doing wrong?
Posted: 15 October 2020, 07:14
When I run Victoria_La's project checker, it warns that my state machine file is too big (231 lines at the moment).
I'm not sure if I should ignore it, or if I'm misunderstanding how to use the state machine.
My game, Mottainai (rules PDF), has 8 phases in a player's turn, and one of these phases is a loop that goes through all opponents, and a subloop where you perform an action several times. And another two phases have loops where you can optionally activate card effects in any order.
And this is just the core flow, that I'm still not done implementing and will probably need 2-3 more states. There are 50+ card effects to implement, many of them unique (not variations of each other), and each one requires different prompts from the players.
Is this something that can be implement with a small number of states?
Here's my code for reference: https://github.com/salty-horse/mottainai-bga
Note that the states file has few leftovers from the Hearts tutorial, but these should be a good stand-in for the states I'm still missing for the core game flow.
I'm not sure if I should ignore it, or if I'm misunderstanding how to use the state machine.
My game, Mottainai (rules PDF), has 8 phases in a player's turn, and one of these phases is a loop that goes through all opponents, and a subloop where you perform an action several times. And another two phases have loops where you can optionally activate card effects in any order.
And this is just the core flow, that I'm still not done implementing and will probably need 2-3 more states. There are 50+ card effects to implement, many of them unique (not variations of each other), and each one requires different prompts from the players.
Is this something that can be implement with a small number of states?
Here's my code for reference: https://github.com/salty-horse/mottainai-bga
Note that the states file has few leftovers from the Hearts tutorial, but these should be a good stand-in for the states I'm still missing for the core game flow.