-
Notifications
You must be signed in to change notification settings - Fork 0
/
testingMain.py
28 lines (26 loc) · 927 Bytes
/
testingMain.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
from GameStatus.Match import Match
from GameStatus.Checkers import Checkers as Checkers
from GameStatus.MontecarloMachinePlayer import MontecarloMachinePlayer
from GameStatus.HumanPlayer import HumanPlayer
from os import system
def main():
"""
system('clear')
while True:
try:
smartness= int(input("Select smartness from 1 to 4 (the bigger it is the smarter it plays, but it will take longer to choose the move): "))
if smartness>=1 and smartness<=4:
break
except:
exit(-1)
"""
smartness = 2
gameTable= Checkers()
machine= MontecarloMachinePlayer("FirstPlayer", smartness,1,2,False)
nothuman= MontecarloMachinePlayer("SecondPlayer",smartness,1,2,False)
#nothuman= HumanPlayer("Mario")
humVSmac= Match([machine,nothuman],gameTable)
humVSmac.play()
if __name__ == "__main__":
main()
print("program ended")