1
0
Fork 0
 
Go to file
Bubbler-4 f996bda53d Initial commit 2021-04-16 19:59:17 +02:00
aoc2015 Initial commit 2021-04-16 19:59:17 +02:00
aoc2020/day1 Initial commit 2021-04-16 19:59:17 +02:00
datasets Initial commit 2021-04-16 19:59:17 +02:00
projecteuler/euler258 Initial commit 2021-04-16 19:59:17 +02:00
rosalind Initial commit 2021-04-16 19:59:17 +02:00
tools/problem-solving Initial commit 2021-04-16 19:59:17 +02:00
.editorconfig Initial commit 2021-04-16 19:59:17 +02:00
.factor-rc Initial commit 2021-04-16 19:59:17 +02:00
.gitpod.Dockerfile Initial commit 2021-04-16 19:59:17 +02:00
.gitpod.yml Initial commit 2021-04-16 19:59:17 +02:00
LICENSE Initial commit 2021-04-16 19:59:17 +02:00
README.md Initial commit 2021-04-16 19:59:17 +02:00
playground.factor Initial commit 2021-04-16 19:59:17 +02:00

README.md

factor-problem-solving

Solutions to various problems written in Factor

How to add a solution

  • To work on advent-of-code problems, go to https://adventofcode.com and create an account. You will need to do this to receive the puzzle input individually for you. Later, you will be able to upload your answers and get it checked for correctness.
  • Add an AUTHOR environment variable and set it as your name/username. (On Gitpod, you can do this in account settings.):
export AUTHOR="My Name"
  • Run factor playground.factor in terminal at the git repo root, then enter the following replacing N with the number of the day:
"aoc2020.dayN" aoc-init
  • See aoc2020.day1 for an example. If a solution is worth an explanation, it should go to the description in the docs.
  • By convention, the MAIN: function solves the exact task given, while the core function solves the core problem (no input parsing, no output formatting). Sometimes it solves a more generalized problem; sometimes it solves only a specific subset of the problem (which happens in AoC problems, when an input exploit is needed).