/README.txt Secret
Created
May 3, 2016 16:12
Star
You must be signed in to star a gist
TNT run Koth unofficial test results.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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