%matplotlib inline
from os.path import dirname, abspath
import sys
sys.path.append(dirname(abspath('')))
from PokerGame import PokerGame
import matplotlib.pyplot as plt
from numpy import array

nPlayers = 3
deckOfGates = {"H": nPlayers, "X": nPlayers, "ZH": nPlayers, "CX": nPlayers}
money = array([100 for i in range(nPlayers)])
names = ["James", "Lilly", "Harry"]

pokerGame = PokerGame(deckOfGates, nPlayers, money, names = names, smallBlind=5, smallBlindPlayer=0, seed=4,
                     enableEntanglement=True)
fig = pokerGame.interactive.fig

pokerGame.interactiveButtons.showHand(None, updateBoard=False)
fig

pokerGame.fold()
pokerGame.interactiveButtons.showHand(None, updateBoard=False)
fig

pokerGame.check()
pokerGame.check()
fig

pokerGame.bet(10)
fig

pokerGame.check()
pokerGame.check()
pokerGame.check()
pokerGame.interactiveButtons.checkBellStates2(None)
pokerGame.mouseClick(1)
pokerGame.mouseClick(4)
fig

pokerGame.check()
pokerGame.check()
fig

pokerGame.interactiveButtons.CX(None)
pokerGame.mouseClick(1)
pokerGame.mouseClick(4)
fig

pokerGame.interactiveButtons.X(None)
pokerGame.mouseClick(2)
pokerGame.interactiveButtons.ZH(None)
pokerGame.mouseClick(4)
fig

pokerGame.endGateTurn(None)
fig

pokerGame.interactiveButtons.X(None)
pokerGame.mouseClick(2)
pokerGame.interactiveButtons.H(None)
pokerGame.mouseClick(3)
fig

pokerGame.endGateTurn(None)
fig

