Giter Site home page Giter Site logo

advent-of-code-2021's Introduction

2021 Advent of Code

To run a particular puzzle, use the runner tool.

ruby runner.rb will run puzzles, based on the arguments below.

Arguments are: -d n where n is 1 to 25, defaults to today (only correct in central time) -p n where p is 1 or 2, for the puzzle of the day, defaults to 1 -t if set, use the test data instead of real data, no default

This is (usually) called from vim bindings, rather than the command line.

For this to work, it requires some conventions-over-configurations.

Puzzles are grouped in one day per file, named "dayNN.rb", where NN is the day of the calendar (prepended with 0 if necessary).

Puzzle data goes in the data folder, and is named "dayNN.txt" or dayNN_test.txt", depending on whether the data is real data or test data.

Puzzles are each contained in their own methods, called part_one and part_two.

advent-of-code-2021's People

Contributors

williamkeller avatar

Watchers

 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.