Home

Awesome

Advent of Code ยท Motoko starter project

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.

๐Ÿ Get started directly in your browser:

Open in Gitpod

๐Ÿ“ฆ Local environment (macOS / Linux):

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.

๐Ÿ“š Documentation


Contributions are welcome! If you find a way to improve this repository, please feel free to submit a pull request.