mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2024-12-23 19:52:37 -06:00
Ready to be merged and fixed by the rest of you nigrars aswell.
This commit is contained in:
parent
dcc4621456
commit
ba84f8da09
3 changed files with 9 additions and 6 deletions
|
@ -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
|
||||
|
|
|
@ -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):
|
||||
|
|
|
@ -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])
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue