Skip to content

Because I don't have enough to do as it is.

Notifications You must be signed in to change notification settings

chadxz/advent-of-code-2021

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Advent of Code 2021

         |                                                                       
        -+-                      ,--.                          ,--.             
         A             ,--,--. ,-|  |,--.  ,--.,---. ,--,--, ,-'  '-.           
        /=\           ' ,-.  |' .-. | \  `'  /| .-. :|      \'-.  .-'           
      i/ O \i         \ '-'  |\ `-' |  \    / \   --.|  ||  |  |  |             
      /=====\          `--`--' `---'    `--'   `----'`--''--'  `--'             
      /  i  \                 ,---.                                             
    i/ O * O \i        ,---. /  .-'                                             
    /=========\       | .-. ||  `-,                                             
    /  *   *  \       ' '-' '|  .-'                                             
  i/ O   i   O \i      `---' `--'     ,--.            ,---.   ,--.  ,---.  ,--. 
  /=============\      ,---. ,---.  ,-|  | ,---.     '.-.  \ /    \'.-.  \/   | 
  /  O   i   O  \     | .--'| .-. |' .-. || .-. :     .-' .'|  ()  |.-' .'`|  | 
i/ *   O   O   * \i   \ `--.' '-' '\ `-' |\   --.    /   '-. \    //   '-. |  | 
/=================\    `---' `---'  `---'  `----'    '-----'  `--' '-----' `--' 
       |___|                                                                     

There's no way I'm going to be able to do all the exercises, but I thought I'd use the opportunity to learn more about Bazel and Scala.

Setup

  • Install bazelisk. brew install bazelisk on mac.
  • bazel build //... in the top-level directory of the project

Running

bazel run //src/main/scala/dev/chadxz/adventofcode/sonarsweep

Using a REPL

❯ bazel build //:repl
❯ bazel-bin/repl
Welcome to Scala 2.13.6 (OpenJDK 64-Bit Server VM, Java 17.0.1).
Type in expressions for evaluation. Or try :help.

scala> 

Checking my answers

As an opportunity to learn from someone that knows more than me about Scala, I'm checking my answers against https://github.com/maneatingape/advent-of-code

About

Because I don't have enough to do as it is.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published