MCPcopy Index your code
hub / github.com/python/cpython / main

Function main

Lib/turtledemo/minimal_hanoi.py:54–68  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

52 pass # turtledemo user pressed STOP
53
54def main():
55 global t1, t2, t3
56 ht(); penup(); goto(0, -225) # writer turtle
57 t1 = Tower(-250)
58 t2 = Tower(0)
59 t3 = Tower(250)
60 # make tower of 6 discs
61 for i in range(6,0,-1):
62 t1.push(Disc(i))
63 # prepare spartanic user interface ;-)
64 write("press spacebar to start game",
65 align="center", font=("Courier", 16, "bold"))
66 onkey(play, "space")
67 listen()
68 return "EVENTLOOP"
69
70if __name__=="__main__":
71 msg = main()

Callers 1

minimal_hanoi.pyFile · 0.70

Calls 6

pushMethod · 0.95
TowerClass · 0.85
DiscClass · 0.85
listenFunction · 0.85
htFunction · 0.50
writeFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…