ryan
8fe7e77b52
put packet in a inline module cuz why not
2023-10-31 10:08:20 -07:00
ryan
06f695b34c
tighten up day 13
...
List.compare is neat!
2023-10-31 09:45:04 -07:00
ryan
fa8970b0de
day 13, first parser combinator! thx angstrom <3
2023-10-30 15:37:45 -07:00
ryan
dfa2cf11a1
add Vec2.origin for (0,0)
2023-10-30 11:21:34 -07:00
ryan
8562bc8385
finished day 12, thx dijkstra !!
2023-10-23 19:49:18 -05:00
ryan
887d961d29
flatten array of array in grid implementation
...
makes the new find function much simpler to implement
2023-10-22 11:43:27 -05:00
ryan
31a75867fa
add expect tests
2023-10-09 14:14:13 -07:00
ryan
b6eae27d9d
get rid of executable
...
expect tests will make them kinda pointless
2023-10-09 14:14:06 -07:00
ryan
fe5cd3666f
move grid parse & iter into Vec2
2023-10-09 13:58:53 -07:00
ryan
250d978a38
solve day 11 :)
2023-10-08 19:10:12 -07:00
ryan
c93c273ffd
solve day 10
2023-10-07 12:58:57 -07:00
ryan
bf5d3c1656
clean up vec stuff
2023-10-07 12:58:50 -07:00
ryan
1ee3a5a3c5
solve day 9 :)
2023-10-05 15:56:02 -07:00
ryan
5e1c30637e
move vec2 into a new file & add a pretty printer
...
now it shows up properly in utop !!
2023-10-05 15:55:05 -07:00
ryan
239af2f93b
refactor day 8 a bit
2023-10-01 13:12:36 -07:00
ryan
7d6b43ba93
day 8 complete !
2023-10-01 01:55:36 -07:00
ryan
b7aabdedcb
dont let warnings fail the build >:(
2023-10-01 01:54:23 -07:00
ryan
3d2a2f2c4d
added comment & got rid of match%pcre
2023-09-30 23:20:47 -07:00
ryan
1fdb1ebc36
solved day 7 !!
2023-09-30 19:15:28 -07:00
ryan
666c81118f
update day5 to use terse array syntax
...
array.(index) <- some_value
2023-09-27 21:26:52 -07:00
ryan
45d735bac9
solved day 6 !
2023-09-25 11:31:59 -07:00
ryan
f31499ecda
solved day 5 !
2023-09-25 09:39:17 -07:00
ryan
c61676cf02
solved day 4 !
...
and updated main.ml lol
2023-09-22 16:59:03 -07:00
ryan
0a24022629
replace parse_line with CC map_same and take_drop
...
thank u https://doc.sherlocode.com
2023-09-22 15:54:11 -07:00
ryan
6a276c3c1b
solved day 3 !
2023-09-22 15:15:36 -07:00
ryan
661cdf1c95
add containers and remove jane streets stdio
2023-09-22 15:09:12 -07:00
ryan
d8a90a3ae5
better lines_of_input error
2023-09-21 21:56:32 -07:00
ryan
89eb0c7a27
use dune_site module to find inputs
...
this packages the inputs as part of the build and exposes the directory
to find them via a generated module. this way, inputs are a resource of
the library rather than an input.
this means that `dune exec aoc` and `dune utop` will always find the
file regardless of where they are invoked, which makes developing in
emacs simpler :)
2023-09-21 21:40:21 -07:00
ryan
e1402bc17d
made src a lib so that it loads into utop
...
also made an exe dir that does what `main.ml` used to do.
now `dune exec aoc` and `dune utop .` both do what they should :)
2023-09-21 20:05:48 -07:00
ryan
869858c00e
make the print functions into actual functions lol
2023-09-21 20:04:58 -07:00
ryan
dd0acc4ddb
rename bin to src and delete boring dirs
2023-09-21 19:06:02 -07:00
ryan
de277999f4
were multi-file now baybee
2023-09-21 19:03:04 -07:00
ryan
2eae917f47
init!
2023-09-21 18:17:39 -07:00