summaryrefslogtreecommitdiff
path: root/batch
diff options
context:
space:
mode:
authorAineopintojen-harjoitustyo-Algoritmit-j <github-hy-tiralabra@v.hix.fi>2024-01-27 13:50:20 +0200
committerAineopintojen-harjoitustyo-Algoritmit-j <github-hy-tiralabra@v.hix.fi>2024-01-27 13:50:20 +0200
commit0c034e6fbae0833f8524caf223deab450e9bb1b4 (patch)
tree36aa48d1c81cd9d9478166808b803d48ea1cfbee /batch
parent53bd62f3a55cde1dce09bdb867dfe0b84d578227 (diff)
Adding doc/viikkoraportti2.pdf
Diffstat (limited to 'batch')
-rw-r--r--batch/100-run-beginner-bad.sh3
-rw-r--r--batch/1000-run-beginner-bad.sh9
2 files changed, 11 insertions, 1 deletions
diff --git a/batch/100-run-beginner-bad.sh b/batch/100-run-beginner-bad.sh
index f66ea22..ab62e2e 100644
--- a/batch/100-run-beginner-bad.sh
+++ b/batch/100-run-beginner-bad.sh
@@ -1,8 +1,9 @@
#!/bin/bash
+OPTIONS="-b -a -u"
let COUNT=100
let WINS=0
for ((i=0;i<COUNT;i++)); do
- python3 miinaharava -b -a -u && let WINS++;
+ python3 miinaharava $OPTIONS && let WINS++;
done
let PERCENT=100*WINS/COUNT
echo -ne "\n\n## Voittoja $WINS/$COUNT ($PERCENT%)\n\n"
diff --git a/batch/1000-run-beginner-bad.sh b/batch/1000-run-beginner-bad.sh
new file mode 100644
index 0000000..394aeb3
--- /dev/null
+++ b/batch/1000-run-beginner-bad.sh
@@ -0,0 +1,9 @@
+#!/bin/bash
+OPTIONS="-b -a -u"
+let COUNT=1000
+let WINS=0
+for ((i=0;i<COUNT;i++)); do
+ python3 miinaharava $OPTIONS && let WINS++;
+done
+let PERCENT=100*WINS/COUNT
+echo -ne "\n\n## Voittoja $WINS/$COUNT ($PERCENT%)\n\n"