All Projects → scalacenter → scala-advent-of-code

scalacenter / scala-advent-of-code

Licence: Apache-2.0 license
Scala Center's solution of Advent of Code

Programming Languages

scala
5932 projects

Projects that are alternatives of or similar to scala-advent-of-code

aoc2021
Advent of Code 2021 - my answers
Stars: ✭ 25 (+4.17%)
Mutual labels:  advent-of-code-2021
advent-of-code
My Advent of Code Solutions - 350/350 Stars
Stars: ✭ 30 (+25%)
Mutual labels:  advent-of-code-2021
adventofcode-solver
🎄 Advent of Code (2015-2021) in JavaScript
Stars: ✭ 16 (-33.33%)
Mutual labels:  advent-of-code-2021
AdventOfCode-Java
adventOfCode(Language.JAVA);
Stars: ✭ 15 (-37.5%)
Mutual labels:  advent-of-code-2021
advent-of-code-2021
🎄 My Advent of Code solutions in Rust. http://adventofcode.com/2021
Stars: ✭ 173 (+620.83%)
Mutual labels:  advent-of-code-2021
AdventOfCode2021
My solutions to Advent of Code 2021
Stars: ✭ 15 (-37.5%)
Mutual labels:  advent-of-code-2021
adventofcode
🎄 Advent of Code (2015-2021) in C#
Stars: ✭ 114 (+375%)
Mutual labels:  advent-of-code-2021
AdventOfCode2021
Solutions to all 25 AoC 2021 problems in Rust 🦀 Less than 100 lines per day and under 1 second total execution time. With competitive global leaderboard placements! 🎄
Stars: ✭ 34 (+41.67%)
Mutual labels:  advent-of-code-2021
adventofcode-21
AdventOfCode 2021 solutions from the Devcord server
Stars: ✭ 12 (-50%)
Mutual labels:  advent-of-code-2021
awesome-adventjs
🎅🎄 A collection of awesome resources related to the adventJS challenge https://adventjs.dev by @midudev
Stars: ✭ 45 (+87.5%)
Mutual labels:  advent-of-code-2021
adventofcode
Advent of Code solutions 2015-2021
Stars: ✭ 95 (+295.83%)
Mutual labels:  advent-of-code-2021
AoCHelper
Helper .NET library for solving Advent of Code puzzles
Stars: ✭ 22 (-8.33%)
Mutual labels:  advent-of-code-2021

Scala Advent of Code 2021

Scala Center's solutions of Advent of Code.

Website

The Scala Advent of Code website contains:

  • some explanation of our solutions
  • more solutions from the community

Setup

We use Visual Studio Code with Metals to write Scala code, and scala-cli to compile and run it.

You can follow these steps to set up your environement.

How to open in Visual Studio Code

After you clone the repository, open a terminal and run:

$ cd scala-advent-of-code
$ scala-cli setup-ide src
$ code .

code . will open Visual Studio Code and start Metals.

How to run a solution

In a terminal you can run:

$ scala-cli src -M day1.part1
Compiling project (Scala 3.0.2, JVM)
Compiled project (Scala 3.0.2, JVM)
The solution is 1559

Or, to run another solution:

$ scala-cli src -M <dayX>.<partX>

By default the solution programs run on our input files which are stored in the input folder. To get your solutions you can change the content of those files in the input folder.

How to run day3

The solution of day 3 is written for the javascript target. You can run it locally, if you have Node.js installed, by adding the --js option:

$ scala-cli src --js -M day3.part1
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].