Skip to content

Commit 62bcffa

Browse files
v__0.227
1 parent c2ef2ee commit 62bcffa

File tree

2 files changed

+6
-9
lines changed

2 files changed

+6
-9
lines changed

mec/ubx/games/penalty.py

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,8 @@ def url_fetch(url,field):
1010
except Exception as e:
1111
return None
1212

13-
14-
ua = "https://raw.githubusercontent.com/alfredgalichon/game0-admin_output/main/action.json"
15-
history = url_fetch(ua,"history")
16-
17-
hist = [(i,j) for (i,j,_) in history]
18-
nbObs = len(hist)
19-
np.set_printoptions(precision=2, suppress=True)
20-
np.array([[hist.count((i,j)) for j in range(3)] for i in range(3)])/nbObs
13+
def show_score(url):
14+
history = url_fetch(url,"history")
15+
hist = [(i,j) for (i,j,_) in history]
16+
nbObs = len(hist)
17+
return np.array([[hist.count((i,j)) for j in range(3)] for i in range(3)])/nbObs

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "mec"
7-
version = "0.226"
7+
version = "0.227"
88
description = "description of the package"
99
readme = "README.md"
1010
requires-python = ">=3"

0 commit comments

Comments
 (0)