Starter: personal blog, update & error correction & reply
In yesterday's DotA fit calculator, the dota hero data and DotA player data Two database, in order to facilitate the use of Web applications, the storage format of the two databases is JSON, This is the two files of Heros.json and Players.json.
The advantage of a JSON file is that it can be opened with a text editor, but the downside is that it's not as easy to manipulate as a database with a graphical interface. Heroes have more than 100, the player also has more than 10, each hero and player properties have more than 10 20 items, dragged in the text editor dragged too much trouble, not at a glance.
and heroes have a tags property, which is actually a comma-delimited string, such as "remote, intelligence, Mage, outbreak", this string of editing is my main thing to do, in the text editor dragged too stupid, want to do an EXE program, because this editor to deal with the JSON format data, Using Node-webkit technology, using JavaScript language to complete is the most appropriate, can not help but sigh technology more learning more like open a few windows, and not only hammer encountered anything when nails to hit.
Implementation is not difficult, the code here, of course, to put in the shell of Node-webkit to run, you can refer to my blog.
Interface
Then the player editor to do it, but in the Hero Tag editor based on the change, the interface is as follows:
Set the hero and player indicators, you can use the algorithm to calculate the player's fit hero:
The first 15 heroes that are most suitable for Dugo are calculated, or more accurate. Processing good data and calculating the page here, source here.
Welcome to the use and suggestions, especially on the heroic indicators and algorithms, the current still feel flawed, such as the Silent Warlock and the Wrath Mage have "silent" skills, obviously the two are different, but did not think well how to distinguish.
Long-term welcome project Cooperation Opportunity Introduction, project income 10% to reward introducer. Sina Weibo: @ Cold Mirror, qq:908789432.
Native JSON file editor, Node-webkit developed EXE program