🤖 HexAI!

This commit is contained in:
jona605a
2020-08-10 00:57:24 +02:00
parent bc11c5dd24
commit 0f368f7731
2 changed files with 52 additions and 54 deletions

View File

@ -21,8 +21,8 @@ LINETHICKNESS = 15
HEXTHICKNESS = 6 # This is half the width of the background lining between every hex
X_THICKNESS = HEXTHICKNESS * math.cos(math.pi/6)
Y_THICKNESS = HEXTHICKNESS * math.sin(math.pi/6)
BACKGROUND_COLOR = (235,235,235)
BETWEEN_COLOR = BACKGROUND_COLOR
BACKGROUND_COLOR = (230,230,230)
BETWEEN_COLOR = (231,231,231)
BLANK_COLOR = "lightgrey"
PIECECOLOR = {1:(237,41,57),2:(0,165,255),0:BLANK_COLOR} # player1 is red, player2 is blue
BOARDCOORDINATES = [ [(X_OFFSET + HEXAGONWIDTH*(column + row/2),Y_OFFSET + HEXAGONHEIGHT*row) for column in range(11)] for row in range(11)] # These are the coordinates for the upperleft corner of every hex