Answer by fredtantini for Forest - A Simulated Ecosystem
PythonNothing fancy. I kept on adding stuff, so refactoring might be in order. (And I didn't do unitest so bugs might still be present).I gave random names to lumberjacks and bears.Trees are i, then I,...
View ArticleAnswer by user16991 for Forest - A Simulated Ecosystem
Javascript+HTML - try itUpdated as per popular requestGeneral behaviourThe program is now somewhat interactive.The source code is completely parametrized, so you can tweak a few more internal...
View ArticleAnswer by Kevin L for Forest - A Simulated Ecosystem
JavascriptI think this mostly works. There's some wonky behavior where I spawn all the new bears/lumberjacks in sync and right next to each other because laziness in insertions.This implementation does...
View ArticleAnswer by Blackhole for Forest - A Simulated Ecosystem
AngularJSHere is my version, which is still a Work In Progress: the code is a bit… well… ugly. And quite slow. I also plan to add more options to parametrize the evolution and to analyse the state of...
View ArticleForest - A Simulated Ecosystem
NOTEThis problem was taken from this reddit thread (spoiler alert!), and I have adjusted it to make it fit with this site's format. All credit goes to reddit user "Coder_d00d".In this problem, we will...
View Article