def pc(): d0 = roll() d1 = roll() d2 = roll() d3 = roll() d4 = roll() value = results(d0, d1, d2, d3, d4) return value
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"):
def random_stats(self): self.dexterity = roll() + 6 self.health = roll() + roll() + 12 self.max_dexterity = self.dexterity self.max_health = self.health
def random_stats(self): super().random_stats() self.luck = roll() + 6 self.max_luck = self.luck