advent-23-racket/main.rkt

23 lines
397 B
Racket
Raw Normal View History

2023-12-03 00:25:35 +00:00
#lang racket
; import all days
(require "src/day01.rkt")
2023-12-03 00:32:58 +00:00
(define (run-all)
2024-10-26 19:34:43 +00:00
(printf "Running all solutions\n")
(printf (string-append "Day 1 part 1: " (advent-of-code-01-p1))))
2023-12-03 00:25:35 +00:00
(define argv (current-command-line-arguments))
(define argc (vector-length argv))
2023-12-03 00:25:35 +00:00
; If no arguments are provided, run all solutions from all days
; on the real inputs
2023-12-03 00:25:35 +00:00
(when (= argc 0)
(run-all)
(exit 1))
2023-12-03 00:25:35 +00:00