Skip to content

Instantly share code, notes, and snippets.

@schas002
Created May 3, 2016 16:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save schas002/27aa722fdc413bf27702629279877664 to your computer and use it in GitHub Desktop.
Save schas002/27aa722fdc413bf27702629279877664 to your computer and use it in GitHub Desktop.
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