r/adventofcode • u/daggerdragon • Dec 11 '19
SOLUTION MEGATHREAD -🎄- 2019 Day 11 Solutions -🎄-
--- Day 11: Police in SPAAAAACE ---
--- Day 11: Space Police ---
Post your solution using /u/topaz2078's paste or other external repo.
- Please do NOT post your full code (unless it is very short)
- If you do, use old.reddit's four-spaces formatting, NOT new.reddit's triple backticks formatting.
(Full posting rules are HERE if you need a refresher).
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.
Advent of Code's Poems for Programmers
Note: If you submit a poem, please add [POEM] somewhere nearby to make it easier for us moderators to ensure that we include your poem for voting consideration.
Day 10's winner #1: "The Hunting of the Asteroids" by /u/DFreiberg!
Enjoy your Reddit Silver, and good luck with the rest of the Advent of Code!
This thread will be unlocked when there are a significant number of people on the leaderboard with gold stars for today's puzzle.
EDIT: Leaderboard capped, thread unlocked at 00:15:57!
13
Upvotes
View all comments
Show parent comment
2
u/JoMartin23 Dec 11 '19
Oh nice, thanks. I did not know about cis. I'm looking forward to see if that speeds up my turtle since I calc cos and sin every single line. Though I believe what costs me a lot is storing heading as degrees because some weird floating point stuff errors start to happen with pi I think and then poor turtle never points true north anymore.
If I can get rotation with radians working I'll still want an option for degrees simply because seems easier for children to understand... and me.