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"); }
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(); } }