I am in need of help fora project with API usage; I need to make sure the sample work is functional and how I can improve it so I would be able to extract data such as resent matches and popular heroes for the Vainglory API. That is what I need to do in part. We created a web application that helps players in improving their winning chance by doing "optimal" in drafting process. Our front-end interface looks like exactly what's in the Vainglory game. User will be able to choose 8 different heroes to ban and play, the sequence is just exactly what's in the game. In each step of the drafting process, our app will be able to give suggestions on what the optimal hero to pick/ban would be. The suggestions are rated from 1 to 10 with 10 being the most optimal and 1 being the least optimal. Each hero selected is added as a consideration on who to pick/ban on the next steps. The algorithm used in calculating these suggestions is based on iterating all possible states, drawing those states into a tree structure. Each node in the tree represents a combination of heroes banned/ selected. Each branch in the tree represents a pick or a ban. Each node has a scoring function which is based on considering two facts: 1) What's the chance a hero A can beat a hero B and 2) How well a hero A paired with a hero B. These two facts are calculated by looking at the win and lose counts. A greedy algorithm is used to find the best optimal path in the tree. The whole app can be divided into four parts: 1) A backend processor that helps up accessing the API and translating the JSON data returned and store them into our own database. 2) We have several queries to aggregate the "raw" data into some meaningful counts. 3)A calculator to calculations suggestions on each step in the drafting process. 4) User Interface, that mimics drafting process in the game, to let players navigate through bans and picks.
Link our sample code is [login to view URL]
I need to have clear and accurate algorithm to be used to determine the nest picks... I see that they used some algorithm on the sample project but I am not familiar with Java and HTML much but I know other languages like C and C# so need clear details on how it would work