← Back to all games

Connect Four

Browser Connect Four: play a friend or take on the built-in computer AI.

Mouse — click a column to drop your disc. Open in new tab ↗

Source

kenrick95/c4

License

MIT

Stars

★ 280

Size

~10-200KB

Tech

原生JS · Canvas

Deploy

Static

How to play

Take turns dropping discs from the top; each one falls to the lowest open slot in its column. First to line up four in any direction — across, down or diagonal — wins.

Mouse — click a column to drop your disc.

Integration notes

A zero-dependency Canvas build whose AI logic is easy to swap out for something stronger. Bolt on WebSocket and it becomes online versus play — a low-cost springboard from single-player to multiplayer.

#原生js#canvas#mouse

FAQ

Is Connect Four free to play?

Yes. Connect Four is completely free, runs in your browser, and needs no install or account.

Is Connect Four open source?

Yes. It hosts the original open-source code by kenrick95, released under MIT. Source: https://github.com/kenrick95/c4

How do you play Connect Four?

Mouse — click a column to drop your disc.

More like this