From 5b949ccc9f992871da48a780fcbeae21e8fe92c1 Mon Sep 17 00:00:00 2001 From: jona605a Date: Thu, 6 Aug 2020 21:46:36 +0200 Subject: [PATCH] :bug: Now doesn't crash --- funcs/games/hexDraw.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/funcs/games/hexDraw.py b/funcs/games/hexDraw.py index 3d57b6f..df63179 100644 --- a/funcs/games/hexDraw.py +++ b/funcs/games/hexDraw.py @@ -14,7 +14,7 @@ def drawBoard(channel): SIDELENGTH = 75 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 - 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 fontsize = 45 textcolor = (0,0,0) @@ -54,8 +54,8 @@ def drawBoard(channel): ],fill="white") # 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 for i in range(11):