Code: Select all
class Boxx(object):
def __init__(self, color="None", row=0, line=0, **kwargs):
self.color = color
self.row = row
self.line = line
def seedBoard(self):
i = 1
x = 1
while i<=7:
while x<=7:
box_[i][x] = renpy.random.choice(['red', 'blue', 'yellow', 'green', 'pink'])
x+=1
i+=1
def checkBoard(self):
i = 1
x = 1
while i<=7:
while x<=7:
if box_[i][x] == "red":
checkvalue += 1
if checkvalue == 3:
box_[i][x] = renpy.random.choice([ 'blue', 'yellow', 'green', 'pink'])
if box_[i][x] == "blue":
checkvalue += 1
if checkvalue == 3:
box_[i][x] = renpy.random.choice([ 'yellow', 'green', 'pink'])
#etc....
x+=1
i+=1
It does not appear to work the way I want and perhaps I'm waaay of in what I'm doing. Though if someone know what went wrong, pleas lend some help ^_ ^