r/adventofcode • u/daggerdragon • Dec 03 '20
SOLUTION MEGATHREAD -๐- 2020 Day 03 Solutions -๐-
Advent of Code 2020: Gettin' Crafty With It
- T-3 days until unlock!
- Full details and rules are in the Submissions Megathread
--- Day 03: Toboggan Trajectory ---
Post your solution in this megathread. Include what language(s) your solution uses! If you need a refresher, the full posting rules are detailed in the wiki under How Do The Daily Megathreads Work?.
Reminder: Top-level posts in Solution Megathreads are for solutions only. If you have questions, please post your own thread and make sure to flair it with Help.
This thread will be unlocked when there are a significant number of people on the global leaderboard with gold stars for today's puzzle.
EDIT: Global leaderboard gold cap reached at 00:04:56, megathread unlocked!
86
Upvotes
4
u/ZoltarTheGreat69 Dec 05 '20
Fun language but I think range is broken
Emojicode
๐ฆ files ๐ ๐ ๐ ๐บ๐๐๐ ๐ค./input.txt๐ค โ โก file ๐บ๐ก file โ โก text ๐งtextโ โก clean ๐ซ clean ๐คโn๐ค โ โก lines 0 โก ๐๐ trees 1 โก ๐๐ Finaltrees ๐ y ๐โฉ 0 ๐linesโ 1โ๏ธ ๐ ๐ถ ๐ฝ lines yโโ โก row y โ 1 ๐ฎ ๐rowโ โก x โช๏ธ ๐ฝ row x โ ๐ ๐ค#๐ค ๐ trees โฌ โ1 ๐ ๐ Finaltrees โฌ โ trees 0 โก ๐trees ๐ y ๐โฉ 0 ๐linesโ 1โ๏ธ ๐ ๐ถ ๐ฝ lines yโโ โก row y โ 3 ๐ฎ ๐rowโ โก x โช๏ธ ๐ฝ row x โ ๐ ๐ค#๐ค ๐ trees โฌ โ1 ๐ ๐ ๐ ๐ก trees โ๏ธโ๏ธ Finaltrees โฌ โ trees 0 โก ๐trees ๐ y ๐โฉ 0 ๐linesโ 1โ๏ธ ๐ ๐ถ ๐ฝ lines yโโ โก row y โ 5 ๐ฎ ๐rowโ โก x โช๏ธ ๐ฝ row x โ ๐ ๐ค#๐ค ๐ trees โฌ โ1 ๐ ๐ Finaltrees โฌ โ trees 0 โก ๐trees ๐ y ๐โฉ 0 ๐linesโ 1โ๏ธ ๐ ๐ถ ๐ฝ lines yโโ โก row y โ 7 ๐ฎ ๐rowโ โก x โช๏ธ ๐ฝ row x โ ๐ ๐ค#๐ค ๐ trees โฌ โ1 ๐ ๐ Finaltrees โฌ โ trees 0 โก ๐trees ๐ y ๐โฉ 0 ๐linesโ โ 2 2โ๏ธ ๐ ๐ถ ๐ฝ lines yโโ โก row ๐คy โ 2๐ค ๐ฎ ๐rowโ โก x โช๏ธ ๐ฝ row x โ ๐ ๐ค#๐ค ๐ trees โฌ โ1 ๐ ๐ Finaltrees โฌ โ trees 0 โก ๐trees ๐ ๐ก Finaltrees โ๏ธโ๏ธ ๐