45026831 / hh-plus-plus

12 stars 15 forks source link

Add expected points and win probability to table in leagues #55

Open sbanac opened 2 years ago

sbanac commented 2 years ago

First of all, thank you for the amazing script, especially the win chances in seasons and leagues are extremely helpful.

Is your feature request related to a problem? Please describe.

In some events finding an opponent I can win against is more important than finding one with a high expected number of points. When searching I currently have to click one opponent, then hover over the E[X] sign to see the probability of winning, and write down candidates with a high chance.

Describe the solution you'd like

I'd like to see the winning chance below the E[X] without moving the mouse. Also I'd like the table to have two more columns which show the expected points and win probability of opponents I clicked before, so I don't have to keep track manually.

I like to write code sometimes but my web development skills are very rusty. How do I compile the git repo into the final script and get it into the browser for quick development? Is there a IDE for this kind of code?

45026831 commented 2 years ago

To compile, you'll need node js (ideally latest LTS version) installed, then it's just a case of running npm install initially to get dependencies, and then npm run build-all to build. I use VSCode, personally, rather than a full IDE.