MAINT: Apply pre-commit

Remove byte-order-marker pre-commit check as there would be
many adjustments necessary
This commit is contained in:
Martin Thoma
2022-03-05 09:29:23 +01:00
parent f5e33ae38f
commit e64fb6795c
536 changed files with 6267 additions and 5556 deletions

View File

@@ -1,8 +1,8 @@
using System;
using System.Collections.Generic;
namespace Amazing
{
using System;
using System.Collections.Generic;
namespace Amazing
{
class AmazingGame
{
private const int FIRST_COL = 0;
@@ -35,9 +35,9 @@ namespace Amazing
}
public void Play()
{
Console.WriteLine(Tab(28) + "AMAZING PROGRAM");
Console.WriteLine(Tab(15) + "CREATIVE COMPUTING MORRISTOWN, NEW JERSEY");
{
Console.WriteLine(Tab(28) + "AMAZING PROGRAM");
Console.WriteLine(Tab(15) + "CREATIVE COMPUTING MORRISTOWN, NEW JERSEY");
Console.WriteLine();
int width = 0;
@@ -113,25 +113,25 @@ namespace Amazing
{
if (i == enterCol) Console.Write(". ");
else Console.Write(".--");
}
Console.WriteLine(".");
}
Console.WriteLine(".");
for (int i = 0; i < grid.Length; i++)
{
{
Console.Write("I");
for (int j = 0; j < grid.Width; j++)
{
if (grid.Cells[i,j].ExitType == EXIT_UNSET || grid.Cells[i, j].ExitType == EXIT_DOWN)
Console.Write(" I");
else Console.Write(" ");
}
Console.WriteLine();
}
Console.WriteLine();
for (int j = 0; j < grid.Width; j++)
{
if (grid.Cells[i,j].ExitType == EXIT_UNSET || grid.Cells[i, j].ExitType == EXIT_RIGHT)
Console.Write(":--");
else Console.Write(": ");
}
}
Console.WriteLine(".");
}
}
@@ -164,7 +164,7 @@ namespace Amazing
}
private String DisplayTextAndGetInput(String text)
{
{
Console.WriteLine(text);
return Console.ReadLine();
}
@@ -308,13 +308,13 @@ namespace Amazing
return newCell;
}
}
}
class Program
{
static void Main(string[] args)
}
class Program
{
static void Main(string[] args)
{
new AmazingGame().Play();
}
}
}
new AmazingGame().Play();
}
}
}