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