Beispiel #1
0
 private void GetMove(GameEventHub ctx, PlayerIndex nextTurn, IInvokablePlayer bot)
 {
     // TODO async
     Delay();
     while (true)
     {
         var card = bot.GetMove(ctx.State);
         if (ctx.TryPlayCard(nextTurn, card))
         {
             break;
         }
     }
 }
Beispiel #2
0
 public bool TryPlayCard(int playerIndex, int cardIndex) => GameContext.TryPlayCard(playerIndex, cardIndex);