๐Ÿ”ด Connect Four

Player 1 (Red)'s turn

A classic board game on a 7-column by 6-row grid: two players take turns dropping pieces, and whoever connects four of their own pieces first โ€” horizontally, vertically, or diagonally โ€” wins. Play against a friend on the same screen.

How to use

  1. Click a column to drop a piece into the lowest open slot in that column.
  2. Player 1 (red) and Player 2 (yellow) alternate turns.
  3. Connect four of your pieces in a row (any direction) to win. If the board fills up with no winner, it's a draw.

FAQ

What happens when a column is full?

You can no longer drop a piece into that column โ€” clicking it does nothing. Choose another column instead.

Do diagonal connections count as a win?

Yes. Both horizontal and vertical lines, as well as both diagonal directions, are checked for a four-in-a-row win.

Can I play against a computer opponent?

No, this currently only supports local two-player mode where both players take turns on the same screen.