Пример #1
0
        public void WriteData(OpponentData data)
        {
            StreamWriter sw = new StreamWriter(_filePath);

            sw.Write(data.ToString());
            sw.Close();
        }
Пример #2
0
        public List <List <Card> > FindOpponentRank(List <Card> Hand, List <Card> street, OpponentData playerData)
        {
            OutsCalculator      oc              = new OutsCalculator();
            VpipController      vpc             = new VpipController(playerData);
            List <List <Card> > playerOutsRange = new List <List <Card> >();

            List <List <Card> > vpipRange = vpc.GetRange();

            foreach (var element in vpipRange)
            {
                if (oc.CompareOuts(element, street) != 0)
                {
                    playerOutsRange.Add(element);
                }
            }

            return(playerOutsRange);
        }
Пример #3
0
 public DataController(string playerName)
 {
     _playerName = playerName;
     PlayerData  = LoadData();
 }