Games tool

Four-in-a-Row Online — Local Two-Player Game

Take turns dropping a red or black disc into one of seven columns. The first player to connect four wins.

Runs in your browser. No upload.

Two players share this device. Moves are not saved or uploaded.

About this tool

Four-in-a-Row Online — Local Two-Player Game made simple.

This is a local pass-and-play game for two people sharing one device. Moves are not saved or uploaded; it has no online matchmaking or computer opponent.

Guide

Using Four-in-a-Row Online — Local Two-Player Game

This is a two-player Connect Four game that you play on one screen. You take turns dropping red and black discs into a board with seven columns and six rows, and the first player to line up four in a row wins. There is no computer opponent, no online matching and no saved score. The game is for pass-and-play with a friend sitting next to you, and nothing you do is uploaded.

How to use it

  1. Red always goes first. Click or tap any square in a column and the disc falls to the lowest empty spot in that column.
  2. Pass the device or take turns with the mouse. The status line above the board says whose turn it is, Red or Black.
  3. Make a line of four of your colour, across, up and down, or on a diagonal, before the other player does.
  4. When someone wins or the board fills up, press New game to start again with an empty board.

Worked examples

A vertical win for Red

You enter
Moves
Red 1, Black 2, Red 1, Black 2, Red 1, Black 2, Red 1
You get
Winner
Red
Moves
7
Message
Red wins!

Columns are counted 1 to 7 from the left. Red stacks four discs in column 1 while Black stacks three in column 2. Red's fourth disc completes the line on move 7, and the board stops accepting clicks.

Run through the tool’s own code.

A horizontal win on the bottom row

You enter
Moves
1, 1, 2, 2, 3, 3, 4
You get
Winner
Red
Moves
7
Message
Red wins!

Red takes the bottom squares of columns 1 to 4. Black answers by stacking on top of columns 1, 2 and 3, which does not block the row. The seventh move finishes four in a row.

Run through the tool’s own code.

A diagonal win

You enter
Moves
1, 2, 2, 3, 3, 4, 3, 4, 4, 7, 4
You get
Winner
Red
Moves
11
Message
Red wins!

After eleven moves Red's discs sit on a rising diagonal across columns 1 to 4, and the eleventh disc, dropped into column 4, completes it. This is one possible game, played to show that diagonals count as well as rows and columns.

Run through the tool’s own code.

A full board with no winner

You enter
Moves
5, 2, 1, 2, 4, 1, 7, 6, 2, 7, 3, 1, 2, 7, 6, 5, 4, 1, 4, 4, 3, 4, 7, 2, 4, 3, 6, 5, 6, 7, 5, 6, 1, 7, 5, 2, 5, 1, 6, 3, 3, 3
You get
Winner
none
Moves
42
Message
Game tied.

These 42 moves fill all seven columns without any line of four, so the game ends in a tie. Every full game uses all 42 squares, 21 for each player.

Run through the tool’s own code.

When it helps

  • Play a quick game with a friend, child or family member on one phone, tablet or laptop.
  • Pass the time in a waiting room or on a trip when you have a single device.
  • Practise spotting four-in-a-row threats before you play a real board.
  • Teach a child turn-taking and simple planning with a short game.

Limits to keep in mind

  • There is no computer opponent and no online play. Both players must share the same device, and the page does not match you with anyone.
  • There is no undo, no move history and no score board. A move cannot be taken back, and the game is not saved if you close or reload the page.
  • The board is fixed at seven columns by six rows, and Red always starts. After a new game, the starting player does not switch.
  • If a column is full, the status line asks you to choose a column that is not full, and the move does not count.

Tips

  • Play the middle columns early, because a disc in the centre can be part of more lines than a disc at the edge.
  • Before each move, look for a spot where the other player could make a line of four on their next turn, and block it.
  • Create two threats at once, such as two different squares that would each finish a line, since the other player can only block one.

Common questions

About Four-in-a-Row Online — Local Two-Player Game.

Can I play against the computer?

No. This version is for two people on the same device. The page says it has no online matchmaking and no computer opponent. If you want a solo game, you will need a different tool or a friend to take the other colour.

Who goes first, and does it change between games?

Red always goes first, and pressing New game starts again with Red. The starting colour does not alternate, so if you want to be fair, decide between yourselves who plays Red each round.

How do I win?

Be the first to have four of your discs in a straight line next to each other. The line can run across a row, up and down a column, or along a diagonal in either direction. The game stops straight away and shows who won.

What happens when the board is full?

If all 42 squares are filled and nobody has a line of four, the status line says Game tied. The board then stops accepting moves, and you can press New game to play again.

Can I take back a move?

No. There is no undo button, and the only control is New game, which clears the board. Agree before you start whether you want to allow take-backs, since the tool does not support them.

Is the game saved or sent anywhere?

No. The page says moves are not saved or uploaded. The game lives in the page, so reloading or closing it clears the board and you start fresh.

Can I use the keyboard or a screen reader?

Each square is a button with a label such as Row 6, column 1: Empty square, so you can move through them with Tab and press Enter or Space. Pressing any square in a column drops the disc into that column. The status line is announced as it changes.

How do I use Four in a row online?

Take turns dropping a red or black disc into one of seven columns. The first player to connect four wins.

Is my data uploaded to a server?

No. This tool runs locally in your browser. Your input is not uploaded.