Programming

Programming

This is a flower I created in Net LOGO using turtles and geometry. I first made a square and made a side length slider to make it become bigger. So far it was fun and i feel like we when we use Scratch, hopefully I get to make even more ridiculous things.

This is a star that I made with stars within stars and I created this using python. This is a level one star, there is an infinite amount of levels, speeds, and shapes you could use to make a different big shape. .

But this is a level two star done and I used the speed level -10000 to make this 50 or so minute long taking star in 10 minutes.

This is the code for the stars I made in python. To make these stars I had to use three basic rules in coding to do: 1. Conditionals 2.Variables 3.LOOPS. Without these three simple rules things would be too hard to code and in some parts impossible.

Using the Logo programming language and the Netlogo application, I created a colony if turtles that move, eat, and die. This colony not only had a death element but it had a reproduction and certain colored turtles would have and edge that the others wouldn't like speed.

This is the code for the colony that I made in Netlogo. I did a test where one color of the turtles would have a bigger advantage over the rest of the other colors. To save time I only tried this on one color, pink, what I did was that I made these turtles faster than the rest of them.

This is the reproducing system that I made, orginally I used an energy of 50 but to have some fun I made it 5 and they went crazy. As I mentioned I made the reproducing effect by adding energy this made it so they would have to eat to live and eat to reproduce.

This is the actual colony model it may not be as greatly viewable as on the program but it's something.


Home