Make a ton of VS-recommended changes. Sure, why not.

This commit is contained in:
2020-12-22 13:04:55 -06:00
parent f420af35cc
commit 0a3fe365d0
17 changed files with 56 additions and 53 deletions

4
Q12.cs
View File

@ -18,7 +18,7 @@ namespace _2020
static Vec2 waypointPosition = new Vec2() { x = 10, y = 1 };
static int facingDir = 90;
static List<Tuple<char, int>> instructions = new List<Tuple<char, int>>();
static readonly List<Tuple<char, int>> instructions = new List<Tuple<char, int>>();
public static void Go()
{
@ -119,7 +119,7 @@ namespace _2020
}
else if (dir == 'L')
{
facingDir = (facingDir - amount);
facingDir -= amount;
while (facingDir < 0)
{
facingDir = 360 + facingDir;