Classic strategy, faithfully rebuilt for the browser.
Loading game runtime…
Models stay in this browser; no upload to a server. Regular mode ignores any saved model. The starter is experimental and weaker: 65.5 moves on average versus 145.2 for regular search in 1,000 games each. More training does not guarantee improvement. Press F5 in the game to enable the selected player. Reload this page to change mode.
Download Colab training kit · Training, resume & test instructions · Starter model
The game's pictures are in this browser from an earlier visit.
This page contains no part of the original game. It draws with the original's pictures, one file of it: LINES.LIB (200 KB). It can download it for you from the copy at the Internet Archive; it then stays in this browser's storage and is never sent anywhere. Color Lines is still Gamos' work: whether to use that copy is your decision.
Or use your own copy: choose LINES.LIB or the game's zip as it is (or drop it on this page).
Move a ball to a free cell it can reach (click it, then click where; or the arrow keys and Space). Five or more balls of one colour in a row — across, down or diagonal — vanish and score; otherwise three new balls arrive (the Next three at the top). The faster you think, the more a line is worth (but only after long thoughts does it show). Beat the king's score to take his crown.
F1 help, F2 music, F3 the next balls shown or not, F4 start again, F5 autoplay / pause, F6 cycle autoplay strategy, F7 pause and show/hide leaderboard, Esc the title, F11 full screen.
B and F step back and forward through the current game. Playing a move from an earlier board starts a new branch there. S downloads a PNG screenshot. J downloads the current game as JSON, including moves and boards. Open the menu on this page to evaluate the file. K opens or closes the live move evaluator. Drag its title to move it or its lower-right corner to resize it.
M toggles cell outlines for the last move. Orange marks its starting cell and destination, and black marks the random drops. T hides or shows the added shortcut and move-counter text. D saves LINES.LIB from the Internet Archive.
U imports a replay saved with J. N changes your player name.
Click F5 Autoplay below the board to watch the computer play. Click again to pause; clicking a ball returns control to you. The default V31 strategy keeps a backup clear in reserve and searches for ways out of dry spells. Press F6 to cycle strategies. Neural mode uses a learned survival value to compare simulated outcomes. Scores stay in this browser.
Choose a JSON file saved with J to see the strategy and effects of each move. The file stays in your browser.
Source code and notes: github.com/rembish/color-lines-game.