Esempio n. 1
0
 def __init__(self, color, x, y, grid):
     Pieces.__init__(self, x, y, color, grid)
Esempio n. 2
0
	def __init__(self, name = "King", color="BLACK", position = (0,0)):
		Pieces.__init__(self, name, color, position)

		self.checked = False
		self.checkmated = False
		self.type = "King"
Esempio n. 3
0
 def __init__(self, color, x, y, grid):
     Pieces.__init__(self, x, y, color, grid)
     self.prevx = self.revWidth.get(self.width.get(self.x) - 1)
     self.nextx = self.revWidth.get(self.width.get(self.x) + 1)
 def __init__(self, x, y, grid):
     Pieces.__init__(self, x, y, "n", grid)
Esempio n. 5
0
	def __init__(self, name = "Knight", color="BLACK", position = (0,0)):
		Pieces.__init__(self, name, color, position)
		self.weight = 15
		self.type = "Knight"
Esempio n. 6
0
	def __init__(self, name = "Pawn", color="BLACK", position = (0,0)):
		Pieces.__init__(self, name, color, position)
		self.weight = 10
		self.threat = 10
		self.type = "Pawn"