4つの異なるカメを同時に動かすにはどうすればよいですか?また、その方法で人を形作るTurtle.shape
方法は?Screenメソッドと呼ばれるものがあることは知ってregister_shape
いますが、ドキュメントが見つかりませんでした。
def turtles(self, base):
self.t4.goto(self.tFirst)
self.t1.goto(self.tSecond)
self.t2.goto(self.tThird)
self.t3.goto(self.tHome)
if base >= 2:
self.t4.goto(self.tSecond)
self.t1.goto(self.tThird)
self.t2.goto(self.tHome)
if base >= 3:
self.t4.goto(self.tThird)
self.t1.goto(self.tHome)
if base == 4:
self.t4.goto(self.tHome)
tFirst
、tSecond
antThird
は位置であり、、、、t1
はカメです。すべてのカメが一斉に動くようにしたいです。t2
t3
t4