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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Show HN: Blackjack Probabilities

17 点作者 abeiz大约 10 年前

4 条评论

abeiz大约 10 年前
A small weekend project. I love playing blackjack and have basic strategy memorized, but I&#x27;ve always been curious to see what the actual probabilities were for hitting, standing and doubling down. If you&#x27;d like to see the code it&#x27;s available on github: <a href="https:&#x2F;&#x2F;github.com&#x2F;ChrisZieba&#x2F;blackjack" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;ChrisZieba&#x2F;blackjack</a>.
jamesbrownuhh大约 10 年前
Some years ago (before I gave up gambling entirely) I noted that there was one UK online casino which not only offered a reasonable game of blackjack, but would also let you &quot;auto play&quot; as many hands as you wanted, using basic strategy. (i.e. to automatically play what is statistically the optimum response to any given hand.) I never saw that feature offered anywhere else, presumably because players playing imperfect games means more take for the house - but even so, a thousand perfect hands of basic stategy will almost always still leave the house having had the better side of the deal, purely due to the house edge that&#x27;s built into the game.<p>(What caused me to give up was an extremely expensive blackjack hand that started with betting $HOUSE_MAX on a hand, and getting a pair of aces. The best move is to split aces, resulting in two hands, at double the bet. And in this case, both those hands were then facing a dealer hand where basic strategy demands that you double down - so an already significant bet ended up being doubled, then doubled again. It was absolutely the right move, statistically, but didn&#x27;t go my way in the end, and although I still walked away in profit, that hand is what made me think that Blackjack was something that could one day cause me a real problem if I didn&#x27;t find something better to do with my time.)
评论 #9295513 未加载
Excluse大约 10 年前
Awesome! I&#x27;m actually about to begin work on creating a machine-learning blackjack-playing agent for a CS class project.<p>Great documentation as well. I&#x27;ll definitely be referencing this.
评论 #9299830 未加载
评论 #9290658 未加载
therealwill大约 10 年前
Awesome work! It does the calculations based on what is currently in the shoe, correct? So it should be possible to give it a custom shoe with cards removed to find the best probability for a card counter.
评论 #9290656 未加载