Git Product home page Git Product logo

advent_of_code_2023's Introduction

Advent of Code 2023 Solutions in Rust

This repository contains my personal solutions for the Advent of Code 2023 challenges, written in Rust. Advent of Code is an annual set of Christmas-themed programming puzzles that cover a variety of skill sets and challenge types.

Structure of the Repository

Each day's challenge is stored in a separate directory named day_xx where xx is the day number. Inside each directory, you will find:

  • Input data automatically fetched using a bash script.
  • My solution code in Rust.

Setup Script

I use a custom bash script to set up each day's challenge environment. This script:

  • Creates a new Rust project for the challenge.
  • Fetches the challenge input to input.txt from the Advent of Code website.

Note: To use this script, a sessionCookie file containing your Advent of Code session cookie must be present in the root directory.

Running the Code

To run a solution:

  1. Ensure you have Rust installed.
  2. Navigate to the challenge directory, e.g., cd day_01.
  3. Run the solution using cargo run.

To set up a new day's challenge:

  1. Run the setup script with the day number and part, e.g., ./setup.sh 1.
  2. Ensure you have the sessionCookie file in the root directory with your AoC session cookie.

advent_of_code_2023's People

Contributors

gaunah avatar

Stargazers

Lucas Hünniger 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.