Ready to be merged and fixed by the rest of you nigrars aswell.

This commit is contained in:
Loudrob 2015-05-03 09:07:33 -04:00
parent dcc4621456
commit ba84f8da09
3 changed files with 9 additions and 6 deletions

View file

@ -26,6 +26,9 @@ want-lawbot-cogdo #t
want-achievements #f
want-anim-props #t
want-game-tables #t
want-find-four #f
want-chinese-checkers #t
want-checkers #f
# Chat:
want-whitelist #f

View file

@ -4,7 +4,7 @@ class CheckersBoard:
def __init__(self):
self.squareList = []
for x in range(32):
for x in xrange(32):
self.squareList.append(CheckersTile(x))
self.squareList[0].setAdjacent([None,
@ -285,14 +285,14 @@ class CheckersBoard:
def getStates(self):
retList = []
for x in range(32):
for x in xrange(32):
retList.append(self.squareList[x].getState())
return retList
def setStates(self, squares):
y = 0
for x in range(32):
for x in xrange(32):
self.squareList[x].setState(squares[x])
def getJumps(self, squareNum):

View file

@ -4,7 +4,7 @@ class ChineseCheckersBoard:
def __init__(self):
self.squareList = []
for x in range(121):
for x in xrange(121):
self.squareList.append(CheckersSquare(x))
self.squareList[0].setAdjacent([None,
@ -767,14 +767,14 @@ class ChineseCheckersBoard:
def getStates(self):
retList = []
for x in range(121):
for x in xrange(121):
retList.append(self.squareList[x].getState())
return retList
def setStates(self, squares):
y = 0
for x in range(121):
for x in xrange(121):
self.squareList[x].setState(squares[x])