🐛 Now doesn't crash
This commit is contained in:
@ -14,7 +14,7 @@ def drawBoard(channel):
|
|||||||
SIDELENGTH = 75
|
SIDELENGTH = 75
|
||||||
X_OFFSET = CANVAS_WIDTH/2 - 8*math.sqrt(3)*SIDELENGTH # The offsets centers the board in the picture
|
X_OFFSET = CANVAS_WIDTH/2 - 8*math.sqrt(3)*SIDELENGTH # The offsets centers the board in the picture
|
||||||
Y_OFFSET = CANVAS_HEIGHT/2 - 8*SIDELENGTH # The offsets are the coordinates of the upperleft point in the upperleftmost hexagon
|
Y_OFFSET = CANVAS_HEIGHT/2 - 8*SIDELENGTH # The offsets are the coordinates of the upperleft point in the upperleftmost hexagon
|
||||||
hexagonwidth = math.sqrt(3) * SIDELENGTH # the whole width
|
hexagonwidth = math.sqrt(3) * SIDELENGTH # the whole width of one hexagon
|
||||||
hexagonheight = 1.5 * SIDELENGTH # not really the entire height, but the height difference between two layers
|
hexagonheight = 1.5 * SIDELENGTH # not really the entire height, but the height difference between two layers
|
||||||
fontsize = 45
|
fontsize = 45
|
||||||
textcolor = (0,0,0)
|
textcolor = (0,0,0)
|
||||||
@ -54,8 +54,8 @@ def drawBoard(channel):
|
|||||||
],fill="white")
|
],fill="white")
|
||||||
|
|
||||||
# Draw color on the outside of the board
|
# Draw color on the outside of the board
|
||||||
for point in boardCoordinates[0]
|
for point in boardCoordinates[0]:
|
||||||
|
"hi nikolaj"
|
||||||
|
|
||||||
# Writes "abc..", "123.." on the columns and rows
|
# Writes "abc..", "123.." on the columns and rows
|
||||||
for i in range(11):
|
for i in range(11):
|
||||||
|
Reference in New Issue
Block a user