TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Show HN: March Madness for Hackers

100 点作者 nimz大约 11 年前

30 条评论

dy大约 11 年前
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 未加载
yeldarb大约 11 年前
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 未加载
trg2大约 11 年前
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 未加载
mikeho1999大约 11 年前
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-morgan大约 11 年前
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.
mbesto大约 11 年前
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>
netcraft大约 11 年前
&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 未加载
GBond大约 11 年前
Really cool. A killer feature would be the ability to test against past years tourney&#x27;s actual results.
评论 #7416892 未加载
rrradical大约 11 年前
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 未加载
agentultra大约 11 年前
Sorry if this sounds dumb... but what&#x27;s a bracket?
评论 #7419020 未加载
selectout大约 11 年前
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 未加载
hoot80大约 11 年前
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 :)
ncavig大约 11 年前
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 未加载
heynk大约 11 年前
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 未加载
lukekarrys大约 11 年前
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>
wambotron大约 11 年前
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 未加载
wambotron大约 11 年前
I think games against top 25 teams (and their win percentage of those games) would be a good thing to add as well.
avelis大约 11 年前
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.
rschmitty大约 11 年前
Using this for Buffet&#x27;s Billion Dollar Bracket Challenge (because no one is going to win that anyways!)
评论 #7418538 未加载
bergie3000大约 11 年前
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_大约 11 年前
Site seems dead for me. Anybody have a tl;dr or cached version?
评论 #7417017 未加载
mmcclure大约 11 年前
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 未加载
lukencode大约 11 年前
This is pretty awesome. Would be rad to have something similar for the world cup for us non us sports loving coders.
debaserab2大约 11 年前
This is awesome! Is there a way to go full screen on the editor? I couldn&#x27;t seem to find one.
评论 #7416873 未加载
elwell大约 11 年前
Video audio keep play when pressing Next during video play. Windows&#x2F;Chrome.
yeison大约 11 年前
Any functionality to create a pool? That would be great.
评论 #7417163 未加载
dy大约 11 年前
And we&#x27;re back - sorry overloaded our servers!
kimhowardj大约 11 年前
I&#x27;m liking the voice of that tutorial video.
apawloski大约 11 年前
This is so cool! What are you using for data?
dangeruss大约 11 年前
Very cool idea.