mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2024-12-23 11:42:39 -06:00
picnic: use ttr's checker boards
This commit is contained in:
parent
a7e57a8694
commit
9ed7402631
2 changed files with 1143 additions and 1143 deletions
|
@ -4,7 +4,7 @@ class CheckersBoard:
|
|||
|
||||
def __init__(self):
|
||||
self.squareList = []
|
||||
for x in xrange(32):
|
||||
for x in range(32):
|
||||
self.squareList.append(CheckersTile(x))
|
||||
|
||||
self.squareList[0].setAdjacent([None,
|
||||
|
@ -285,14 +285,14 @@ class CheckersBoard:
|
|||
|
||||
def getStates(self):
|
||||
retList = []
|
||||
for x in xrange(32):
|
||||
for x in range(32):
|
||||
retList.append(self.squareList[x].getState())
|
||||
|
||||
return retList
|
||||
|
||||
def setStates(self, squares):
|
||||
y = 0
|
||||
for x in xrange(32):
|
||||
for x in range(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 xrange(121):
|
||||
for x in range(121):
|
||||
self.squareList.append(CheckersSquare(x))
|
||||
|
||||
self.squareList[0].setAdjacent([None,
|
||||
|
@ -767,14 +767,14 @@ class ChineseCheckersBoard:
|
|||
|
||||
def getStates(self):
|
||||
retList = []
|
||||
for x in xrange(121):
|
||||
for x in range(121):
|
||||
retList.append(self.squareList[x].getState())
|
||||
|
||||
return retList
|
||||
|
||||
def setStates(self, squares):
|
||||
y = 0
|
||||
for x in xrange(121):
|
||||
for x in range(121):
|
||||
self.squareList[x].setState(squares[x])
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue