Neon Four
A game. Connect Four in neon. Drop glowing discs and line up four in a row before the computer does.

PlayOpens the game in a new tab.
Why I made it
I wanted to make a little bot that plays a game. My son used to be obsessed with Connect Four, so it was a fun one to mess with.
Why it is interesting
Connect Four against the computer, drawn in neon. The machine plans with a minimax search: on Easy it looks two moves ahead and often blunders, and on Hard it looks nine moves ahead and never does. The Hint button runs the same search for your side and lights the move it would make.
How to play
- Pick Easy, Medium or Hard above the board.
- Click a column, or press 1 to 7, to drop a disc there.
- Or move along the top with ← → and drop with Enter.
- Connect four in a row, across, down or diagonally, before the machine does.
- Press H to see the best move and N to start a new round.
- Who moves first switches every round.