Code Monkey home page Code Monkey logo

aoc-java-template's Introduction

🎄 Advent of Code {year}

Your solutions for Advent of Code written in Java ☕.

Template setup

Configure repository

  1. Open the template repository on GitHub
  2. Click Use this template and create your repository
  3. Clone your repository on your computer

Requirements

  • Java 17+ installed

Usage

Usage: aoc [COMMAND]
run Advent of Code command line tool.
Commands:
  scaffold  create class and tests for the day.
  download  download input file and create an empty example file.
  solve     run the solution with the input for the specified day.
  help      Display help information about the specified command.

The usual workflow of this is to:

  1. use the scaffold --day <day> command to create both test and solution classes in the project for the day.
  2. use the download --day <day> command to download the input of the day and create an empty example file.
  3. write your solution
  4. use the solve --day <day> command to launch your code with the day's input.

Scaffold a day

This will create both day class and the associated test.

# example: `./aoc scaffold --day 1`
./aoc scaffold --day <day>

Download Input for a day

Important

This requires in your home folder the file .adventofcode.session with your session-cookie in it. To find it, you have to log in on adventofcode.com and use the web developer tool to retrieve the value of the session cookie.

# example: `./aoc download --day 1`
./aoc download --day <day>

this will create the input file and download corresponding data of day and an empty example file.

Solve a day

# example: `./aoc solve --day 1`
./aoc solve --day <day>

This will launch the day solver for the specified day with the input.

Help

You can run the help command to see all available commands:

./aoc help

You also can have more information on commands with:

# example: `./aoc help solve`
./aoc help <command>

Inspired by advent-of-code-rust template.

aoc-java-template's People

Contributors

thermoweb 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.