projects
/
advent-of-code-2019.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Day 13 2019
[advent-of-code-2019.git]
/
day13
/
run.sh
diff --git a/day13/run.sh
b/day13/run.sh
new file mode 100755
(executable)
index 0000000..
8c8a139
--- /dev/null
+++ b/
day13/run.sh
@@ -0,0
+1,13
@@
+#!/bin/bash
+
+exec 3<input.txt
+OLDIFS=$IFS
+IFS="," read -u 3 -a instructions
+IFS=$OLDIFS
+
+basedir=$(dirname $(readlink -f ${BASH_SOURCE}))
+
+. $basedir/computer.sh
+. $basedir/screen.sh
+
+run_program instructions 2>/dev/null | arcade_screen