Example #1
0
def HumanPlayOption(playerObject):
    customGame=P.customGame()
    playersChoiche=customGame.humanPlayOption(playerObject)
    return playersChoiche
Example #2
0
def createGame(gametype):
    customGame = P.customGame()
    game=customGame.createGame(gametype)
    myGame=jsonpickle.encode(game)
    return myGame
Example #3
0
def gameConfiguration(maxScore):
    customGame=P.customGame()
    customGame.GameConfiguration(maxScore)
Example #4
0
def checkWinner(playerObject1,playerObject2):
    customGame=P.customGame()
    winner=customGame.CheckWinner(playerObject1,playerObject2)
    return winner
Example #5
0
def finalScore(palyerObject):
    customGame=P.customGame()
    finalScore=customGame.finalScore(palyerObject)
    return finalScore
Example #6
0
def score(PlayerObject):
    customGame = P.customGame()
    score = customGame.Score(PlayerObject)
    return score
Example #7
0
def hold(PlayerObject):
    customGame = P.customGame()
    score = customGame.Roll(PlayerObject)
    return score
Example #8
0
def setComputerPlayer(computerObject,tempScore,finalScore):
    customeGame=P.customGame()
    customeGame.setComputerPlayer(computerObject,tempScore,finalScore)
Example #9
0
def setHumanPlayer(humanObject,name,tempScore):
    customeGame=P.customGame()
    customeGame.setHumanPlayer(humanObject,name,tempScore,finalScore)
Example #10
0
def createPlayer(playerNumber):
    customGame=P.customGame()
    p1,p2=customGame.createPlayer(playerNumber)
    return p1,p2