Skip to content

Instantly share code, notes, and snippets.

@schas002

schas002/README.txt Secret

Created May 3, 2016
Embed
What would you like to do?
TNT run Koth unofficial test results.
Challenge link: http://codegolf.stackexchange.com/questions/79253/koth-tnt-run-challenge/
$ cat tntrun.sh << EOF
for i in 1 2 3 4 5 6 7 8 9 10
do
echo "Round ${i}"
echo "*gong*"
echo "N" | python tntrun.py > round-${i}.txt
echo "*gong*"
done
EOF
$ tntrun.sh
Round 1
*gong*
*gong*
Round 2
*gong*
*gong*
... the same for each of the seven remaining rounds ...
Round 10
*gong*
*gong*
$ tail -n 1 round-{1,2,3,4,5,6,7,8,9,10}.txt
==> round-1.txt <==
['Random Walker']
==> round-2.txt <==
['UpBot']
==> round-3.txt <==
['UpBot']
==> round-4.txt <==
['UpBot']
==> round-5.txt <==
['Random Bot']
==> round-6.txt <==
['UpBot']
==> round-7.txt <==
['Random Walker']
==> round-8.txt <==
['UpBot']
==> round-9.txt <==
['UpBot']
==> round-10.txt <==
['UpBot']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment