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