Example #1
0
        public IEnumerable <IConvertedPokerHand> RetrieveHandsFromFile(string fileName)
        {
            const int maxTriesToReadFile = 3;
            string    handHistories      = ReadHandHistoriesFrom(fileName, maxTriesToReadFile);

            if (string.IsNullOrEmpty(handHistories))
            {
                return(Enumerable.Empty <IConvertedPokerHand>());
            }

            return(_parser.RetrieveAndConvert(handHistories, fileName));
        }
Example #2
0
        public IEnumerable <IConvertedPokerHand> RetrieveHandsFromFile(string fileName)
        {
            string handHistories = ReadHandHistoriesFrom(fileName);

            return(_parser.RetrieveAndConvert(handHistories, fileName));
        }