Thursday, September 22, 2016

Skill Builders CodeMonkey 4-13 and Challenge 69



9/30/16

I saw that there was no island for the monkey to step on to get to the banana. So I saw that the turtle could help get the monkey to the banana. I began using the variables d and m. I used d to represent the distance the turtle should take to get to the island and m to represent the distance the monkey should take to get on the turtle. I then said for the turtle to step the distance to the island across from it so that the monkey can step the distance to get on the turtle to get to the banana. Another solution that I could have made after the monkey was on the turtle, was for the turtle to turn to the banana and step the distance to the banana instead of going backwards from the island and then turning to the banana. This puzzle was a little challenging but after experimenting different codes, I saw there were various solutions that could be made to get to the banana. 








9/30/16

I saw that there were 4 crocodiles that needed to act like a bridge for the monkey to get to the bananas. I began this challenge by starting with a variable. The variable that I chose was c to represent the crocodiles so it could turn to the monkey. Then I used the variable i to represent the islands. I then told the monkey to turn to the islands instead of falling into the water. The monkey then stepped the distance to each banana then making the monkey turn back to the raft each time it gets a banana. With using the loops, its useful because you wouldn't have to repeat the same codes each time you would need it. This puzzle was also challenging , but trying new and different codes each time can lead you to the objective.

















No comments:

Post a Comment