update readme

This commit is contained in:
Tyrel Souza 2023-12-02 23:20:53 -05:00
parent 2ad7b1e28c
commit d4de5e7061
No known key found for this signature in database
GPG Key ID: F3614B02ACBE438E
2 changed files with 33 additions and 19 deletions

View File

@ -2,6 +2,9 @@
DAY := `date +%d`
setup:
python3 -m venv venv
new:
cp python/_sample.py python/day{{ DAY }}.py
touch full/day{{ DAY }}.txt
@ -13,10 +16,8 @@ full:
sample:
/usr/bin/env python3 python/day{{ DAY }}.py --sample
ws:
wsample:
watch /usr/bin/env python3 python/day{{ DAY }}.py --sample
watch:
wfull:
watch /usr/bin/env python3 python/day{{ DAY }}.py

View File

@ -1,5 +1,33 @@
Advent of Code
# Running
## Setup
- `just setup`
## Create Day
- `just new`
## Running
Run the sample:
- `just sample`
Run Full:
- `just full`
Watching:
- `just wfull`
- `just wsample`
---
# Pre 2023
to run any day:
@ -9,18 +37,3 @@ to run any day:
- cd to proper dir `cd 2022/python/`
- run the day `python3 day01.py`
- to run sample code pass `--sample` as the argument. `python day01.py --sample`, (nothing special just checks sys.argv[-1])
python day01.py --sample
python day02.py --sample
python day03.py --sample
python day04.py --sample
python day05.py --sample
python day06.py --sample
python day07.py --sample
python day08.py --sample
python day09.py --sample
python day10.py --sample