Homework 10 Drop Box
To post attachments, click the 'Attachments' link at the bottom of the page. For more help see this page: AttachFile
Make sure your attachment has a distinctive name or else it could be overwritten later.
adorsk_fuzzy_automata.py : I thought it would be interesting to try automata that use non-binary states. My program makes successive columns of cells. Each cell has value +1 of the cell that was above it in the previous column, with values looping from 0-15. I added scrolling and it makes a nifty optical illusion of shimmering. Note: instead of using a dictionary of tuples, I used a dict of dicts (dict[x][y]) for cells. This made scrolling easier to write. I noticed that little changes in both the rules and the initial configuration make big differences. Sometimes you get nifty shapes. I like this one: infinite_columns.py -AlexDorsk
jfernandez_four_color.py : I changed the Cell object to allow any number of arbitrary objects. Then I played around with four color rules until I stumbled onto this one that I found interesting since it can make very symmetric shapes like squares and spirals. The interesting thing about these rules is that if you start the world with an even amount of Turmites in the same place/direction they will behave just like Langston's Ant (two states never get used for more than a step, they're barely visible!)
hw10_sfreilich.tar: I created a generalized implementation of the life simulation, such that it can use any set of birth and survival rules. For convenience, I made subclasses that use specific sets of those rules for Life, Seeds, HighLife, and DayAndNight. I also added a command line parameter to choose which of those worlds to use ("python LifeWorld.py DayAndNightWorld" uses the rules for DayAndNight, for example). I also made a minor change to CellWorld.py, adding a toggle method to the cell object. (The image included is one of the gigantic gliders that can be found in DayAndNight world. It's a c/4 "mothership" (large "spaceship" design with inverted c/4 "spaceships" within it, possible because DayAndNight automata are invertible.) -Sam
BerryWar3.py: I thought it would be interesting to create something that would simulate a sort of Warcraft 2 orcs vs. humans. I have two berryMasters (Raspberries and Blueberries) who create their own type of berries in empty cells and destroy berries of the other type. Then the each berry tries to change surrounding berries into its own type of berry. Thus, berry wars! Each time you run it, the berries and berryMasters will fight and one type will usually win by outnumbering the other type. -Kori
Upload new attachment "sutee_six_state.py": I played around with cells with multiple states This particular implementation has six states and follows the rule: LRRRLL. It turns left if it is on a cell with states 1,5,6 and right if it is on a cell with states 2,3,4. I found that using four ants is particularly interesting in the way the ants will chase each other, break from the chase, and start chasing each other again. Eventually, you end up with two ants chasing each other forever.
zborden_hw10.py: I gave the made the turmite have two states, so now its actions are based on the color of the square and its own state. I also implented a pattern that made the turmite trace out a golden ratio spiral. It looks really cool! -Zac
jbasson_hw10.py: I created multiple sets of instructions with a bunch of different variables and just played around with stuff until I found some cool patterns. One makes train tracks or ladders but interference and noise keep it from making a highway.
jcass_square_spiral.py: I made an animal called a Swirly, and he makes a square spiral which is never quite perfect in the center. He is constantly running to the center and then out to the edges like a typewriter. It's actually pretty nice looking.
dellin_hw10.tar: My little bugger is a type of wall-follower. His decisions are based upon the state of the four squares surrounding him. He never (seemingly) creates highways of any sort, but there are certain patterns that he follows very well.
krivard_hw10.zip: Changes World a bit to take in the global variable set as an argument. Extends Cell to support many colors. Extends Turmite to support internal state, colored cells, and both. StateColoredTurmite has some interesting mosaic behavior, and spiral behavior with multiple turmites.