Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rolandtritsch/scala-aoc-2017
Doing the Advent of Code - 2017
https://github.com/rolandtritsch/scala-aoc-2017
advent advent-of-code advent-of-code-2017 adventofcode aoc2017 jvm sbt scala scala-native scalacheck scalameter scalatest
Last synced: about 19 hours ago
JSON representation
Doing the Advent of Code - 2017
- Host: GitHub
- URL: https://github.com/rolandtritsch/scala-aoc-2017
- Owner: rolandtritsch
- Created: 2017-12-01T11:03:17.000Z (about 7 years ago)
- Default Branch: trunk
- Last Pushed: 2022-02-15T15:43:48.000Z (almost 3 years ago)
- Last Synced: 2024-04-16T12:19:40.886Z (10 months ago)
- Topics: advent, advent-of-code, advent-of-code-2017, adventofcode, aoc2017, jvm, sbt, scala, scala-native, scalacheck, scalameter, scalatest
- Language: Scala
- Size: 70.3 MB
- Stars: 8
- Watchers: 3
- Forks: 0
- Open Issues: 15
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
![Build Status](https://travis-ci.org/rolandtritsch/scala-aoc-2017.svg?branch=master) [![GitHub issues](https://img.shields.io/github/issues/rolandtritsch/scala-aoc-2017.svg)](https://github.com/rolandtritsch/scala-aoc-2017/issues)
# [Advent of Code](https://adventofcode.com) - 2017 (Scala Edition)
Note: There are implementations of this in [Scala](https://github.com/rolandtritsch/scala-aoc-2017) (JVM and native), [Kotlin](https://github.com/rolandtritsch/kotlin-aoc-2017), [Haskell](https://github.com/rolandtritsch/haskell-aoc-2017) and [Eta](https://github.com/rolandtritsch/eta-aoc-2017). If you like any of these ... star it :).
This is a JVM/Native crossproject. To make this work you need to ...
* install git (`brew install git`)
* install sbt (`brew install sbt`)
* clone the repo (`git clone ...`)
* run the tests (`sbt aocJVM/test`)
* this will run all tests and this might take a while
* you can run specific tests with `sbt "aocJVM/testOnly aoc.Day01Spec"`
* you can run `sbt "aocJVM/testOnly aoc.Day*Spec -- -l aoc.SlowTest"` to only run the *fast* tests (exclude the slow tests)
* you can run `sbt "aocJVM/testOnly aoc.Day*Spec -- -n aoc.SolutionTest"` to only run the tests that will test for the correct solutions
* run the JVM main (`sbt aocJVM/run`)
* run the Native main (`sbt aocNative/run`)
* run a subset of the days (`sbt "aocJVM/run 1/1 5/2 18/1"`)
* generate the [doc](http://www.tritsch.org/scala-aoc-2017) (`sbt doc`) and look at it (`open target/scala-2.10/api/index.html`)Note: To [make Scala Native work](http://www.scala-native.org/en/latest/user/setup.html) you probably need to install a couple more packages.
Have fun!!!
Note: An older version also had ScalaCheck tests and ScalaMeter tests (that do not work anymore).