US Open Championship Python Script

ADuck

Hall of Fame
No problem. You came up with a great script.
You guys flatter me, really. Well done in your code, though. Very readable and easy to follow along. I also really enjoyed your way of calculating their odds of beating any random player they may encounter. Very resourceful, and it minimizes what the client needs to input.
Thanks both of you.

Now the actual draw is out so we can go back to debating who got the weakest draw again as is TTW tradition.:)
 

TripleATeam

Legend
So I ended up writing the code in Java, but now that I have a decent algorithm I can make it into a proper python or golang script, depending on what people want to see. I tried to make it into a .JAR but my manifest.mf is killing me right now, and I'd rather not get 3 hours of sleep over an executable.

Anyway, my repo is up - check it out.


I just named it Tennis_Odds_Calc for lack of a better term. Send me a message saying what language I should use for my script (might even just make it into a .exe for ease of use), or I guess you can propose changes to the code too. It's not particularly clean (No input validation, for one thing), but it definitely works and accepts input from std.in.
Updated my repo.


Now it takes two input files in order to make determining everything a lot easier. Now it is feasible to put in every player in the entire 128-player draw. I don't know if I will, but maybe.

Also considering input validation for v3.
 

TripleATeam

Legend
Updated my repo.


Now it takes two input files in order to make determining everything a lot easier. Now it is feasible to put in every player in the entire 128-player draw. I don't know if I will, but maybe.

Also considering input validation for v3.
Created v3. It reads H2Hs as well and allows for weighting each category.
 
Top