projects
/
menace.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Linted
[menace.git]
/
nac-trinket
/
main.py
1
from
menace
import
*
2
import
pprint
3
4
pp
=
pprint
.
PrettyPrinter
()
5
6
p1
=
new_menace
()
7
p2
=
new_menace
()
8
9
epochs
=
10
10
for
i
in
range
(
epochs
):
11
print
(
'Starting epoch'
,
i
)
12
train_players
(
p1
,
p2
,
rounds
=
10
**
5
)
13
14
# pp.pprint(p1)
15
# pp.pprint(p2)
16
17
ph
=
new_human
()
18
19
game_with_players
(
p1
,
ph
,
report_result_for
=
ph
)