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