Live data from Hacker News

Show HN: March Madness for Hackers

codersbracket.com

11–20 of 63 posts

Re: Show HN: March Madness for Hackers

#11
This is awesome! I went to UConn, so I'll obviously hard-code a UConn win there. But I heard on NPR today that, historically, a 12 seed has a 50% chance of upsetting a 5 seed in the first round. If I'm biasing towards the higher seeds everywhere else, that means my code looks like this:

function (game, team1, team2) {

  var winner_team = "Connecticut";
  
  if (team1.name == winner_team) {
    team1.winsGame();
  } else if (team2.name == winner_team) {
    team2.winsGame();
  } else if (team1.seed > team2.seed) {
    team2.winsGame();
  } else if (team2.seed == "12") {
    team2.winsGame();
  } else {
    team1.winsGame();
  }
            
}

Re: Show HN: March Madness for Hackers

#12

This is awesome. Where are the data sources coming from for this? For free throw percentage, etc. I'm assuming this wasn't manually gathered as the teams were just announced yesterday and it'd be a hassle to do it so quickly.

We've scraped the data from various sources - when Selection Sunday was announced we basically edited up a big JSON object to get it ready.

Re: Show HN: March Madness for Hackers

#14
post #3

> Coder's Bracket is the product of an internal open-source project at Fullstack Academy. so, is there source available? Regardless, very cool concept and execution.

Hey netcraft - we built this really quickly so the source is a bit messy - we'll work on open-sourcing it sometime in the near future though.
Post reply on HN