your turn / my turn logic

Srsly gais, this is really helpful. Also, this implementation seems like it would make sense to have a state manager class. in between the various states and the game class that holds the changeState(State state) method.

Thanks for providing this! It was really helpful, and let me complete a project quicker.

I think this is called a turn system and I believe you can just control the player’s turns with booleans.
I’ve actually made a Battleship recently and i’ve implemented a turn system inside of it.
If you wanna see the code, just give me a message. xD