Skip to content

aprecup14/Aoc23

Repository files navigation

Advent of code 2023

How to develop:

  1. Create a directory for the day you are working on named day{DAY_NUMBER}. Inside of the new directory, create the following files:
  • index.ts code.
  • input.txt the input.
  • test_input1.txt test input for the first part of the challenge.
  • test_input2.txt test input for the second part of the challenge.
  1. Use the helper functions from read_write/read.ts: solveTest1, solveTest2,solveReal1, solveReal2.

How to test:

The code can be tested. In order for the tests to work for a day{DAY_NUMBER} directory make sure that:

  • It has the structure suggested at How to develop - 1
  • The index.ts file exports the solutions for each part of the challenge (naming them solve1 and solve2).
  • Export two variables, expectedResultPart1 and expectedResultPart2 which represent the expected results of the challenge. Can be undefined at the start of the challenge.
  • There is a list of directories in tests/index.test.ts. Tests will be created for each directory. Make sure that the newly created directory is part of that list.

How to run:

  1. Run npm install
  2. Navigate to the directory of your choice.
  3. Run npx nodemon index.ts

How to run tests:

  1. Run npm test.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •