Programming

home

NetLogo

This is a flower that we made using NetLogo.

This is the code to create the flowe if you were ever interested. As you can see it's not so difficult right? WRONG! This was complicated in so many ways but I will only give one reason, because you had to put in the exact number to get the flower.

Here is some more code if you wanted to make shapes and stuff.

Micro Colony Simulation

We learned how to make a simulation in Netlogo of a colony using turtles which was somewhat difficult but amusing at the same time. In the picture it shows the turtles eating the grass and if they dont happen to eat it they will lose energy and die.

This was the code that made the magic happen although, there will be some bugs and errors. For example the grass not regrowing but I think you can fix that, yea you can. Anyways this was fun but it really annoyed me.

Here is a 3D view of what the colony turtles are doing as you can see they are eating the grass of piece at a time but at the same time they are losing energy for each time they move.

Python Programming

We were using Python and let me tell you this it is awesome and fun. We had learned how to make many stars in one of programming which somehow when you increased the level of it would create many other stars, thus creating a polygon. Like the one you see here.

Here is the code that we made that created the Star2. If you were ever interested. Not to mention the other codes like the square, star, or a polygon.

In the end we ended with a game that we have to create once again using Python. I had fun making this game and it had to do with guessing the right number. In the end I like Python and it's now my favorite language well for now.

Once again we here is the code for the number guessing game if you were ever interested the first one that I put wasn't really good but I think this one is better. Thanks!