Show HN: C4 – Connect Four Game (kenrick95.github.io)
You can play against computer (a simple AI, not that easy to beat), or against other human offline or online.
This project started back in 2013 and I first submitted to HN back in 2015: https://news.ycombinator.com/item?id=8886897
Over the years, I've made lots of code changes (several code architecture revamps, online mode, dropping old browsers), but the AI part remains relatively the same: it's using minimax algorithm to "think" several steps ahead, all calculations are run in your browser.
So I'd like to know what you think. What do you like about it and what features/improvements do you think is missing. Thanks!
1 comment
[ 3.1 ms ] story [ 15.6 ms ] thread1. 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.
2. the win/lose popup appearing immediately is a bit jarring. It would be better to highlight the winning 'line' and put the "player two wins" message so it doesn't cover the board. The 'end game' button can then be re-labelled 'new game'