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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Show HN: C4 – Connect Four Game

2 点作者 kenrick95大约 2 年前
You can play against computer (a simple AI, not that easy to beat), or against other human offline or online.<p>This project started back in 2013 and I first submitted to HN back in 2015: <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=8886897" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=8886897</a><p>Over the years, I&#x27;ve made lots of code changes (several code architecture revamps, online mode, dropping old browsers), but the AI part remains relatively the same: it&#x27;s using minimax algorithm to &quot;think&quot; several steps ahead, all calculations are run in your browser.<p>So I&#x27;d like to know what you think. What do you like about it and what features&#x2F;improvements do you think is missing. Thanks!

1 comment

perilunar大约 2 年前
My thoughts:<p>1. I think it needs an animation to show the pieces dropping — an important difference between connect 4 and tic-tac-toe is the role of gravity.<p>2. the win&#x2F;lose popup appearing immediately is a bit jarring. It would be better to highlight the winning &#x27;line&#x27; and put the &quot;player two wins&quot; message so it doesn&#x27;t cover the board. The &#x27;end game&#x27; button can then be re-labelled &#x27;new game&#x27;