Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

2
  • Thanks for the reply. >You should not save the Entity to act on in the GameState either, as it changes depending on the active method, and that's what method-parameters are for. To check that I parsed this correctly: Are you suggesting that the Piece shouldn't belong to the Board, and instead should be stored separately and made aware of it's own position? Commented May 26, 2018 at 14:27
  • No, all the entities, meaning all their components, are saved in the gamestate. But that gamestate should not save which one to act on just now. Commented May 26, 2018 at 14:29