Share your repls and programming experiences

← Back to all posts
submarine
herrerika (9)

I tried to make a submarine.I hope you like it even though it is a little rough

Comments
hotnewtop
SotoAyam (11)

I like it! I recommend using turtle.color and turtle.begin_fill(), like this:

turtle.color(255, 255, 0)
turtle.begin_fill()
#put the code here
turtle.end_fill()

And that way you can make a yellow submarine!!

Uzalii (433)

Overall really good I like it keep up the great work!

Thehappysquid (50)

This is a pretty cool project!

AyanBhatt (6)

It's a good project overall! :)
Some suggestions

#Before turtle drawing:
turtle.ht()
turtle.speed(10)
turtle.tracer(1,1)
#At the end of the code
turtle.update()

However, it's a great project overall, when it comes to learning turtle
A better version of code:

import turtle
turtle.ht() # makes it invisible
turtle.speed(fastest) # makes it faster
turtle.tracer(1,1) # go to turtle documents to learn more about this
turtle.forward(100)
turtle.left(90)
turtle.forward(100)
turtle.left(90)
turtle.forward(45)
turtle.forward(100)
turtle.right(75)
turtle.forward(55)
turtle.left(80)
turtle.forward(90)
turtle.forward(50)
turtle.left(100)
turtle.forward(50)
turtle.left(100)
turtle.forward(100)
turtle.right(100)
turtle.forward(50)
turtle.right(100)
turtle.forward(200)
turtle.left(100)
turtle.forward(75)
turtle.left(100)
turtle.forward(90)
turtle.right(50)
turtle.forward(50)
turtle.right(60)
turtle.left(90)
turtle.forward(100)
turtle.right(100)
turtle.forward(20)
turtle.left(100)
turtle.forward(50)
turtle.update()
JonathanBrazier (11)

why not turtle.speed(0) to make it instant @AyanBhatt

AyanBhatt (6)

@JonathanBrazier Oh sorry, meant 'fastest', if you make it instant, you can't watch how it's made, but you can change the tracer to

turtle.tracer(0,0)

If you want it instant.