-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.py
33 lines (28 loc) · 813 Bytes
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
from gofish import Engine
from gofish.examplePlayers import RandPlayer
from logging import INFO, DEBUG
def main() -> None:
engine = Engine(
players=[
RandPlayer("Random 1"),
RandPlayer("Random 2"),
RandPlayer("Random 3"),
RandPlayer("Random 4"),
RandPlayer("Random 5"),
RandPlayer("Random 6"),
RandPlayer("Random 7"),
# Must be 2-7 players
],
logLevel=INFO)
# engine.playGame()
engine.serveGame()
# print(engine.evaluatePlayers(runs=100))
# while True:
# try:
# summary = next(engine.yieldGame())
# print(summary.getDict())
# input()
# except StopIteration:
# break
if __name__ == "__main__":
main()