public static IndentedTextWriter GetDebugLogWriterForIteration(PlayerAction[] playerActions, int gameCount) { string fileName = GetFileNameForType(playerActions, gameCount, "DebugLog"); if (fileName == null) return null; return new IndentedTextWriter(new System.IO.StreamWriter(fileName)); }