Wow. I already built this and open sourced it today. It's still under work, but it's mostly there. The idea of a plant in a jar was the inspiration for a simulation engine I'm writing right now. It's focused on 0 or 1 player games as an engine.
Well, I chose Coffeescript because it could be used on the backend for controlling a game server if it was a multiplayer, or it could be used in the browser independantly of a server. Im going to write some examples in the /examples/ folder eventually. Some of the ideas I had were
- The plant-in-a-jar idea you noted above
- Testing the efficacy of a strategy for turn based games by running them against each other.
I'm trying to not make the engine too specific to any one purpose so people can find their own uses for it. It's basically just a really stripped down discrete event simulator.