JP's Blog

  • GitHub * Flickr * Resume
  • Reviews
  • Programming
  • Home Automation
  • Photography
  • Maker
  • Writing
  • Research
  • Search
  • RSS

AoC 2024 Day 15: Sokobaninator

2024-12-15

Source: Day 15: Warehouse Woes

Full solution for today (spoilers!).

  • Source: Day 15: Warehouse Woes
  • Part 1
  • Part 2
  • WIIIIIIIIDER
  • Benchmarks

Part 1

Given a warehouse containing floors (.), walls (#), boxes (O), and the player (@) plus a series of instructions ^V<>, move the player according to the instructions, pushing boxes (which in turn can push more boxes).

Calculate the sum of y * 100 + x for each box’s final position.

read more...

  • All posts: By Date
  • All posts: By Tag
  • RSS: All
  • RSS: programming/topics

All posts unless otherwise mentioned are licensed under Creative Commons License

Any source code unless otherwise mentioned is licensed under the 3 clause BSD license