Giter Club home page Giter Club logo

adventofcode-2020's Introduction

advent-of-code-2020

Advent of Code 2020 ๐ŸŽ„ Ruby Solutions by @Aquaj

Readme based on Adrienne Tacke's AoC solutions repository.

MIT license

What is Advent of Code?

Advent of Code is an online event created by Eric Wastl. Each year, starting on Dec 1st, an advent calendar of small programming puzzles are unlocked once a day at midnight (EST/UTC-5). Developers of all skill sets are encouraged to solve them in any programming language they choose!

Advent of Code 2020 Story

After saving Christmas five years in a row, you've decided to take a
vacation at a nice resort on a tropical island. Surely, Christmas will go
on without you.

The tropical island has its own currency and is entirely cash-only. The
gold coins used there have a little picture of a starfish; the locals just
call them stars. None of the currency exchanges seem to have heard of them,
but somehow, you'll need to find fifty of these coins by the time you
arrive so you can pay the deposit on your room.

To save your vacation, you need to get all fifty stars by December 25th.

Collect stars by solving puzzles. Two puzzles will be made available on
each day in the Advent calendar; the second puzzle is unlocked when you
complete the first. Each puzzle grants one star. Good luck!

Context

Done during Le Wagon Bordeaux's BICODE challenge

These were not written as example of clean or efficient code but are simply my attempts at finding the answers to each day's puzzle as quickly as possible. Performance logging was added simply as a fun way to compare implementations with other BICODE competitors.

Days 1 through 11 included were done in one sitting during the night from the 10th to the 11th, other puzzles were done each day at publishing time.

Puzzles

Day Part One Part Two Solutions
โœ” Day 1: Report Repair ๐ŸŒŸ ๐ŸŒŸ Solution
โœ” Day 2: Password Philosophy ๐ŸŒŸ ๐ŸŒŸ Solution
โœ” Day 3: Toboggan Trajectory ๐ŸŒŸ ๐ŸŒŸ Solution
โœ” Day 4: Passport Processing ๐ŸŒŸ ๐ŸŒŸ Solution
โœ” Day 5: Binary Boarding ๐ŸŒŸ ๐ŸŒŸ Solution
โœ” Day 6: Custom Customs ๐ŸŒŸ ๐ŸŒŸ Solution
โœ” Day 7: Handy Haversacks ๐ŸŒŸ ๐ŸŒŸ Solution
โœ” Day 8: Handheld Halting ๐ŸŒŸ ๐ŸŒŸ Solution
โœ” Day 9: Encoding Error ๐ŸŒŸ ๐ŸŒŸ Solution
โœ” Day 10: Adapter Array ๐ŸŒŸ ๐ŸŒŸ Solution
โœ” Day 11: Seating System ๐ŸŒŸ ๐ŸŒŸ Solution
โœ” Day 12: Rain Risk ๐ŸŒŸ ๐ŸŒŸ Solution
โœ” Day 13: Shuttle Search ๐ŸŒŸ ๐ŸŒŸ Solution
โœ” Day 14: Docking Data ๐ŸŒŸ ๐ŸŒŸ Solution
โœ” Day 15: Rambunctious Recitation ๐ŸŒŸ ๐ŸŒŸ Solution
โœ” Day 16: Ticket Translation ๐ŸŒŸ ๐ŸŒŸ Solution
โœ” Day 17: Conway Cubes ๐ŸŒŸ ๐ŸŒŸ Solution
โœ” Day 18: Operation Order ๐ŸŒŸ ๐ŸŒŸ Solution
โœ” Day 19: Monster Messages ๐ŸŒŸ ๐ŸŒŸ Solution
โœ” Day 20: Jurassic Jigsaw ๐ŸŒŸ ๐ŸŒŸ Solution
โœ” Day 21: Allergen Assessment ๐ŸŒŸ ๐ŸŒŸ Solution
โœ” Day 22: Crab Combat ๐ŸŒŸ ๐ŸŒŸ Solution
โœ” Day 23: Crab Cups ๐ŸŒŸ ๐ŸŒŸ Solution
โœ” Day 24: Lobby Layout ๐ŸŒŸ ๐ŸŒŸ Solution
โœ” Day 25: Combo Breaker ๐ŸŒŸ ๐ŸŒŸ Solution

Running the code

Each day computes and displays the answers to both of the day questions and their computing time in ms. To run it type ruby day<number>.rb.

If the session cookie value is provided through the SESSION env variable (dotenv is available to provide it) โ€” it will fetch the input from the website and store it as a file under the inputs/ folder on its first run.

adventofcode-2020's People

Contributors

aquaj avatar

Stargazers

Alex Antsiferov avatar Rรฉmi avatar

Watchers

James Cloos avatar  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.