Lesson B3  Challenge:  What number of degrees and repeats do you need to make a triangle? 

Repeat 3 times at 120 degrees

B4 Challenge

Octagon - Repeat 8 times at 45 degrees
Hexagon - Repeat 6 times at 60 degrees
Pentagon Repeat 5 times at 72 degrees

What is the rule for finding the number of degrees to make a polygon? 
Answer: 360 divided by the number of sides. 

 

Possible answers

Block Code Image

Text to copy and paste

Triangle
Triange Block Code Image

use Libraries.Robots.BirdBrain.Finch
Finch finch
repeat 3 times
finch:SetMotors(25,25)
finch:Pause(0.4)
finch:SetTurn("right",45, 25)
end
finch:Stop()
finch:Disconnect()
//3 sides 
Square
Block Code for Square
use Libraries.Robots.BirdBrain.Finch
Finch finch
repeat 4 times
finch:SetMotors(25,25)
finch:Pause(0.4)
finch:SetTurn("right",90, 25)
end
finch:Stop()
finch:Disconnect()
//4 sides 
Pentagon
Block Code of Pentagon
use Libraries.Robots.BirdBrain.Finch
Finch finch
repeat 5 times
finch:SetMotors(25,25)
finch:Pause(0.4)
finch:SetTurn("right",72, 25)
end
finch:Stop()
finch:Disconnect()
//5 sides 
Hexagon
Block Code Hexagon
use Libraries.Robots.BirdBrain.Finch
Finch finch
repeat 6 times
finch:SetMotors(25,25)
finch:Pause(0.4)
finch:SetTurn("right",60, 25)
end
finch:Stop()
finch:Disconnect()
//6 sides 
Octagon
Block Code of Octagon
use Libraries.Robots.BirdBrain.Finch
Finch finch
repeat 8 times
finch:SetMotors(25,25)
finch:Pause(0.4)
finch:SetTurn("right",45, 25)
end
finch:Stop()
finch:Disconnect()
//8 sides 
   

 

OL3 OUTPUT LIGHTS 

OL Display Square    
use Libraries.Robots.BirdBrain.Finch
Finch finch
//Display a Square on the micro:bit LED array
finch:SetDisplay("1111110001100011000111111")
finch:Disconnect()
Grid of the Square binary Image