Skip to content

rvanasa/aoc-motoko-starter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.