agathazeren / cuneiforbits

𒆩𒀩𒂷𒂷𒂷𒀖
1 stars 1 forks source link

Should we have a `Game` struct. #7

Closed agathazeren closed 4 years ago

agathazeren commented 4 years ago

Should we have a master Game struct? or should we use global state? An in between would be a Game struct we have in global state.

Reasons for a struct

Reasons for global state

I am currently thinking that we should go for option C, that is, make a Game struct and then hold a copy in a static. (However, then the game struct must have synchronizations inside it, which is probably not bad.

yvnat commented 4 years ago

I don't think this really matters until the game gets very big- much larger than it is likely to ever become. If you prefer option C, then that is what we should do.

agathazeren commented 4 years ago

Sounds reasonable.