Skip to content

Latest commit

 

History

History
40 lines (31 loc) · 1.04 KB

README.md

File metadata and controls

40 lines (31 loc) · 1.04 KB

Advent of Code 2016

             '
           - * -
            /.\
           /..'\
          /.'..'\
          /'.'..\
         /.'..'.'\
        /.'..'.'.'\
        /.'..'..'.\
 "'""""/'.'...'..'.\""'"'"
      /'..''..'.'.'.\  Advent of Code 2016
      ^^^^^^[_]^^^^^^  - ShaneMcC

My PHP Solutions for http://adventofcode.com 2016

Running

All of the solutions have their input as input.txt and some test input as test.txt, and will accept input from STDIN.

Solutions are run (for example day 1) as ./1/run.php from the root directory.

There is also some command-line flags to alter how the scripts run.

$ ./1/run.php --help
Usage: ./1/run.php [options]

Valid options
  -h, --help               Show this help output
  -t, --test               Enable test mode (default to reading input from test.txt not input.txt)
  -d, --debug              Enable debug mode
      --file <file>        Read input from <file>

Input will be read from STDIN in preference to either <file> or the default files.
$