public override void StartGame(StartGameContext context)
 {
     var newEnemyName = context.PlayerNames.FirstOrDefault(n => n != this.Name);
     //this.CurrentName = "NimoaPlayer_" + Guid.NewGuid();
     base.StartGame(context);
     gamesCount++;
     startMoney = context.StartMoney;
     if (newEnemyName != this.enemyName)
     {
         this.enemyName = newEnemyName;
         enemyAlwaysAllIn = true;
         enemyAlwaysRise = true;
         enemyAlwaysCall = true;
         gamesCount = 1;
         this.enemyGuessesPerRound = new Dictionary<GameRoundType, List<EndGameState>>();
         this.enemyAccuracyPerRound = new Dictionary<GameRoundType, float>
         {
             [GameRoundType.PreFlop] = 0,
             [GameRoundType.Flop] = 0,
             [GameRoundType.Turn] = 0,
             [GameRoundType.River] = 0
         };
         this.enemyCardsPredictionHits = 0;
         this.enemyCardsPredictionMisses = 0;
         this.victories = 0;
         this.defeats = 0;
         betsForBlinds = new Dictionary<int, List<int>>();
         EnemyPredictions.MaxCallThreshold = .4f;
         EnemyPredictions.MinBetThreshold = .7f;
     }
 }
 public override void StartGame(StartGameContext context)
 {
     this.TimeOuts = 0;
     this.Crashes = 0;
     this.FirstCrash = null;
     ExecuteWithTimeLimit(TimeSpan.FromMilliseconds(50), () => base.StartGame(context));
 }
        //TODO : implement statistic
        public override void StartGame(StartGameContext context)
        {
            var opponentName = "";
            //this.opponentType = OpponentEvaluationType.Tornado;
            foreach (var name in context.PlayerNames)
            {
                if (name != this.Name)
                {
                    opponentName = name.Substring(0, 7);
                }
            }

            this.stats = new Statistic(opponentName);

            this.startMoney = context.StartMoney;
        }
示例#4
0
 public virtual void StartGame(StartGameContext context)
 {
 }
 public virtual void StartGame(StartGameContext context)
 {
 }
 public override void StartGame(StartGameContext context)
 {
     this.PlayerMoney = new InternalPlayerMoney(context.StartMoney);
     base.StartGame(context);
 }
示例#7
0
 /// <summary>
 /// Method used at the start of the game.
 /// </summary>
 /// <param name="context">The current context of the game.</param>
 public override void StartGame(StartGameContext context)
 {
     base.StartGame(context);
 }
 public override void StartGame(StartGameContext context)
 {
     base.StartGame(context);
     startMoney = context.StartMoney;
 }
 public override void StartGame(StartGameContext context)
 {
     this.Money = context.StartMoney;
     base.StartGame(context);
 }
 public override void StartGame(StartGameContext context)
 {
     //this.initialMoney = context.StartMoney;
     base.StartGame(context);
 }