class Square:
	dark_color = 1
	empty = 0
	light_color = -1

	bg_color = (242, 215, 167)
	lslategrey = (119, 136, 153)

	def __init__(self, xLoc, yLoc, side):
		self.xLoc = xLoc
		self.yLoc = yLoc
		self.side = side
		self.myState = Square.empty

	def updateParams(self, xLoc, yLoc, side):
		self.xLoc = xLoc
		self.yLoc = yLoc
		self.side = side

	# def changeState(self, state):
	# 	self.myState

	def getDrawParams(self):
		return(self.xLoc, self.yLoc, self.side, self.side)

	def getState(self):
		return self.myState

	def getBGColor(self):
		return self.bg_color

	def getLineColor(self):
		return self.lslategrey

	def setPos(self, row, col):
		self.row = row
		self.col = col

	def getPos(self):
		return(self.row, self.col)

	def isInside(self, coordinates):
		if self.xLoc <= coordinates[0] < self.xLoc + self.side and self.yLoc <= coordinates[1] < self.yLoc + self.side:
			return True
		else:
			return False