Programming Page

Programming

I had to program this website. To be able to program this website, I had to learn how to do html coding. It was easy for me to learn, because I was able to understand everything I did. It was also fun looking for the pictures and backgrounds for this website.

I also had to program on a program called netlogo. It was a website where you created images and other things by making turtles that I would proggram to fly everywhere and draw a picture or do what I want it to do.

When I programmed I had a lot of problems with timing, repeating and turning. In the picture above if you look at the outside of the border it is just squares layered over eachother. I tried to create a optical illusion by making a giant spiral. Other challenges I had to do was make a triangle, polygon, circle, flower, and a divide by 3 program. I found the spiral was the most fun to make though, because it was really cool to watch spin around and draw itself.

We used a program called python also. In this, we would program a guessing game. In it, the program would generate a random number between 1 and 10 and we would have 4 chances to guess it. The program would tell us if were guess is to high or too low, and after, it would say either "I win!" or "Dang, you win!".

We also used Python to program another number game. In this one, you would think of a number and the computer would guess it. We did this by making it choose in the middle of each guess, so the first guess was always 500,000 and the second was either 250,000 or 750,000. In the picture above, the computer is trying to guess my number which is between 1 and 1,000,000. It was able to guess 525600 in 20 guesses.

We used netlogo some more to recreate an environment with competing animals. In it we used turtles which would eat grass. we made the pink turtles have extra speed to get around to the grass faster. The pink turtle would win every single time because got more food than the other colors. We did this by creating if then variables with the grass and random moving with the turtles. And when a turtle ends up on top of a piece of grass, it would eat it and turn it brown.