Categorygithub.com/zsoltdzsugan/aoc
modulepackage
0.0.0-20241213110702-3410c258dd0f
Repository: https://github.com/zsoltdzsugan/aoc.git
Documentation: pkg.go.dev

# README

Advent of Code

AOC

license last-commit repo-top-language repo-language-count


Table of Contents


Overview

❯ This is my Advent of Code solutions repositoty. Where you can find all the challenges with my solutions.


Features

❯ CLI option implemented (for fun)


Project Structure

└── aoc/
    ├── LICENSE
    ├── README.md
    ├── cmd
    │   ├── helper
    │   │   └── getModulePath.go
    │   ├── root.go
    │   ├── show_challenge.go
    │   ├── show_puzzle.go
    │   └── show_solution.go
    ├── go.mod
    ├── main.go
    ├── txt_reader
    │   └── txt_reader.go
    └── year2024
        └── day1
            ├── helper
            │   └── sortData.go
            ├── part1
            │   ├── challenge.md
            │   └── solution.go
            ├── part2
            │   ├── challenge.md
            │   └── solution.go
            └── puzzle.txt

Project Index

AOC/
__root__
main.go❯ REPLACE-ME
go.mod❯ REPLACE-ME
year2024
day1
puzzle.txt❯ REPLACE-ME
part2
solution.go❯ REPLACE-ME
helper
sortData.go❯ REPLACE-ME
part1
solution.go❯ REPLACE-ME
txt_reader
txt_reader.go❯ REPLACE-ME
cmd
root.go❯ REPLACE-ME
show_puzzle.go❯ REPLACE-ME
show_challenge.go❯ REPLACE-ME
show_solution.go❯ REPLACE-ME
helper
getModulePath.go❯ REPLACE-ME

Getting Started

Prerequisites

Before getting started with aoc, ensure your runtime environment meets the following requirements:

  • Programming Language: Go
  • Package Manager: Go modules

Installation

Install aoc using one of the following methods:

Build from source:

  1. Clone the aoc repository:
❯ git clone https://github.com/zsoltdzsugan/aoc
  1. Navigate to the project directory:
❯ cd aoc
  1. Install the project dependencies:

Using go modules  

❯ go build -o aoc

Usage

Run aoc using the following command: Using go modules  

❯ aoc

Example

Run aoc with flags. Show Challenge or Solution requires all 3 flags while puzzle input only needs year and day.

❯ aoc challenge -y 2024 -d 1 -p 1 # --year 2024 --day 1 --part 1 also works
❯ aoc solution -y 2024 -d 1 -p 1
❯ aoc puzzle -y 2024 -d 1

# Packages

No description provided by the author
No description provided by the author
No description provided by the author