Giter VIP home page Giter VIP logo

advent-of-code's Introduction

πŸŽ„πŸŽπŸŽ„πŸŽπŸŽ„πŸŽπŸŽ„πŸŽπŸŽ„πŸŽπŸŽ„πŸŽπŸŽ„πŸŽπŸŽ„πŸŽπŸŽ„πŸŽπŸŽ„πŸŽπŸŽ„πŸŽπŸŽ„πŸŽπŸŽ„πŸŽπŸŽ„πŸŽπŸŽ„πŸŽπŸŽ„πŸŽπŸŽ„πŸŽπŸŽ„πŸŽπŸŽ„πŸŽπŸŽ„πŸŽπŸŽ„ logo

πŸŽ„πŸŽπŸŽ„πŸŽπŸŽ„πŸŽπŸŽ„πŸŽπŸŽ„πŸŽπŸŽ„πŸŽπŸŽ„πŸŽπŸŽ„πŸŽπŸŽ„πŸŽπŸŽ„πŸŽπŸŽ„πŸŽπŸŽ„πŸŽπŸŽ„πŸŽπŸŽ„πŸŽπŸŽ„πŸŽπŸŽ„πŸŽπŸŽ„πŸŽπŸŽ„πŸŽπŸŽ„πŸŽπŸŽ„πŸŽπŸŽ„

Advent of Code Solutions by Domen GabrovΕ‘ek

Overview

This repository contains my personal solutions for the Advent of Code, an annual set of Christmas-themed programming challenges. Each folder within this repository corresponds to a different year, with subfolders for each day's challenge.

Yearly Progress Overview

This table provides a quick glance at my journey through the Advent of Code over the years, highlighting the number of challenges completed each year.

/ 2022 Badge 2021 Badge
2020 Badge 2019 Badge 2018 Badge
2017 Badge 2016 Badge 2015 Badge

Usage

This repository contains solutions for the Advent of Code challenges, written in JavaScript/TypeScript. To get started, you'll need Node.js installed on your system as we heavily rely on it for running scripts and managing dependencies.

Setting Up and Running Solutions

// Install dependencies
~ npm install

// Initialize a template source file for the specified year
~ npm run setup [year] // e.g., npm run setup 2023

// Run the solution for a specific year and day
~ npm run start [year] [day] // e.g., npm run start 2022 1

Automated Data Fetching

The inputs and instructions for each challenge are automatically fetched from the Advent of Code (AoC) API. This streamlines the process, allowing you to focus on solving the puzzles without the hassle of manual data handling.

Configuration: .env File

Before running the solutions, you need to create a .env file in the root directory. This file should contain your AoC session token, which is necessary for fetching challenge data from the AoC API.

Example of .env file content:

TOKEN=your_aoc_session_token_here

You can obtain your AoC session token by inspecting your browser cookies while logged into the AoC website. This token is essential for accessing the AoC API and retrieving puzzle inputs.

advent-of-code's People

Contributors

domengabrovsek avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.