This is a template for using the Motoko programming language to solve Advent of Code puzzles.
Learn more about Motoko in the Internet Computer developer documentation.
Ensure that Node.js is installed on your system.
Next, run the following commands:
# Install system dependencies
sh -ci "$(curl -fsSL https://smartcontracts.org/install.sh)" # Motoko compiler
curl https://wasmtime.dev/install.sh -sSf | bash # WebAssembly engine
npm install ic-mops # Mops package manager for Motoko
# Clone this repository
git clone https://github.com/rvanasa/aoc-motoko-starter
cd aoc-motoko-starter
# Run a Motoko file with the given name from the `src` directory
./aoc 1
If you use Visual Studio Code, consider installing the Motoko VS Code extension.
Contributions are welcome! If you find a way to improve this repository, please feel free to submit a pull request.