예제 #1
0
파일: pc.py 프로젝트: Nattefrost/dice_poker
def pc():
    d0 = roll()
    d1 = roll()
    d2 = roll()
    d3 = roll()
    d4 = roll()
    value = results(d0, d1, d2, d3, d4)
    return value
예제 #2
0
keep = [0,0,0,0,0]
scores = [0,0,0,0,0,0,0,0,0,0,0,0,0]
updates = [0,0,0,0,0,0,0,0,0,0,0,0,0]
wedoneyet = 0
numrolls = 0

scorecard = display()

while(wedoneyet < 13):
	#################################################################
	#take a turn



	#display the roll
	roll(dice, keep)
	numrolls += 1
	#display the scorecard	
	updateScores(scorecard,calcScores(dice),updates)
	scorecard.displayPrint()
	printDice(dice,keep,numrolls)

	
	scored = 0
	
	#give posibilty to roll again or keep or unkeep
	

	while(numrolls < 3):
		turn = rollCommands(dice, keep,numrolls)
		if(turn == "roll"):
예제 #3
0
 def random_stats(self):
     self.dexterity = roll() + 6
     self.health = roll() + roll() + 12
     self.max_dexterity = self.dexterity
     self.max_health = self.health
예제 #4
0
 def random_stats(self):
     super().random_stats()
     self.luck = roll() + 6
     self.max_luck = self.luck