Ejemplo n.º 1
0
 public void PickNextPresident(int playerId)
 {
     try
     {
         CurrentRound.MoveToNextRound();
         CurrentRound.PresidentId = playerId;
     }
     catch (Exception ex)
     {
         Console.WriteLine("PickNextPresident.ex: " + ex.Message);
     }
 }
Ejemplo n.º 2
0
 public void MoveToNextTurn()
 {
     try
     {
         CurrentRound.MoveToNextRound();
         presidentIndex           = ((++presidentIndex) % AlivePlayers.Count);
         CurrentRound.PresidentId = AlivePlayers[presidentIndex].UserId;
     }
     catch (Exception ex)
     {
         Console.WriteLine("MoveToNexTurn.ex:" + ex.Message);
     }
 }