I'm writing my first ever Android game.
It's a simple card game where player will have 3 BOT players.
Right now i'm writing a core logic for it in pure java. (Not thinking much about AndEngine and graphics yet)
The game has two phase:
So, i'm confused about how many threads would i need?
shall i put each player into a separate thread? (as phase 1 may need it)
OR
Or should i carry out this in one single thread? (as in Phase 2 synchronous behavior is needed)
If i put each player into different thread how can i serialize those threads to do sequential tasks (Phase 2- control move to player one after other)????
ALso
Right now the logic I'm writing is in pure java. Will it give me any trouble while configuring it with AndEngine?? I mean is there any specific format of handling inputs and using this logic in ANdEngine?? Its all about just calling methods of those classes to start game and to perform any operation on game.
I think Synchronous. If you think of a card game, you can't do anything until the previous player has made their move anyway.
If you start using separate threads you are just over-complicating things for yourself.