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; } } }
public bool TryPlayCard(int playerIndex, int cardIndex) => GameContext.TryPlayCard(playerIndex, cardIndex);