set score format to %18.14f

This commit is contained in:
Pavel 2020-09-27 19:04:10 +02:00
parent 2a5e6fc59d
commit 43ab3915d0
1 changed files with 1 additions and 1 deletions

View File

@ -129,7 +129,7 @@ def draw_path():
def draw_score(state):
global canvas
canvas.create_text(4, screen_h + 52, anchor = NW, text = 'score: %f (state[6]: %5.1f, state[7]: %5.1f)' % (state[5], state[6], state[7]), fill = 'black')
canvas.create_text(4, screen_h + 52, anchor = NW, text = 'score: %18.14f (state[6]: %5.1f, state[7]: %5.1f)' % (state[5], state[6], state[7]), fill = 'black')
def fix_angle(a):
return a * 2 * asin(1) / pi