Storing tree data in Javascript
- by Ozh
I need to store data to represent this:
Water + Fire = Steam
Water + Earth = Mud
Mud + Fire = Rock
The goal is the following: I have draggable HTML divs, and when <div id="Fire"> and <div id="Mud"> overlap, I add <div id="Rock"> to the screen. Ever played Alchemy on iPhone or Android? Same stuff
Right now, the way I'm…