Skip to content

mtib/aoc23

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Advent of Code 2023

in Kotlin!

Dependencies

How to run

  1. Place puzzle input in a file named day<num>.txt in src/main/resources.
  2. Run the main function in dev.mtib.aoc23.AoC.kt with the day number as argument.

or build the jar and run it:

gradle aocJar
java -jar app/build/libs/aoc.jar <day>

You can also move .env.example to .env and fill in your session cookie to automatically download the puzzle input. You may also be required to have openscad in the path.

Example Output

Running day 4

Part 1:
22488
Runtime: 1.6ms, σ: 2.3ms (297 runs)

Part 2:
7013204
Runtime: 1.0ms, σ: 0.6ms (500 runs)

(but more colorful)

Code

Days are implemented here: dev.mtib.aoc23.day.

About

Advent of Code 23 (in Kotlin)

Topics

Resources

Stars

Watchers

Forks

Contributors

Languages