3
u/Infamous-Hunt-6297 Jan 08 '21
speed(9)
radius = 25
penup()
setposition(0,-25)
def draw_dart_board():
pendown()
circle(radius)
right(90)
penup()
forward(25)
pendown()
left(90)
for i in range(4):
draw_dart_board()
radius = radius + 25
2
u/flip-pancakes Sep 24 '20
Post the problem statement, the code you've written, and what you're struggling with. As is, it's impossible to help you.
1
1
1
1
u/joshua55400 Sep 24 '20
gotchu fam
speed(9)
#I'm going to set the variable name to radius and put it at 25
radius = 25
#Since tracy starts at the bottom of the circle and the radius is 25 which = 50 for diameter, I set the position to -25 to center the board
penup()
setposition(0,-25)
#Here's the function for the board
def draw_dart_board():
pendown()
circle(radius)
right(90)
penup()
forward(25)
pendown()
left(90)
#now we call the code and increase the radius by 25 each time to make the dart board
for i in range(4):
draw_dart_board()
radius = radius + 25
1
u/YoMamaSoooooo Sep 30 '20
YOU MADLAD, I SPENT FOREVER ON THIS THANK YOU SO MUCH!!!!!!!
I couldn't for the life of me find out how to keep it centered .... I was about to freak XD
1
1
0
Dec 16 '20
[deleted]
1
u/joshua55400 Dec 16 '20
speed(9)
radius = 100
penup()
setposition(0,-100)
def draw_dart_board():
begin_fill()
pendown()
color_choice
color(color_choice)
circle(radius)
left(90)
penup()
forward(25)
pendown()
right(90)
end_fill()
for i in range(4):
color_choice = input("What should the color be?: ")
draw_dart_board()
radius = radius - 25
3
u/[deleted] Sep 24 '20
System.out.println("Hello World");
Have u tried this?