5 ms·
The evolving chaos is able to take out the crawling chaos through improved colonization behavior and the possibility of developing several disparate strains. Ha
by swolchok 16y ago
The evolving chaos is able to take out the crawling chaos through improved colonization behavior and the possibility of developing several disparate strains. Haven't tried porting the fixed behaviors back to the crawling chaos and seeing if the "zerg rush" strategy is just better.
http://github.com/swolchok/cells/blob/master/evolving_chaos.py http://github.com/swolchok/cells/blob/master/evolving_chaos....
- hermanthegerman 16y agoAre there python version issues ? On my 2.5, it says File "cells.py", line 205, in get_view next NameError: global name 'next' is not defined (had to patch the math.copysign() in the original version as well, as it only exists from 2.6 on) Edit: works with continue.
- swolchok 16y agoSorry, I think Perl crept into my brain.
- icefox 16y agoCouldn't resist giving it a try myself and created my own program 'ben'. It was a good excuse to learn Python. Ended up with a solution that does a good job and can usually (19/20 times) beat the ones in included in the repo. Pushed my program up on github: http://github.com/icefox/cells http://github.com/icefox/cells Here is a video (sorry using Quicktime which only grabs the whole screen and not a window) of evolving_chaos v.s. ben which is fun to watch http://www.youtube.com/watch?v=Zy_-4rRmOCc http://www.youtube.com/watch?v=Zy_-4rRmOCc
- phreeza 16y agoThat is very nice. Fun to watch. I've included it in the repo.
- swolchok 16y agobenvolution makes some tweaks to ben in order to defeat it. :) It does have a reasonable chance of stalemating, and of getting overwhelmed if the starting locations are close together. http://gitshub.com/swolchok/cells/blob/master/minds/benvolution.py http://gitshub.com/swolchok/cells/blob/master/minds/benvolut...
- moconnor 16y agoAnd benmark draws from and defeats both :-) http://github.com/markoconnor/cells/blob/master/minds/benmark.py http://github.com/markoconnor/cells/blob/master/minds/benmar...
- swolchok 16y agoSeems to be identical to ben.py.
- moconnor 16y agoYes, sorry about that. I fessed up my repro when setting up on github. http://github.com/markoconnor/cells/blob/master/minds/benmark.py http://github.com/markoconnor/cells/blob/master/minds/benmar... is now the correct version, quite entertaining to watch.