TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: March Madness for Hackers

100 pointsby nimzabout 11 years ago

30 comments

dyabout 11 years ago
Hey - David from Fullstack Academy. Our students this semester decided to build something awesome around learning to code and March Madness and codersbracket.com is the result.<p>It&#x27;s March Madness brackets but instead of picking teams, people can write code that will automatically generate their bracket for them. Our students have raised some money and are donating it all to code-learning organizations (CodeNow, Code.org, GirlsWhoCode).
评论 #7416819 未加载
yeldarbabout 11 years ago
Could you add the last couple years&#x27; brackets and stats as an algorithm tester?<p>Would be cool to run your algorithm against previous years to see how it would have done so you can refine it before submitting.<p>I&#x27;m imagining coloring the final bracket green&#x2F;red for correctly&#x2F;incorrectly predicted games in the simulation.
评论 #7417243 未加载
评论 #7419437 未加载
评论 #7417979 未加载
trg2about 11 years ago
This is awesome! I went to UConn, so I&#x27;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&#x27;m biasing towards the higher seeds everywhere else, that means my code looks like this:<p>function (game, team1, team2) {<p><pre><code> var winner_team = &quot;Connecticut&quot;; if (team1.name == winner_team) { team1.winsGame(); } else if (team2.name == winner_team) { team2.winsGame(); } else if (team1.seed &gt; team2.seed) { team2.winsGame(); } else if (team2.seed == &quot;12&quot;) { team2.winsGame(); } else { team1.winsGame(); } }</code></pre>
评论 #7417800 未加载
评论 #7417267 未加载
评论 #7417115 未加载
mikeho1999about 11 years ago
Awesome idea... one quick feature suggestion -- on the bracket, itself, it&#x27;d might be nice to highlight any upsets (e.g. in bold and&#x2F;or red or something like that).<p>Typically, variance in brackets is based on the upsets picked... so by making those more visible, it would make it easier for a human to more quickly digest the content.<p>Just a thought. But regardless, <i>awesome</i> idea. Well done!
atom-morganabout 11 years ago
This is <i>really</i> cool and it got even better when I found the documentation. I was hoping there would be a way to access rounds and seeds to try and put some more coding effort into a No.12 vs No.5 first round game.
mbestoabout 11 years ago
For the Data Scientists out there: <a href="http://fivethirtyeight.com/interactives/march-madness-predictions/" rel="nofollow">http:&#x2F;&#x2F;fivethirtyeight.com&#x2F;interactives&#x2F;march-madness-predic...</a>
netcraftabout 11 years ago
&gt; Coder&#x27;s Bracket is the product of an internal open-source project at Fullstack Academy.<p>so, is there source available?<p>Regardless, very cool concept and execution.
评论 #7416938 未加载
GBondabout 11 years ago
Really cool. A killer feature would be the ability to test against past years tourney&#x27;s actual results.
评论 #7416892 未加载
rrradicalabout 11 years ago
This is a super neat idea. Thanks so much for making it!<p>Some small comments:<p>I found the tutorial video painfully slow, but maybe you&#x27;re targeting beginning programmers. All I was looking for was-- what&#x27;s the language, what&#x27;s the api.<p>The determining function could easily be a pure function. I.e., it could designate the winner by returning true, or false, or an enum&#x2F;constant.<p>Actually, I think I would prefer this API:<p>function (team) { return team.off_reb * team.win_pct; }<p>And then play the teams by calculating the scores for each team and comparing them. But then of course, you can&#x27;t have different scores depending on the opponent. I wouldn&#x27;t use that information, but perhaps others would.
评论 #7418273 未加载
agentultraabout 11 years ago
Sorry if this sounds dumb... but what&#x27;s a bracket?
评论 #7419020 未加载
selectoutabout 11 years ago
This is awesome. Where are the data sources coming from for this? For free throw percentage, etc. I&#x27;m assuming this wasn&#x27;t manually gathered as the teams were just announced yesterday and it&#x27;d be a hassle to do it so quickly.
评论 #7416886 未加载
hoot80about 11 years ago
I had this idea for multiple years and never finished the project. I started it in Python, then 2 years later re-wrote it in Ruby. Since someone else finally implemented it, you should name it after my project: March Nerdness :)
ncavigabout 11 years ago
Would also be cool to be able to include more detailed data. There&#x27;s some useful data points exposed at <a href="http://madness.io" rel="nofollow">http:&#x2F;&#x2F;madness.io</a> including Tempo-free stats and (not advertised) json endpoints, <a href="http://madness.io/teams/uaa.json" rel="nofollow">http:&#x2F;&#x2F;madness.io&#x2F;teams&#x2F;uaa.json</a><p>Full disclosure: I released this site a few weeks ago, mostly as a side project. I submitted to Show HN but it didn&#x27;t get much traction. Might be of use though.
评论 #7419998 未加载
heynkabout 11 years ago
Hey Guys!<p>I just saw this today and got pretty interested. I was interested in implementing a &#x27;weighted&#x27; scoring function, but needed a way to save state somehow. I ended up finding a pretty fun solution using the console. It&#x27;s really fun to play with the weights and see how the bracket changes!<p><a href="https://github.com/hstove/Coderbracket-Weighted-Scorer" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;hstove&#x2F;Coderbracket-Weighted-Scorer</a>
评论 #7422129 未加载
lukekarrysabout 11 years ago
This is really great!<p>I&#x27;d be very interested in the data and the code behind the generator function. I&#x27;d love to integrate it with my bracket-generator module (which is very basic and only does lower seed, higher seed, and random currently).<p><a href="https://github.com/tweetyourbracket/bracket-generator" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;tweetyourbracket&#x2F;bracket-generator</a>
wambotronabout 11 years ago
I&#x27;m not sure if the &#x27;turnovers&#x27;&#x2F;&#x27;turnovers_per_game&#x27; is a POSITIVE or a NEGATIVE. Is it that they turn it over that many times? Or they take it away?<p>I&#x27;m assuming it&#x27;s a negative and it really means that turnovers is how many times they actually turn the ball over.
评论 #7418262 未加载
wambotronabout 11 years ago
I think games against top 25 teams (and their win percentage of those games) would be a good thing to add as well.
avelisabout 11 years ago
Just as naive but fun to look at:<p>function(game, team1, team2){<p><pre><code> if (team1.rpi &gt; team2.rpi) { team2.winsGame(); } else { team1.winsGame(); } </code></pre> }<p>I want to custom build from a known index via ESPN but don&#x27;t if the team objects hold all the stats necessary.
rschmittyabout 11 years ago
Using this for Buffet&#x27;s Billion Dollar Bracket Challenge (because no one is going to win that anyways!)
评论 #7418538 未加载
bergie3000about 11 years ago
Very nice. I&#x27;ve run a marginally similar site for a few years that I had just decided to sunset (<a href="http://randombracket.com" rel="nofollow">http:&#x2F;&#x2F;randombracket.com</a>). Too much work for about four days of usage :)<p>I&#x27;m glad I have your site to use now.
akerl_about 11 years ago
Site seems dead for me. Anybody have a tl;dr or cached version?
评论 #7417017 未加载
mmcclureabout 11 years ago
This is awesome! I took the time to create a pretty in-depth function only to find out you apparently can&#x27;t do that :(
评论 #7417679 未加载
lukencodeabout 11 years ago
This is pretty awesome. Would be rad to have something similar for the world cup for us non us sports loving coders.
debaserab2about 11 years ago
This is awesome! Is there a way to go full screen on the editor? I couldn&#x27;t seem to find one.
评论 #7416873 未加载
elwellabout 11 years ago
Video audio keep play when pressing Next during video play. Windows&#x2F;Chrome.
yeisonabout 11 years ago
Any functionality to create a pool? That would be great.
评论 #7417163 未加载
dyabout 11 years ago
And we&#x27;re back - sorry overloaded our servers!
kimhowardjabout 11 years ago
I&#x27;m liking the voice of that tutorial video.
apawloskiabout 11 years ago
This is so cool! What are you using for data?
dangerussabout 11 years ago
Very cool idea.