diff options
-rw-r--r-- | README.md | 4 | ||||
-rw-r--r-- | batch/100-run-beginner-bad.sh | 3 | ||||
-rw-r--r-- | batch/1000-run-beginner-bad.sh | 9 | ||||
-rw-r--r-- | doc/viikkoraportti2.pdf | bin | 0 -> 35330 bytes |
4 files changed, 15 insertions, 1 deletions
@@ -5,6 +5,10 @@ Miinaharava ratkaisijalla ## Dokumentit: - [määrittelydokumentti](doc/m%C3%A4%C3%A4rittelydokumentti.pdf) + +### Viikkoraportit +- [viikko 1](doc/viikkoraportti1.pdf) +- [viikko 2](doc/viikkoraportti2.pdf) ## Ohjeet: 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" diff --git a/doc/viikkoraportti2.pdf b/doc/viikkoraportti2.pdf Binary files differnew file mode 100644 index 0000000..73220e3 --- /dev/null +++ b/doc/viikkoraportti2.pdf |