aboutsummaryrefslogtreecommitdiff
path: root/doc/listings
diff options
context:
space:
mode:
authorInigoGutierrez <inigogf.95@gmail.com>2023-06-12 20:16:04 +0200
committerInigoGutierrez <inigogf.95@gmail.com>2023-06-12 20:16:04 +0200
commitd4a81490bf1396089eb3dac5955a3a8e4cb26e37 (patch)
treef96febc7950c2742bc36f04ab13bff56851f2388 /doc/listings
parentb08408d23186205e71dfc68634021e3236bfb45c (diff)
parent65ac3a6b050dcb88688cdc2654b1ed6693e9a160 (diff)
downloadimago-d4a81490bf1396089eb3dac5955a3a8e4cb26e37.tar.gz
imago-d4a81490bf1396089eb3dac5955a3a8e4cb26e37.zip
Merge branch 'devel'HEADmaster
Diffstat (limited to 'doc/listings')
-rw-r--r--doc/listings/goInterface/01-start.txt11
-rw-r--r--doc/listings/goInterface/02-firstMove.txt23
-rw-r--r--doc/listings/goInterface/03-fullGame.txt96
-rw-r--r--doc/listings/goInterface/04-ko.txt75
-rw-r--r--doc/listings/imagocliInterface/01-start.txt40
-rw-r--r--doc/listings/test.sh2
-rw-r--r--doc/listings/testOutput.txt24
7 files changed, 271 insertions, 0 deletions
diff --git a/doc/listings/goInterface/01-start.txt b/doc/listings/goInterface/01-start.txt
new file mode 100644
index 0000000..0aa8dfd
--- /dev/null
+++ b/doc/listings/goInterface/01-start.txt
@@ -0,0 +1,11 @@
+ A B C D E F G H J
+9 · · · · · · · · ·
+8 · · · · · · · · ·
+7 · · · · · · · · ·
+6 · · · · · · · · ·
+5 · · · · · · · · ·
+4 · · · · · · · · ·
+3 · · · · · · · · ·
+2 · · · · · · · · ·
+1 · · · · · · · · ·
+Move (B):
diff --git a/doc/listings/goInterface/02-firstMove.txt b/doc/listings/goInterface/02-firstMove.txt
new file mode 100644
index 0000000..3fb46d6
--- /dev/null
+++ b/doc/listings/goInterface/02-firstMove.txt
@@ -0,0 +1,23 @@
+ A B C D E F G H J
+9 · · · · · · · · ·
+8 · · · · · · · · ·
+7 · · · · · · · · ·
+6 · · · · · · · · ·
+5 · · · · · · · · ·
+4 · · · · · · · · ·
+3 · · · · · · · · ·
+2 · · · · · · · · ·
+1 · · · · · · · · ·
+Move (B): e6
+
+ A B C D E F G H J
+9 · · · · · · · · ·
+8 · · · · · · · · ·
+7 · · · · · · · · ·
+6 · · · · B · · · ·
+5 · · · · · · · · ·
+4 · · · · · · · · ·
+3 · · · · · · · · ·
+2 · · · · · · · · ·
+1 · · · · · · · · ·
+Move (W):
diff --git a/doc/listings/goInterface/03-fullGame.txt b/doc/listings/goInterface/03-fullGame.txt
new file mode 100644
index 0000000..4e01b75
--- /dev/null
+++ b/doc/listings/goInterface/03-fullGame.txt
@@ -0,0 +1,96 @@
+ A B C D E F G H J
+9 · · · · · · · · ·
+8 · · · · · · · · ·
+7 · · · · · · · · ·
+6 · · · · · · · · ·
+5 · · · · · · · · ·
+4 · · · · · · · · ·
+3 · · · · · · · · ·
+2 · · · · · · · · ·
+1 · · · · · · · · ·
+Move (B): e6
+
+ A B C D E F G H J
+9 · · · · · · · · ·
+8 · · · · · · · · ·
+7 · · · · · · · · ·
+6 · · · · B · · · ·
+5 · · · · · · · · ·
+4 · · · · · · · · ·
+3 · · · · · · · · ·
+2 · · · · · · · · ·
+1 · · · · · · · · ·
+Move (W): e4
+
+ A B C D E F G H J
+9 · · · · · · · · ·
+8 · · · · · · · · ·
+7 · · · · · · · · ·
+6 · · · · B · · · ·
+5 · · · · · · · · ·
+4 · · · · W · · · ·
+3 · · · · · · · · ·
+2 · · · · · · · · ·
+1 · · · · · · · · ·
+Move (B): g5
+
+ A B C D E F G H J
+9 · · · · · · · · ·
+8 · · · · · · · · ·
+7 · · · · · · · · ·
+6 · · · · B · · · ·
+5 · · · · · · B · ·
+4 · · · · W · · · ·
+3 · · · · · · · · ·
+2 · · · · · · · · ·
+1 · · · · · · · · ·
+Move (W): c5
+
+ A B C D E F G H J
+9 · · · · · · · · ·
+8 · · · · · · · · ·
+7 · · · · · · · · ·
+6 · · · · B · · · ·
+5 · · W · · · B · ·
+4 · · · · W · · · ·
+3 · · · · · · · · ·
+2 · · · · · · · · ·
+1 · · · · · · · · ·
+Move (B): g3
+
+ A B C D E F G H J
+9 · · · · · · · · ·
+8 · · · · · · · · ·
+7 · · · · · · · · ·
+6 · · · · B · · · ·
+5 · · W · · · B · ·
+4 · · · · W · · · ·
+3 · · · · · · B · ·
+2 · · · · · · · · ·
+1 · · · · · · · · ·
+Move (W): g7
+
+ A B C D E F G H J
+9 · · · · · · · · ·
+8 · · · · · · · · ·
+7 · · · · · · W · ·
+6 · · · · B · · · ·
+5 · · W · · · B · ·
+4 · · · · W · · · ·
+3 · · · · · · B · ·
+2 · · · · · · · · ·
+1 · · · · · · · · ·
+Move (B): pass
+
+ A B C D E F G H J
+9 · · · · · · · · ·
+8 · · · · · · · · ·
+7 · · · · · · W · ·
+6 · · · · B · · · ·
+5 · · W · · · B · ·
+4 · · · · W · · · ·
+3 · · · · · · B · ·
+2 · · · · · · · · ·
+1 · · · · · · · · ·
+Move (W): pass
+Both players passed: end of the game.
diff --git a/doc/listings/goInterface/04-ko.txt b/doc/listings/goInterface/04-ko.txt
new file mode 100644
index 0000000..f1ef2dd
--- /dev/null
+++ b/doc/listings/goInterface/04-ko.txt
@@ -0,0 +1,75 @@
+ A B C D E F G H J
+9 B · B · · · · · ·
+8 W B · · · · · · ·
+7 · · · · · · · · ·
+6 · · · · · · · · ·
+5 · · · · · · · · ·
+4 · · · · · · · · ·
+3 · · · · · · · · ·
+2 · · · · · · · · ·
+1 · · · · · · · · W
+Move (W): b9
+
+ A B C D E F G H J
+9 · W B · · · · · ·
+8 W B · · · · · · ·
+7 · · · · · · · · ·
+6 · · · · · · · · ·
+5 · · · · · · · · ·
+4 · · · · · · · · ·
+3 · · · · · · · · ·
+2 · · · · · · · · ·
+1 · · · · · · · · W
+Move (B): a9
+Invalid Move. Illegal by ko rule.
+
+ A B C D E F G H J
+9 · W B · · · · · ·
+8 W B · · · · · · ·
+7 · · · · · · · · ·
+6 · · · · · · · · ·
+5 · · · · · · · · ·
+4 · · · · · · · · ·
+3 · · · · · · · · ·
+2 · · · · · · · · ·
+1 · · · · · · · · W
+Move (B): z9
+Invalid move syntax. Example of move: A1
+
+ A B C D E F G H J
+9 · W B · · · · · ·
+8 W B · · · · · · ·
+7 · · · · · · · · ·
+6 · · · · · · · · ·
+5 · · · · · · · · ·
+4 · · · · · · · · ·
+3 · · · · · · · · ·
+2 · · · · · · · · ·
+1 · · · · · · · · W
+Move (B): a0
+Invalid move syntax. Example of move: A1
+
+ A B C D E F G H J
+9 · W B · · · · · ·
+8 W B · · · · · · ·
+7 · · · · · · · · ·
+6 · · · · · · · · ·
+5 · · · · · · · · ·
+4 · · · · · · · · ·
+3 · · · · · · · · ·
+2 · · · · · · · · ·
+1 · · · · · · · · W
+Move (B): a10
+Invalid move syntax. Example of move: A1
+
+ A B C D E F G H J
+9 · W B · · · · · ·
+8 W B · · · · · · ·
+7 · · · · · · · · ·
+6 · · · · · · · · ·
+5 · · · · · · · · ·
+4 · · · · · · · · ·
+3 · · · · · · · · ·
+2 · · · · · · · · ·
+1 · · · · · · · · W
+Move (B):
diff --git a/doc/listings/imagocliInterface/01-start.txt b/doc/listings/imagocliInterface/01-start.txt
new file mode 100644
index 0000000..b1c72f0
--- /dev/null
+++ b/doc/listings/imagocliInterface/01-start.txt
@@ -0,0 +1,40 @@
+name
+= Imago
+
+version
+= 0.0.0
+
+protocol_version
+= 2
+
+known_command nonexistentcommand
+= false
+
+known_command name
+= true
+
+nonexistentcommand
+? unknown command
+
+play b e6
+=
+
+genmove w
+= C8
+
+showboard
+=
+ A B C D E F G H J
+9 · · · · · · · · ·
+8 · · W · · · · · ·
+7 · · · · · · · · ·
+6 · · · · B · · · ·
+5 · · · · · · · · ·
+4 · · · · · · · · ·
+3 · · · · · · · · ·
+2 · · · · · · · · ·
+1 · · · · · · · · ·
+
+quit
+=
+
diff --git a/doc/listings/test.sh b/doc/listings/test.sh
new file mode 100644
index 0000000..b929249
--- /dev/null
+++ b/doc/listings/test.sh
@@ -0,0 +1,2 @@
+#!/bin/sh
+coverage run --source=imago -m unittest discover tests/ && coverage report -m --skip-empty
diff --git a/doc/listings/testOutput.txt b/doc/listings/testOutput.txt
new file mode 100644
index 0000000..e6fb2d6
--- /dev/null
+++ b/doc/listings/testOutput.txt
@@ -0,0 +1,24 @@
+Name Stmts Miss Cover Missing
+------------------------------------------------------------------------
+imago/data/enums.py 17 0 100%
+imago/engine/core.py 39 7 82% 43, 50-52, 60-62
+imago/engine/createDecisionAlgorithm.py 11 5 55% 13-21
+imago/engine/decisionAlgorithm.py 9 4 56% 6, 10, 14, 18
+imago/engine/imagoIO.py 107 9 92% 76-77, 189-196, 208
+imago/engine/keras/convNeuralNetwork.py 11 0 100%
+imago/engine/keras/denseNeuralNetwork.py 11 0 100%
+imago/engine/keras/keras.py 30 3 90% 48-49, 53
+imago/engine/keras/neuralNetwork.py 137 1 99% 141
+imago/engine/monteCarlo.py 110 7 94% 128, 181-188, 194-195
+imago/engine/parseHelpers.py 48 0 100%
+imago/gameLogic/gameBoard.py 205 7 97% 116, 180, 205, 272, 284, 306, 312
+imago/gameLogic/gameMove.py 95 9 91% 21, 27, 34, 138-142, 146
+imago/gameLogic/gameState.py 41 0 100%
+imago/scripts/monteCarloSimulation.py 17 17 0% 3-25
+imago/sgfParser/astNode.py 70 7 90% 10, 14, 22, 45, 59, 67, 157
+imago/sgfParser/parsetab.py 18 0 100%
+imago/sgfParser/sgf.py 6 0 100%
+imago/sgfParser/sgflex.py 31 9 71% 37-38, 42-43, 47-48, 64-65, 71
+imago/sgfParser/sgfyacc.py 41 14 66% 35-36, 51, 59-68, 71
+------------------------------------------------------------------------
+TOTAL 1054 99 91%