2021 Day 13 Complete!

This commit is contained in:
2021-12-13 07:21:35 -06:00
parent 00f1bff786
commit 8d22b9a32a
4 changed files with 1035 additions and 0 deletions

View File

@@ -39,6 +39,12 @@ func (m *CoordByteMap) Opt(pos Coordinate, def byte) byte {
func (m *CoordByteMap) Put(pos Coordinate, val byte) {
m.Field[pos] = val
if pos.X+1 > m.Width {
m.Width = pos.X + 1
}
if pos.Y+1 > m.Height {
m.Height = pos.Y + 1
}
}
func (m CoordByteMap) String() string {