Which option for 4 players cards game
<p>I am designing a cards game for android that is played by 4 players (3 bots and 1 human)
I am wondering about the right approach to do this taking into consideration UI and game calculations.
Below are two ways, which one would be better?</p>

<p>1- Start a thread  (or assignTask) that would loop through all the players and update screen accordignly</p>

<pre><code>void doInBackground(){

   for (i=0;i&lt;13;i++){
     player1.play();
     //update GUI
     thread.sleep(1000);
     player2.play();
     //update GUI
     thread.sleep(1000);
     player3.play();
     //update GUI
     thread.sleep(1000);
     player4.play();
     //update GUI
     thread.sleep(1000);

   }

}
</code></pre>

<p>2- Second options is to have the looping running on backgroud thread but the calculation of each player is in a thread</p>

<pre><code>void OnCreat(){

.
.
.
.
   for (i=0;i&lt;13;i++){
     new thread().execute(player1.play());
     new thread().execute(player2.play();
     new thread().execute(player3.play();
     new thread().execute(player4.play();


   }

}
</code></pre>

<p>I am thinking the first option would be better just because I dont have to make sure that no player 2 does not play before player 1 and plus I can us thread.sleep() in between plays (to give a pause between plays).</p>

<p>Any thoughts ? Or even better ideas?
Thank you</p>
