Exemple #1
0
 public IHand ContinueFromHumanPickTurn(IHumanPlayer human, bool willPick, IHand hand, IPickProcessor pickProcessorOuter)
 {
     if (hand.PlayersWithoutPickTurn.FirstOrDefault() != human)
     {
         throw new NotPlayersTurnException("This is not the player's turn to pick.");
     }
     if (willPick)
     {
         hand.Blinds.ToList().ForEach(c => human.AddCard(c));
         hand.SetPicker(human, new List <SheepCard>());
     }
     else
     {
         hand.PlayerWontPick(human);
         pickProcessorOuter.PlayNonHumanPickTurns(hand);
     }
     return(hand);
 }