Home

Awesome

Advent of Code 2022

All my Advent of Code 2022 attempts! Mainly in Python.

Cool Stuff

Day 24
<img src="Day-24/Python/d24.gif"/>
Day 22 Part 1Day 22 Part 2
<img src="Day-22/Python/d22p1.gif"/><img src="Day-22/Python/d22p2.gif"/>

Note to Self

export X=... # day number

# Note that .in files are hidden but it should be within Day-<X>/<X>.in

# Python
cd Day-$X/Python && python3 main.py < ../$X.in && cd ../..

# JavaScript
cd Day-$X/JavaScript && node main.js < ../$X.in && cd ../..

# Java
cd Day-$X/Java && javac Main.java && java Main < ../$X.in && cd ../..

# C++
cd Day-$X/C++ && g++ -o mainc main.cpp && ./mainc < ../$X.in && cd ../..

# Haskell
cd Day-$X/Haskell && runhaskell main.hs && cd ../..

# Rust
cd Day-$X/Rust && rustc main.rs && ./main < ../$X.in && cd ../..