LeMoonStar's Advent of Code 2020 solutions
- Open a new Terminal
- Navigate to the directory you want the AoC20 project placed
- Type (or copy and paste)
this will clone the project and create all required makefiles.
git clone https://github.com/LeMoonStar/AoC20 cd AoC20 mkdir build && cd build cmake .. -G "Unix Makefiles"
- Type (or copy and paste)
to compile and link the executable.
make
- Type (or copy and paste)
to move to the folder the Executable is placed in.
cd ../bin
- To then execute the executable type
./AoC20
, if everything worked correctly you should now be able to use it.
- git
- CMake's binary distribution. Select the radio button that says "Add CMake to the system PATH" either for all users or for the current user or add it to PATH if you have already installed it
- MinGW. Add the bin folder (Default: C:\MinGW\bin) to PATH and open the MinGW Installation Manager. Install
mingw32-base-bin
andmingw32-gcc-g++-bin
by right clicking on the entries and selecting "Mark for Installation". Afterwards, click on Installation (Alt + I) and Apply Changes (A). Wait for the downloads to be finished
- Open a new Terminal (cmd, not PowerShell) by typing in cmd in the Windows search or pressing
Windows + R
, typing incmd
and pressing enter - Navigate to a directory of your choice where you want to download the source code by typing in
cd path
wherepath
can be choosen freely (example:cd C:\USERNAME\Documents
) and press enter afterwards. (Sidenote: If the directory is not on your main drive (By default:C:
), you have to type in the drive letter followed by a colon (Example:D:
) and enter) - Type (or copy and paste)
and press enter
git clone https://github.com/LeMoonStar/AoC20 cd AoC20 mkdir build cd build cmake .. -G "MinGW Makefiles"
- Type (or copy and paste)
and press enter
mingw32-make
- Type (or copy and paste)
followed by enter
cd ../bin
- Enter
AoC2020.exe
to start the program
- Andi's aoc2020
- derNiklaa's AoC-2020
- NetworkExceptions's AdventOfCode
- Daan Breur's AdventOfCode
- Trojaner's AdventofCode2020
- Sammy's AdventOfCode2020