Update things
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
package be.vandewalleh.aoc.days
|
||||
|
||||
import be.vandewalleh.aoc.utils.input.Day
|
||||
import be.vandewalleh.aoc.utils.input.Input
|
||||
import be.vandewalleh.aoc.utils.input.Lines
|
||||
|
||||
private typealias Seats = Array<CharArray>
|
||||
@@ -25,9 +24,9 @@ private fun Seats.asGridString() = joinToString("\n") { it.joinToString("") }
|
||||
private fun Seats.countOccupied() = sumBy { it.count { it == '#' } }
|
||||
|
||||
@Day(11)
|
||||
class Day11(@Lines val input: Input<List<String>>) {
|
||||
class Day11(@Lines val input: List<String>) {
|
||||
|
||||
private val seats: Seats = input.value.map { it.toCharArray() }.toTypedArray()
|
||||
private val seats: Seats = input.map { it.toCharArray() }.toTypedArray()
|
||||
|
||||
private val directions = listOf(
|
||||
-1 to -1,
|
||||
|
||||
Reference in New Issue
Block a user