Example #1
0
 public static void GameContext_NewFlop(DecisionMakingContext dmContext, Board board, HoleCards heroHoleCards)
 {
     GameContext_NewFlop(dmContext.GC,
                         board.Flop[0].ToString(),
                         board.Flop[1].ToString(),
                         board.Flop[2].ToString(),
                         (heroHoleCards != null) ? heroHoleCards.ToString() : null);
 }
Example #2
0
        private static int AddToDataTmp(System.IO.StreamWriter file, HoleCards hand1, HoleCards hand2, float equity)
        {
            int total = 0;

            if (!(_data[hand1.ToInt()][hand2.ToInt()] > 0))
            {
                _data[hand1.ToInt()][hand2.ToInt()] = equity;
                file.WriteLine(hand1.ToString() + ":" + hand2.ToString() + "=" + (equity * 100).ToString("f2"));
                total++;
            }

            return(total);
        }