def HumanPlayOption(playerObject): customGame=P.customGame() playersChoiche=customGame.humanPlayOption(playerObject) return playersChoiche
def createGame(gametype): customGame = P.customGame() game=customGame.createGame(gametype) myGame=jsonpickle.encode(game) return myGame
def gameConfiguration(maxScore): customGame=P.customGame() customGame.GameConfiguration(maxScore)
def checkWinner(playerObject1,playerObject2): customGame=P.customGame() winner=customGame.CheckWinner(playerObject1,playerObject2) return winner
def finalScore(palyerObject): customGame=P.customGame() finalScore=customGame.finalScore(palyerObject) return finalScore
def score(PlayerObject): customGame = P.customGame() score = customGame.Score(PlayerObject) return score
def hold(PlayerObject): customGame = P.customGame() score = customGame.Roll(PlayerObject) return score
def setComputerPlayer(computerObject,tempScore,finalScore): customeGame=P.customGame() customeGame.setComputerPlayer(computerObject,tempScore,finalScore)
def setHumanPlayer(humanObject,name,tempScore): customeGame=P.customGame() customeGame.setHumanPlayer(humanObject,name,tempScore,finalScore)
def createPlayer(playerNumber): customGame=P.customGame() p1,p2=customGame.createPlayer(playerNumber) return p1,p2