aoc2020/scripts/template.rktrkt

31 lines
438 B
Plaintext
Raw Normal View History

#lang curly-fn racket
2020-12-01 21:33:57 +00:00
2020-12-02 08:49:57 +00:00
(require "scripts/aoc.rkt")
2020-12-01 21:33:57 +00:00
;; solution for day @day
2020-12-02 08:02:58 +00:00
;; helper functions here
2020-12-02 08:49:57 +00:00
(define (part1 input)
;; ...
(void))
(define (part2 input)
;; ...
(void))
2020-12-02 08:02:58 +00:00
(module+ test
(require rackunit)
;; tests here
2020-12-02 08:49:57 +00:00
(displayln "no tests :("))
2020-12-02 08:02:58 +00:00
2020-12-01 21:33:57 +00:00
(module+ main
(define input (file->... "inputs/@day"))
;; part 1
2020-12-02 08:49:57 +00:00
(answer @day 1 (part1 input))
2020-12-01 21:33:57 +00:00
;; part 2
2020-12-02 08:49:57 +00:00
(answer @day 2 (part2 input))
2020-12-01 21:33:57 +00:00
(displayln "meow"))