forked from matthewjwolff/LoveLetter
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path__main__.py
32 lines (29 loc) · 840 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
'''
Created on Dec 17, 2016
@author: mjw
'''
from interface.StdoutInterface import StdoutInterface
from engine.GameEngine import GameEngine
from player.RandomAI import RandomAI
from player.EasyAI import EasyAI
from player.HardAI import HardAI
def main():
player = StdoutInterface().proxy
print("Number of RandomAI")
numRand = int(input("> "))
print("Number of EasyAI")
numEasy = int(input("> "))
print("Number of HardAI")
numHard = int(input("> "))
engine = GameEngine()
engine.addPlayer(player)
for i in range(numRand):
engine.addPlayer(RandomAI())
for i in range(numEasy):
engine.addPlayer(EasyAI())
for i in range(numHard):
engine.addPlayer(HardAI(True))
winner = engine.runGame()
print("The winner is "+str(winner))
if __name__ == '__main__':
main()