start day 17
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Ben Harris 2020-12-17 00:15:59 -05:00
parent 85f34fbd3a
commit e8e180a148
Signed by: ben
GPG Key ID: 4E0AF802FFF7960C
3 changed files with 45 additions and 0 deletions

View File

@ -24,6 +24,7 @@ namespace aoc2020.test
[DataRow(typeof(Day14), "17481577045893", "4160009892257")]
[DataRow(typeof(Day15), "257", "8546398")]
[DataRow(typeof(Day16), "19093", "5311123569883")]
[DataRow(typeof(Day17), "", "")]
public void CheckAllDays(Type dayType, string part1, string part2)
{
// create day instance

36
aoc2020/Day17.cs Normal file
View File

@ -0,0 +1,36 @@
using System.Linq;
namespace aoc2020
{
/// <summary>
/// Day 17: <see href="https://adventofcode.com/2020/day/17" />
/// </summary>
public sealed class Day17 : Day
{
private char[,,] space;
public Day17() : base(17, "Conway Cubes")
{
space = new char[100, 100, 100];
var input = Input.ToList();
for (var y = 0; y < input.Count; y++)
{
var l = input[y].ToCharArray();
for (var x = 0; x < l.Length; x++)
{
space[x, y, 0] = l[x];
}
}
}
public override string Part1()
{
return "";
}
public override string Part2()
{
return "";
}
}
}

8
aoc2020/input/day17.in Normal file
View File

@ -0,0 +1,8 @@
...#...#
#######.
....###.
.#..#...
#.#.....
.##.....
#.####..
#....##.