Papertop · Games
Four in a Row
Four in a Row is played on a grid seven columns wide and six rows tall. You and the computer take turns dropping a disc into a column, where it falls to the lowest free space. The first to line up four discs horizontally, vertically or diagonally wins, and a full grid with no line is a draw. Who goes first alternates from one game to the next.
The computer uses a minimax search with alpha-beta pruning: easy looks 2 moves ahead, normal 4 and hard 7. Click or tap anywhere in a column to drop a disc there, or press 1 to 7 on the keyboard. When a game ends, the winning four are highlighted.
Your wins, the computer's wins and draws are tallied in this browser. A game can be stopped, saved and loaded again later; it's free, with no account involved.
More games in Papertop: 2048, Arena, Backgammon, Blocks, Bricks, Checkers, Chess, Grand Prix, Guesswork, Hangman, Harvest, Holdout, Knockout, Mahjong, Memory, Minesweeper, Nonogram, Orchard, Reversi, Salpakan, Shinro, Snake, Snax, Solitaire, Sudoku, Word Dice.