Skip to content

makr0/adventofcode-2018

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

adventofcode-2018

The solutions are written with the following goals:

  1. Readability Code is more often read than written.
  2. Less is more Write as little code as possible. The code written today is your obligation tomorrow. Less code, less work.
  3. Speed Try to be as fast as possible. At least inform your user about intent and progress

Usage

Solutions are written in PHP. Install php locally or use ddev start && ddev ssh. Run each day using the runday.sh script and the day number. You must provide input at stdin.

Example for Day1:

runday.sh 01 < data/01.txt