You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
||8 months ago|
|aoc2015||8 months ago|
|aoc2020/day1||8 months ago|
|datasets||8 months ago|
|projecteuler/euler258||8 months ago|
|rosalind||8 months ago|
|tools/problem-solving||8 months ago|
|.editorconfig||8 months ago|
|.factor-rc||8 months ago|
|.gitpod.Dockerfile||8 months ago|
|.gitpod.yml||8 months ago|
|LICENSE||8 months ago|
|README.md||8 months ago|
|playground.factor||8 months ago|
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
AUTHORenvironment variable and set it as your name/username. (On Gitpod, you can do this in account settings.):
export AUTHOR="My Name"
factor playground.factorin terminal at the git repo root, then enter the following replacing
Nwith the number of the day:
aoc2020.day1for an example. If a solution is worth an explanation, it should go to the description in the docs in
- 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).
dayN-tests.factorshould contain the test cases for the puzzle. It may be a good idea to start with the model problem and solution for that day. Later, you can incorporate your personal dataset, which is kept in