adventofcode2023

Contents:

  • Automatic documentation
  • Continuous Integration
  • adventofcode2023
    • day01 package
    • day02 package
    • day03 package
    • day04 package
    • day05 package
    • day06 package
    • day07 package
    • day08 package
    • day09 package
    • day10 package
    • day11 package
    • day12 package
    • day13 package
    • day14 package
    • day15 package
    • day16 package
    • day17 package
      • Subpackages
        • day17.lib package
        • day17.tests package
      • Submodules
      • day17.day17 module
        • main()
        • part1()
        • part2()
        • solve_and_print()
      • Module contents
    • day18 package
    • day19 package
    • day20 package
    • day21 package
    • day22 package
    • day23 package
    • day24 package
    • day25 package
    • download_inputs module
    • maker module
adventofcode2023
  • adventofcode2023
  • day17 package
  • View page source

day17 package

Subpackages

  • day17.lib package
    • Submodules
    • day17.lib.classes module
      • SolutionCache
        • SolutionCache.add_solution()
        • SolutionCache.cache
      • Step
        • Step.col
        • Step.consecutive_steps
        • Step.direction
        • Step.row
        • Step.src_step
        • Step.total_cost
      • TileCache
        • TileCache.cache
        • TileCache.cache_max
        • TileCache.cache_min
      • WorldPart1
        • WorldPart1.costs
        • WorldPart1.create_step()
        • WorldPart1.is_oob()
        • WorldPart1.num_cols
        • WorldPart1.num_rows
        • WorldPart1.solve()
      • WorldPart2
        • WorldPart2.create_step()
        • WorldPart2.solve()
    • day17.lib.direction module
      • Direction
        • Direction.EAST
        • Direction.NORTH
        • Direction.SOUTH
        • Direction.WEST
        • Direction.offset()
        • Direction.offset_list()
        • Direction.opposite()
    • day17.lib.parsers module
      • get_input()
    • Module contents
  • day17.tests package
    • Submodules
    • day17.tests.test_day17 module
      • test_parts()
    • day17.tests.test_direction module
      • test_direction()
    • day17.tests.test_parsers module
      • test_parser()
    • Module contents

Submodules

day17.day17 module

day17 solution.

day17.day17.main() → None[source]

Load input and run part1/part2.

day17.day17.part1(input: list[list[int]]) → int[source]

Load input and solve part1.

(minimum path, max 3 in one direction)

day17.day17.part2(input: list[list[int]]) → int[source]

Load input and solve part2.

(minimum path, min 4, max 10 in one direction)

day17.day17.solve_and_print(world: WorldPart1) → int[source]

Solve and print.

Module contents

Day17 Solution.

Previous Next

© Copyright 2023, Alex Ong.

Built with Sphinx using a theme provided by Read the Docs.