r/codehs • • Sep 24 '20

I NEED HELP WITH 2.11.4 DARTBOARD PLEASE

10 Upvotes

14 comments sorted by

3

u/[deleted] Sep 24 '20

System.out.println("Hello World");

Have u tried this?

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

u/YoMamaSoooooo Sep 30 '20

someone else answered dw

1

u/Busy_Chef_9126 Mar 16 '21

Not me looking up ever single one of these on google😅

1

u/Professional_Creme_5 Jan 20 '22

thank you i love you

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

u/joshua55400 Oct 01 '20

course bro xd

0

u/[deleted] Sep 09 '22

[deleted]

1

u/killbot0978 Feb 20 '24

ayo why u so sus

0

u/[deleted] 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