private void GetGuess(GameEventHub ctx, PlayerIndex nextTurn, IInvokablePlayer bot) { // TODO async Delay(); while (true) { var count = bot.GetGuess(ctx.State); if (ctx.TryGiveGuess(nextTurn, count)) { break; } } }
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; } } }
protected Player(PlayerInfo info, IInvokablePlayer invokable) { Info = info; Invocable = invokable; }