16 years ago
Highlights
import randomfrom tkinter import *class Game(Frame): def __init__( self, master = None ): self.PlayerTurn = 0 #0 for player 1 turn, 1 for player 2 turn self.Roll = 0 self.items…
16 years ago
16 years ago
Hello all. I'm currently trying to learn Cplusplus (wont let me do the plus sign :S ) and its been going really well so far. But now it seems i've run into a problem that i can'…
16 years, 6 months ago
def computerTurn( self ) : for i in range ( random.choice( self.computerrolls ) ) : self.Roll = random.choice( self.items ) if self.Roll == 1 : #self.PlayerTurn = 0 self.value.s…
16 years ago
16 years ago
Latest Activity
See all in Discussionsimport randomfrom tkinter import *class Game(Frame): def __init__( self, master = None ): self.PlayerTurn = 0 #0 for player 1 …
16 years ago
def computerTurn( self ) : for i in range ( random.choice( self.computerrolls ) ) : self.Roll = random.choice( self.items ) …
16 years ago
Might want to use self.value and self.PlayerScore and so on.Dont think you want dieRoll to return anything. You just want …
16 years ago