コード例 #1
0
        private static void LogOpponentHand()
        {
            var zipped = OpponentHandAge.Zip(OpponentHandMarks.Select(mark => (char)mark),
                                             (age, mark) => string.Format("{0}{1}", (age == -1 ? " " : age.ToString()), mark));

            Logger.WriteLine("Opponent Hand after draw: " + string.Join(",", zipped), "Hearthstone");
        }
コード例 #2
0
 public static void OpponentMulligan(int pos)
 {
     OpponentHandCount--;
     OpponentDeckCount++;
     OpponentHandMarks[pos - 1] = CardMark.Mulliganed;
     if (OpponentHandCount < OpponentHandAge.Count(x => x != -1))
     {
         OpponentHandAge[OpponentHandCount] = -1;
         Logger.WriteLine(string.Format("Fixed hand ages after mulligan (removed {0})", OpponentHandCount), "Hearthstone");
         LogOpponentHand();
     }
 }