summary refs log tree commit diff homepage
path: root/2017/input/day10.txt
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2019-12-12 00:50:59 -0500
committerJune McEnroe <june@causal.agency>2020-11-22 00:14:26 -0500
commita5332be91a0aa565aedce2053f5bbc68dd470dbd (patch)
tree3ca8fc2af80bbbd164388e703ff8ef47f21aaead /2017/input/day10.txt
parentSolve day 10 part 1 (diff)
downloadaoc-a5332be91a0aa565aedce2053f5bbc68dd470dbd.tar.gz
aoc-a5332be91a0aa565aedce2053f5bbc68dd470dbd.zip
Solve day 10 part 2
I'm so fucking frustrated with this one. I was stuck for hours trying to
sort the points by angle not realizing that (int)(angle(a) - angle(b))
would be 0 for all angles with differences smaller than 1. I also wanted
to do the sort by atan2(-y, x) - π/2 intuitively to get "up" be zero,
but I never got that to work.
Diffstat (limited to '2017/input/day10.txt')
0 files changed, 0 insertions, 0 deletions
d>June McEnroe 2019-07-12Move to www/text.causal.agencyJune McEnroe 2019-07-12Add new causal.agency with shotty shotsJune McEnroe 2019-07-12Use -s to infer terminal sizeJune McEnroe 2019-07-12Add DCH to shottyJune McEnroe This makes htop mostly work. Scrolling region still missing. 2019-07-12Support insert mode in shottyJune McEnroe This is how curses puts characters into the bottom-right cell of the terminal. 2019-07-11Don't do carriage return on line feedJune McEnroe 2019-07-11Interpret 256color-style SGRsJune McEnroe 2019-07-11Use inline style rather than <b>, <i>, <u>June McEnroe 2019-07-11Factor out clearJune McEnroe 2019-07-11Add bright option to shottyJune McEnroe 2019-07-11Output <b>, <i>, <u> in shottyJune McEnroe 2019-07-10Ignore SM and RMJune McEnroe 2019-07-09Add shotty man page and build itJune McEnroe 2019-07-09Add up -cJune McEnroe 2019-07-09Add options for default colors to shottyJune McEnroe 2019-07-08Use char literals consistentlyJune McEnroe