advent-of-code

Perserverance, or the lack thereof

git clone git://git.shimmy1996.com/advent-of-code.git

input.txt (7685B)

    1 forward 1
    2 down 6
    3 forward 8
    4 up 3
    5 down 1
    6 down 4
    7 down 7
    8 down 3
    9 down 6
   10 up 8
   11 down 3
   12 forward 8
   13 up 4
   14 forward 8
   15 up 5
   16 down 3
   17 up 2
   18 forward 3
   19 forward 1
   20 forward 1
   21 up 4
   22 down 6
   23 forward 5
   24 down 7
   25 down 1
   26 down 5
   27 down 6
   28 up 5
   29 down 2
   30 forward 7
   31 down 9
   32 forward 5
   33 up 6
   34 forward 2
   35 down 2
   36 down 2
   37 down 1
   38 forward 6
   39 forward 8
   40 up 5
   41 down 6
   42 down 7
   43 forward 5
   44 up 7
   45 down 9
   46 down 9
   47 down 3
   48 down 3
   49 forward 1
   50 down 2
   51 up 8
   52 down 1
   53 down 7
   54 down 4
   55 forward 6
   56 up 8
   57 up 8
   58 up 5
   59 up 4
   60 down 9
   61 forward 4
   62 down 3
   63 down 8
   64 up 8
   65 up 7
   66 down 3
   67 forward 2
   68 forward 3
   69 forward 4
   70 forward 9
   71 up 2
   72 forward 9
   73 up 5
   74 up 9
   75 down 9
   76 forward 2
   77 down 7
   78 down 2
   79 forward 7
   80 down 3
   81 down 9
   82 down 8
   83 up 3
   84 up 4
   85 down 8
   86 down 8
   87 up 7
   88 up 7
   89 up 2
   90 up 9
   91 up 6
   92 forward 7
   93 forward 9
   94 forward 1
   95 up 9
   96 down 2
   97 forward 9
   98 down 6
   99 forward 6
  100 down 5
  101 up 2
  102 forward 5
  103 forward 2
  104 down 6
  105 down 3
  106 forward 4
  107 up 9
  108 down 8
  109 down 1
  110 down 9
  111 down 2
  112 down 5
  113 forward 6
  114 forward 2
  115 forward 4
  116 down 5
  117 down 8
  118 forward 2
  119 forward 1
  120 forward 3
  121 forward 4
  122 up 4
  123 forward 7
  124 down 4
  125 up 1
  126 up 2
  127 down 5
  128 down 7
  129 up 3
  130 forward 6
  131 up 2
  132 down 1
  133 down 4
  134 down 3
  135 forward 8
  136 forward 4
  137 down 7
  138 up 8
  139 down 8
  140 down 1
  141 forward 9
  142 down 3
  143 forward 1
  144 down 2
  145 up 4
  146 down 4
  147 down 5
  148 up 3
  149 up 1
  150 up 2
  151 forward 7
  152 forward 4
  153 forward 3
  154 down 4
  155 forward 7
  156 forward 7
  157 forward 8
  158 forward 9
  159 down 7
  160 forward 9
  161 forward 8
  162 up 2
  163 up 9
  164 forward 3
  165 forward 1
  166 down 3
  167 forward 3
  168 up 7
  169 up 1
  170 forward 4
  171 down 1
  172 up 9
  173 up 2
  174 down 9
  175 forward 4
  176 forward 7
  177 down 2
  178 forward 7
  179 forward 6
  180 up 7
  181 forward 8
  182 up 7
  183 up 2
  184 down 8
  185 down 6
  186 down 6
  187 forward 7
  188 down 8
  189 down 1
  190 forward 3
  191 down 1
  192 down 9
  193 forward 5
  194 up 1
  195 forward 6
  196 up 8
  197 down 1
  198 forward 4
  199 forward 6
  200 up 4
  201 up 8
  202 forward 5
  203 forward 4
  204 forward 7
  205 down 2
  206 up 6
  207 forward 7
  208 forward 1
  209 forward 5
  210 down 6
  211 forward 3
  212 forward 4
  213 forward 2
  214 forward 8
  215 down 5
  216 forward 2
  217 up 3
  218 forward 2
  219 forward 4
  220 up 2
  221 down 5
  222 down 5
  223 forward 4
  224 forward 1
  225 down 1
  226 up 9
  227 forward 4
  228 forward 9
  229 up 4
  230 up 4
  231 forward 6
  232 down 6
  233 forward 6
  234 forward 7
  235 down 2
  236 forward 8
  237 forward 6
  238 down 4
  239 down 3
  240 down 5
  241 down 5
  242 up 2
  243 down 6
  244 up 5
  245 up 4
  246 down 8
  247 down 7
  248 down 9
  249 down 7
  250 forward 5
  251 up 5
  252 forward 4
  253 forward 8
  254 down 4
  255 up 4
  256 up 7
  257 forward 8
  258 up 4
  259 up 2
  260 forward 6
  261 up 3
  262 down 1
  263 forward 6
  264 forward 3
  265 up 2
  266 forward 2
  267 forward 8
  268 forward 8
  269 forward 2
  270 down 9
  271 down 4
  272 forward 8
  273 forward 9
  274 down 3
  275 forward 5
  276 up 7
  277 down 6
  278 up 2
  279 up 6
  280 up 8
  281 forward 7
  282 down 1
  283 up 7
  284 down 7
  285 forward 1
  286 forward 5
  287 forward 4
  288 down 8
  289 forward 4
  290 down 8
  291 forward 1
  292 down 7
  293 down 8
  294 forward 1
  295 forward 2
  296 down 3
  297 down 3
  298 up 4
  299 forward 7
  300 down 2
  301 forward 9
  302 up 8
  303 down 1
  304 forward 5
  305 forward 6
  306 forward 5
  307 forward 3
  308 down 6
  309 down 1
  310 up 4
  311 down 9
  312 forward 8
  313 up 2
  314 down 5
  315 forward 1
  316 up 2
  317 down 8
  318 down 9
  319 forward 6
  320 up 8
  321 down 5
  322 down 5
  323 down 7
  324 up 6
  325 up 4
  326 up 3
  327 up 7
  328 up 3
  329 down 5
  330 forward 9
  331 up 6
  332 down 1
  333 down 8
  334 down 8
  335 forward 9
  336 forward 3
  337 forward 7
  338 forward 3
  339 forward 1
  340 up 7
  341 down 3
  342 down 6
  343 forward 8
  344 up 5
  345 forward 6
  346 down 6
  347 forward 3
  348 down 1
  349 up 8
  350 forward 5
  351 forward 9
  352 up 1
  353 up 1
  354 forward 9
  355 up 1
  356 forward 4
  357 forward 1
  358 forward 7
  359 down 6
  360 up 1
  361 forward 4
  362 up 7
  363 down 2
  364 down 1
  365 forward 2
  366 up 4
  367 forward 3
  368 down 4
  369 up 7
  370 down 9
  371 down 9
  372 forward 8
  373 down 4
  374 up 7
  375 down 4
  376 forward 2
  377 up 7
  378 forward 2
  379 forward 4
  380 down 5
  381 forward 4
  382 down 6
  383 forward 9
  384 forward 1
  385 forward 5
  386 forward 7
  387 up 5
  388 down 9
  389 down 5
  390 down 5
  391 up 7
  392 forward 7
  393 forward 6
  394 up 7
  395 forward 8
  396 up 2
  397 forward 5
  398 down 9
  399 up 3
  400 down 5
  401 forward 4
  402 down 7
  403 up 8
  404 up 8
  405 down 3
  406 down 2
  407 down 7
  408 down 9
  409 forward 6
  410 forward 9
  411 forward 9
  412 forward 2
  413 down 2
  414 forward 4
  415 forward 7
  416 up 2
  417 up 5
  418 forward 8
  419 down 1
  420 down 1
  421 down 9
  422 down 2
  423 forward 1
  424 up 5
  425 forward 6
  426 down 1
  427 forward 8
  428 up 2
  429 up 4
  430 down 3
  431 forward 6
  432 forward 3
  433 down 4
  434 forward 9
  435 down 6
  436 down 9
  437 up 2
  438 down 4
  439 down 6
  440 forward 3
  441 up 4
  442 down 4
  443 up 9
  444 forward 4
  445 forward 9
  446 forward 2
  447 forward 8
  448 down 9
  449 up 5
  450 forward 8
  451 down 1
  452 forward 8
  453 up 1
  454 down 1
  455 forward 7
  456 up 6
  457 down 2
  458 up 1
  459 down 8
  460 down 4
  461 forward 3
  462 down 3
  463 forward 6
  464 forward 1
  465 forward 9
  466 down 5
  467 down 9
  468 down 6
  469 down 2
  470 forward 4
  471 down 6
  472 down 5
  473 up 3
  474 up 1
  475 down 8
  476 forward 7
  477 forward 5
  478 down 8
  479 down 4
  480 down 2
  481 forward 5
  482 forward 2
  483 forward 5
  484 down 5
  485 forward 7
  486 down 9
  487 down 1
  488 forward 2
  489 down 4
  490 down 1
  491 forward 6
  492 up 2
  493 up 6
  494 forward 7
  495 down 1
  496 up 5
  497 down 6
  498 forward 3
  499 up 3
  500 forward 5
  501 forward 5
  502 down 4
  503 forward 4
  504 down 8
  505 down 2
  506 up 3
  507 up 4
  508 down 9
  509 up 5
  510 down 6
  511 forward 6
  512 forward 6
  513 up 9
  514 up 2
  515 forward 3
  516 down 5
  517 down 9
  518 forward 2
  519 up 3
  520 forward 7
  521 forward 1
  522 up 9
  523 down 8
  524 up 9
  525 forward 4
  526 forward 4
  527 forward 8
  528 down 4
  529 down 2
  530 down 5
  531 down 7
  532 down 9
  533 up 2
  534 down 1
  535 forward 7
  536 down 4
  537 down 1
  538 forward 2
  539 down 3
  540 up 5
  541 up 1
  542 down 3
  543 down 4
  544 up 4
  545 down 7
  546 forward 6
  547 forward 3
  548 forward 4
  549 down 5
  550 up 3
  551 up 9
  552 forward 2
  553 down 8
  554 up 2
  555 down 7
  556 down 2
  557 up 3
  558 forward 5
  559 forward 7
  560 up 4
  561 down 3
  562 down 1
  563 forward 5
  564 forward 2
  565 up 3
  566 up 6
  567 forward 8
  568 down 5
  569 forward 5
  570 down 7
  571 down 5
  572 up 7
  573 down 8
  574 forward 5
  575 down 9
  576 up 5
  577 forward 8
  578 forward 6
  579 forward 7
  580 down 9
  581 up 9
  582 forward 3
  583 down 8
  584 forward 1
  585 forward 5
  586 forward 9
  587 down 9
  588 down 2
  589 down 6
  590 down 7
  591 forward 8
  592 down 6
  593 down 8
  594 up 8
  595 down 2
  596 forward 2
  597 up 5
  598 up 3
  599 down 1
  600 down 7
  601 down 6
  602 forward 4
  603 up 5
  604 forward 6
  605 up 8
  606 forward 3
  607 up 6
  608 forward 3
  609 down 5
  610 forward 8
  611 forward 8
  612 up 6
  613 forward 5
  614 down 4
  615 down 7
  616 down 5
  617 down 9
  618 forward 2
  619 forward 9
  620 down 9
  621 forward 8
  622 down 4
  623 forward 4
  624 forward 1
  625 down 8
  626 down 1
  627 down 9
  628 down 5
  629 forward 4
  630 up 6
  631 down 7
  632 down 1
  633 up 4
  634 down 4
  635 down 6
  636 down 4
  637 up 8
  638 down 2
  639 forward 1
  640 forward 4
  641 down 1
  642 down 1
  643 up 2
  644 forward 5
  645 up 5
  646 down 9
  647 forward 3
  648 down 3
  649 forward 6
  650 forward 4
  651 down 6
  652 forward 2
  653 up 7
  654 up 8
  655 up 2
  656 up 8
  657 up 8
  658 down 8
  659 forward 4
  660 down 1
  661 forward 2
  662 forward 9
  663 up 3
  664 down 2
  665 down 1
  666 up 4
  667 down 9
  668 down 6
  669 forward 9
  670 down 6
  671 down 8
  672 down 9
  673 forward 2
  674 up 7
  675 forward 1
  676 down 8
  677 down 7
  678 down 8
  679 up 3
  680 forward 3
  681 up 7
  682 forward 7
  683 down 9
  684 down 3
  685 down 2
  686 down 5
  687 forward 9
  688 up 1
  689 down 7
  690 forward 5
  691 forward 4
  692 forward 8
  693 up 6
  694 down 7
  695 forward 5
  696 up 5
  697 down 1
  698 forward 4
  699 forward 9
  700 down 2
  701 forward 8
  702 up 9
  703 down 8
  704 forward 8
  705 up 6
  706 forward 3
  707 forward 1
  708 up 5
  709 down 6
  710 forward 8
  711 up 7
  712 down 1
  713 down 7
  714 down 3
  715 forward 7
  716 down 9
  717 down 5
  718 down 2
  719 forward 2
  720 down 4
  721 down 1
  722 forward 8
  723 down 4
  724 up 1
  725 forward 4
  726 down 7
  727 forward 6
  728 down 5
  729 up 8
  730 forward 1
  731 forward 2
  732 up 5
  733 down 7
  734 forward 6
  735 down 7
  736 forward 6
  737 down 8
  738 down 2
  739 up 3
  740 down 6
  741 forward 1
  742 down 5
  743 down 8
  744 down 2
  745 forward 6
  746 up 4
  747 forward 4
  748 down 1
  749 forward 9
  750 forward 8
  751 forward 4
  752 forward 9
  753 down 8
  754 down 8
  755 up 1
  756 up 3
  757 down 8
  758 down 4
  759 forward 4
  760 down 6
  761 up 7
  762 down 8
  763 down 3
  764 down 2
  765 down 7
  766 down 5
  767 down 7
  768 forward 3
  769 down 6
  770 forward 6
  771 down 1
  772 forward 7
  773 down 9
  774 forward 2
  775 down 7
  776 forward 1
  777 up 9
  778 down 5
  779 up 6
  780 down 2
  781 up 4
  782 forward 5
  783 forward 2
  784 forward 6
  785 down 2
  786 forward 5
  787 down 3
  788 forward 6
  789 up 7
  790 up 5
  791 up 3
  792 up 5
  793 up 4
  794 down 8
  795 up 8
  796 forward 3
  797 down 2
  798 down 1
  799 forward 2
  800 down 8
  801 down 8
  802 down 1
  803 up 7
  804 down 1
  805 forward 6
  806 down 5
  807 forward 7
  808 up 3
  809 up 4
  810 forward 9
  811 down 3
  812 down 1
  813 down 6
  814 forward 1
  815 forward 6
  816 forward 2
  817 forward 5
  818 down 7
  819 down 5
  820 down 2
  821 forward 6
  822 down 7
  823 forward 2
  824 down 4
  825 down 8
  826 forward 2
  827 forward 2
  828 up 5
  829 forward 5
  830 down 5
  831 down 4
  832 up 7
  833 down 3
  834 forward 2
  835 down 7
  836 forward 2
  837 forward 5
  838 down 8
  839 up 3
  840 forward 4
  841 forward 4
  842 down 2
  843 down 9
  844 down 5
  845 forward 2
  846 forward 7
  847 down 7
  848 down 1
  849 down 5
  850 down 1
  851 down 4
  852 down 9
  853 down 2
  854 forward 9
  855 forward 8
  856 down 4
  857 forward 9
  858 down 9
  859 down 7
  860 down 6
  861 down 2
  862 forward 5
  863 down 4
  864 up 3
  865 forward 2
  866 up 5
  867 forward 7
  868 up 6
  869 forward 3
  870 forward 1
  871 forward 3
  872 down 7
  873 forward 8
  874 down 1
  875 forward 1
  876 forward 5
  877 forward 5
  878 up 4
  879 down 7
  880 down 8
  881 forward 4
  882 down 6
  883 forward 1
  884 forward 7
  885 down 5
  886 down 9
  887 forward 2
  888 down 3
  889 down 5
  890 forward 4
  891 forward 5
  892 forward 1
  893 down 1
  894 down 6
  895 down 9
  896 forward 1
  897 forward 1
  898 up 5
  899 forward 3
  900 up 3
  901 up 5
  902 down 2
  903 forward 6
  904 forward 3
  905 down 4
  906 up 3
  907 down 8
  908 down 4
  909 up 3
  910 down 7
  911 forward 7
  912 up 3
  913 down 3
  914 down 8
  915 down 4
  916 down 5
  917 down 3
  918 up 1
  919 forward 4
  920 forward 1
  921 down 5
  922 up 8
  923 up 9
  924 forward 1
  925 up 8
  926 down 3
  927 forward 8
  928 up 4
  929 forward 5
  930 forward 5
  931 up 1
  932 down 6
  933 down 2
  934 up 3
  935 up 7
  936 forward 7
  937 down 7
  938 up 9
  939 forward 2
  940 forward 8
  941 forward 2
  942 up 7
  943 forward 3
  944 down 8
  945 down 7
  946 forward 6
  947 down 9
  948 forward 4
  949 forward 9
  950 forward 2
  951 down 2
  952 down 6
  953 down 8
  954 forward 6
  955 down 5
  956 forward 7
  957 up 8
  958 down 6
  959 forward 5
  960 down 6
  961 forward 1
  962 forward 5
  963 forward 1
  964 up 9
  965 forward 3
  966 down 9
  967 down 7
  968 forward 3
  969 up 6
  970 down 9
  971 down 6
  972 down 9
  973 forward 3
  974 forward 5
  975 up 3
  976 up 9
  977 down 1
  978 down 8
  979 down 4
  980 forward 6
  981 down 9
  982 forward 4
  983 forward 3
  984 down 8
  985 forward 5
  986 forward 6
  987 forward 5
  988 forward 1
  989 forward 7
  990 forward 8
  991 down 4
  992 forward 9
  993 up 3
  994 down 3
  995 forward 6
  996 down 2
  997 forward 7
  998 down 2
  999 forward 8
 1000 forward 3