-
Notifications
You must be signed in to change notification settings - Fork 1
/
main.py
27 lines (21 loc) · 804 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
# https://www.ultraboardgames.com/khet-the-laser-game/game-rules.php
from ai.monte_carlo import MonteCarloStrategy
from game.engine.engine import Engine
from game.util.configurations import CLASSIC
from game.util.constants import TURN_ORDER
from game.engine.UI.console_ui import ConsoleUI
from game.khet.strategies.human_strategy import HumanStrategy
from game.khet.model.khet_game import KhetGame
def main():
ui = ConsoleUI()
game = KhetGame(CLASSIC)
# player1 = MonteCarloStrategy(TURN_ORDER[0])
player1 = HumanStrategy(TURN_ORDER[0], ui)
player2 = MonteCarloStrategy(TURN_ORDER[1])
# player2 = HumanStrategy(TURN_ORDER[1], ui)
game.add_player(player1)
game.add_player(player2)
engine = Engine(game, ui)
engine.play()
if __name__ == "__main__":
main()