set score format to %18.14f
This commit is contained in:
parent
2a5e6fc59d
commit
43ab3915d0
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue