aoc2020/scripts/template.rktrkt

30 lines
476 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:49:57 +00:00
(define (part1 input)
;; ...
(void))
(define (part2 input)
;; ...
(void))
2020-12-12 06:07:11 +00:00
;; parse input file
(define (parse fname)
(define input (file->... fname))
(void input))
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
2020-12-12 06:07:11 +00:00
(define input (parse "inputs/@day"))
2020-12-02 08:49:57 +00:00
(answer @day 1 (part1 input))
(answer @day 2 (part2 input))
2020-12-01 21:33:57 +00:00
(displayln "meow"))