gamesmathematical programsotherabout author

Color lines

download program
download source code
versions history

This program is color lines game. Computer can analyze the position and shows best move. Computer can play automatically as well. The program is free, written on Visual C++, and has open source code.

New game

On new game one can choose some parameters

Store/load the game

If anyone can play for a long time it's possible to store and load a game.

Undo last move

One can undo last move, but it's not possible to undo two moves in a row.

Computer playing

At any time one can see best move from computer point of view. To see the move press right mouse button. If you want to follow computer move, press left mouse button on the end cell. After it you can see best move it you press right mouse button another time.

Automatic playing

At request it's possible to run automatic game. To do it press double click with right mouse button. To stop the game do double click with right mouse button once again. Computer get approx 10,000-20,000 points in the game.
Note. The computer game didn't optimize by speed. The goal was to find quite good algorithm for automatic playing. Computer get about 1,000 points per minute.


The score counter rule is very simple. If N balls disappear then score will increase by N*(N-4). If ten balls vanish then program add 10*(10-6)=60 points.

Versions history

version 2.0 ** january 2006

version 1.0 ** april 2002