For Advent of Code 2023 Day 14, I'm given a grid with rocks that roll around as I tilt the grid in different directions. The rocks roll to the end of the barrier, another rock, or some other rocks that don't move. In part one, I will tilt once and make a calculation based on the position of the rocks. In part 2, I will tilt four billion times. I'll have to find a cycle and use math to get the correct state.
Code 2023 AOC: https://gitlab.com/0xdf/aoc2023
Challenge Link: https://adventofcode.com/2023/day/14
☕ Buy Me A Coffee: https://www.buymeacoffee.com/0xdf
[00:00] Part 1 description
[01:40] Input analysis
[02:30] rotate_count_clockwise / print_grid
[08:23] Converting to class
[11:11] tilt_north
[16:38] total_load
[19:10] Solve part 1
[19:32] Refactor total_load
[21:42] Description of struggles
[22:08] Part 2 description
[23:23] Description of bugs
[23:49] Create second Grid
[24:54] tilt_cycle
[26:06] testing title_cycle
[27:07] tile_cycles
[29:05] Math to get state
[32:50] Running 1000000000 times
[33:39] Solving part 2
[24:04] Summary
#adventofcode #python
Watch video Day 14: Parabolic Reflector Dish [AOC2023 Python] online without registration, duration hours minute second in high quality. This video was added by user 0xdf 14 December 2023, don't forget to share it with your friends and acquaintances, it has been viewed on our site 16 once and liked it people.