Skip to content

DuDigital/dart_adventofcode_2023

This branch is 1 commit ahead of, 2 commits behind SimonErich/dart_adventofcode:main.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

author
Simon Auer
Dec 1, 2023
c0b092d Β· Dec 1, 2023

History

3 Commits
Dec 1, 2023
Dec 1, 2023
Dec 1, 2023
Dec 1, 2023
Dec 1, 2023
Dec 1, 2023
Dec 1, 2023
Dec 1, 2023
Dec 1, 2023

Repository files navigation

πŸŽ…πŸŽ„ AdventOfCode boilerplate πŸŽ„πŸŽ…

This dart boilerplate can be used to quickly get started with the adventofcode.com challenge.

Getting started

🍴 Fork this repo

The easiest way to get started is by forking this boilerplate and then working in your fork. :)

βš“ Get the session ID

To get started, you just have to get your session token by logging in to adventofcode and then get the session ID from "Developer Tools" (F12) -> "Application" -> "Cookies" -> "session" (copy the value) and insert it into the config/session.dart (copy/rename the lib/config/session.dart.example) file of this project.

πŸ“₯ Fetch content

With this done, you can now easily fetch the challenge inputs, that you need to solve the puzzles using fetchRemoteContent(String inputUrl).

  final inputContent = await fetchRemoteContent('https://adventofcode.com/2023/day/1/input');

πŸ† Create a challenge per day

Then just create a file per day with the naming convention lib/dart${NUMERIC_DAY}.dart and add your solution in the main method.

πŸ§ͺ Create a test

There are imaginary extra points for test implementations of your solutions of course. ;)

πŸ₯³ Have fun

Hope you enjoy it and let's share our solutions. :)

About

My dart 2023 adventofcode challenge

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dart 100.0%