Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

https://github.com/rvanasa/aoc-motoko-starter

Advent of Code ยท Motoko starter project
https://github.com/rvanasa/aoc-motoko-starter

advent-of-code aoc-2023 challenge competition dfinity icp internet-computer motoko puzzle starter template

Last synced: 13 days ago
JSON representation

Advent of Code ยท Motoko starter project

Lists

README

        

# Advent of Code ยท Motoko starter project

This is a template for using the [Motoko](https://internetcomputer.org/docs/current/motoko/main/motoko) programming language to solve [Advent of Code](https://adventofcode.com/) puzzles.

Learn more about Motoko in the [Internet Computer](https://internetcomputer.org/docs/current/home) developer documentation.

## ๐Ÿ Get started directly in your browser:

[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/rvanasa/aoc-motoko-starter)

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

Ensure that [Node.js](https://nodejs.org/en/) is installed on your system.

Next, run the following commands:

```sh
# 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](https://code.visualstudio.com/), consider installing the [Motoko VS Code extension](https://marketplace.visualstudio.com/items?itemName=dfinity-foundation.vscode-motoko).

## ๐Ÿ“š Documentation

- [Quick start / tutorial](https://internetcomputer.org/docs/current/motoko/tutorial)
- [Developer docs](https://internetcomputer.org/docs/current/motoko/main/motoko)
- [Base library](https://internetcomputer.org/docs/current/motoko/main/base/)
- [Mops package manager](https://j4mwm-bqaaa-aaaam-qajbq-cai.ic0.app/#/docs/install)
- [VS Code extension](https://github.com/dfinity/vscode-motoko)

---

Contributions are welcome! If you find a way to improve this repository, please feel free to [submit a pull request](https://github.com/rvanasa/aoc-motoko-starter/pulls).