def __init__(self, color, x, y, grid):
     Pieces.__init__(self, x, y, color, grid)
Exemple #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"
Exemple #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)
Exemple #5
0
	def __init__(self, name = "Knight", color="BLACK", position = (0,0)):
		Pieces.__init__(self, name, color, position)
		self.weight = 15
		self.type = "Knight"
Exemple #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"