public static void SaveTextImageOfGameState(GameState gameState, string perTickFileFormat, string currentFileFormat) { try { string[] textViewOfBoard = BoardHelper.GenerateTextImageOfBoard(gameState); string filePath = DebugHelper.GenerateFilePath(perTickFileFormat); System.IO.File.WriteAllLines(filePath, textViewOfBoard); filePath = DebugHelper.GenerateFilePath(currentFileFormat); System.IO.File.WriteAllLines(filePath, textViewOfBoard); } catch { // swallow any exceptions... } }