Rules
Connect 4 is a two-player alignment game played on a vertical 7x6 board.
Goal
Be the first to create a line of four pieces of your color.
Lines can be horizontal, vertical, or diagonal.
Turn Sequence
- Choose one of the seven columns.
- Your piece falls to the lowest empty slot in that column.
- Players alternate turns until someone has four in a row or the board is full.
Draws and End of Game
If all slots are filled and no line of four exists, the game is a draw.
When a game ends, open the menu and choose New Game to start again.
Options
Changes take effect immediately on AI turns and on new games.
About Connect 4
Legal
Copyright © 2016, 2026
@author Oliver Merkel, Merkel(dot)Oliver(at)web(dot)de.
All rights reserved. Logos, brands, and trademarks belong to their respective owners.
All source code (HTML, JavaScript, CSS) is released under the MIT License.
Images are licensed under Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License .
Third-party Code Licenses
This version uses no third-party libraries.
The AI engine uses the UCT / MCTS algorithm.