diff options
author | Aineopintojen-harjoitustyo-Algoritmit-j <github-hy-tiralabra@v.hix.fi> | 2024-01-27 13:31:17 +0200 |
---|---|---|
committer | Aineopintojen-harjoitustyo-Algoritmit-j <github-hy-tiralabra@v.hix.fi> | 2024-01-27 13:31:17 +0200 |
commit | 53bd62f3a55cde1dce09bdb867dfe0b84d578227 (patch) | |
tree | 5a5ed821eedb946eeea117f8fea225ccf00937c5 /batch/100-run-beginner-bad.sh | |
parent | d68d1a33f52ad9ddeb97c6e45f1e66cdf27c67f5 (diff) |
Adding exit codes and batch runner script.
Diffstat (limited to 'batch/100-run-beginner-bad.sh')
-rw-r--r-- | batch/100-run-beginner-bad.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/batch/100-run-beginner-bad.sh b/batch/100-run-beginner-bad.sh new file mode 100644 index 0000000..f66ea22 --- /dev/null +++ b/batch/100-run-beginner-bad.sh @@ -0,0 +1,8 @@ +#!/bin/bash +let COUNT=100 +let WINS=0 +for ((i=0;i<COUNT;i++)); do + python3 miinaharava -b -a -u && let WINS++; +done +let PERCENT=100*WINS/COUNT +echo -ne "\n\n## Voittoja $WINS/$COUNT ($PERCENT%)\n\n" |