Section

Games

Knect 4 v1.0.0

Four in a row, against the computer or between two people at one board: drop pucks into a blue upright board and make four across, up or diagonally. Four levels, from one that is easy to beat to one that never loses a game it could save, and five board sizes.

The Knect 4 window: a blue upright board part way through a game, with the panel beside it.

Download

Free, for any use, on as many computers as you like, for Windows, macOS and Linux. The game’s own code is open source under the MIT licence.

To uninstall it: on Windows, Knect 4 in Settings > Apps; on a Mac, Uninstall Knect 4 in /Applications/Reckless Technology, which leaves the other Reckless apps alone; on Linux, sudo apt remove knect4, or delete the unpacked folder.

About the game

Knect 4 is written in C++20, with its window drawn in Skia and its sound made from nothing: each click is a burst of noise a fraction of a millisecond long, the puck’s own ringing a few kilohertz up and the board’s lower knock beneath, a little different every time.

Behind the hardest level is an exact solver after Pascal Pons’s design, with an opening book for the standard board worked out by that solver from the game’s published solution (Allis 1988, Allen 1988). Four in a row on the standard board is a first-player win, and Perfect knows it.

How to play

Move the pointer over a column and your puck hangs above it, with its landing slot marked; click to drop it. The keys work too: 1 to 9 drop into the first nine columns, the arrow keys move the puck along, and Return, space or the down arrow drop it.

The puck falls behind the frame, showing through the holes as it passes, lands with a click and bounces once or twice. The computer’s puck sways above the board while it thinks, then glides to its column and drops. A new game lets the last one’s pucks out: the slider in the frame’s foot opens and they fall out column by column with a clatter.

The Knect 4 window: a blue upright board part way through a game, with the panel beside it showing the opponent, level, colours, board size and score.
A game under way. The panel beside the board sets everything and keeps the score.

The four levels

Hint shows, after a moment’s thought, the column Perfect would play; Undo takes back your last move and the computer’s answer. When a game ends the winning line glows and Play again appears over the board.

A finished game of Knect 4 with the winning line of four lit and the play again banner over the board.
A game won: the four that did it glows.

Five boards

The board can be 6 × 5, the standard 7 × 6, 8 × 7, 9 × 7, or the supersize 16 × 8. Perfect solves the standard board outright; the larger ones are too big to solve, so it plays them by searching as deeply as its time allows.

Knect 4 on the supersize sixteen by eight board, the pucks drawn smaller to fit.
The supersize board, sixteen columns by eight.

Two people at one board

Choose A friend and two people share the board and the mouse: Red and Yellow take turns, the held puck in the colour of whoever is to move, and the panel names them — by the names you type into its Players section, or by colour. First move chooses who starts, and Take turns passes the first move to the other each new game. Games between two people keep a score of their own.

Sound, marks and the window

Every landing clicks, louder the further the puck fell, through your computer’s usual output; Sound turns it off. Marks puts a cross on the red pucks and a star on the yellow, for anyone who cannot tell the colours apart. The View menu sizes the window from 50 % to 150 %.

Everything you choose, and both scores, are kept between launches, in your own settings folder.