MCPcopy Index your code
hub / github.com/FrameworkComputer/inputmodule-rs / game_over

Function game_over

python/inputmodule/gui/games.py:79–88  ·  view source on GitHub ↗
(dev)

Source from the content-addressed store, hash-verified

77
78
79def game_over(dev):
80 global body
81 while True:
82 show_string(dev, "GAME ")
83 time.sleep(0.75)
84 show_string(dev, "OVER!")
85 time.sleep(0.75)
86 score = len(body)
87 show_string(dev, f"{score:>3} P")
88 time.sleep(0.75)
89
90
91def pong_embedded(dev):

Callers 1

snakeFunction · 0.85

Calls 1

show_stringFunction · 0.90

Tested by

no test coverage detected