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