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