Kreski / "Morpion Solitaire"

The game is known as "kreski" (lines) in my home country. The author is unknown. I used to play this game at school during boring lessons (many lessons were boring and others in my class played it too but still I do not remember finding a solution with more than 140 lines).

Aim of the game

The aim of the game is to draw as many lines as possible. The game is played on a rectangular grid. You make a move by drawing a line. At the beginning of a game there are 36 points lying on a cross-like pattern (see picture to the right or check the files: gif, eps). You can draw a line (horizontal, vertical or diagonal) of length 4 connecting four existing points and one new point. A new point (which may be located at the end or in the middle of the line) is added to the set of existing points and may be used in the following moves. At the very beginning you can make 28 different moves and the number of possible moves can become larger as the game proceeds. There are many possible combinations, and it is hard to check them all. If you know a good solution please send me an e-mail.

initial points

The best known result

148

The game is finite

Some time ago, I found how to show that the game is finite (meaning that the maximum number of moves is bounded).
It seems that the best solution is worse than the one with 205 lines (see the picture to the right) (gif, eps, text) (although I am not sure this is really the case). Hence I believe that the maximum number of lines in the game is bounded by 205 (or some number close to it). However this number is not necessarily a realizable number. For the simpler version of the game (see below) the optimal number (38) is not realizable. And although the game is finite it is impractical to check all the solutions (the number of different finished games is estimated as above 1050).

optimal (?) solution

Simpler version

There is an infinite number of versions of the game with different initial layouts of points. One of them is a version with 16 initial points filling a 4x4 square. This game can be solved. For this version there are 1597768 different final layouts of lines, where no more moves can be made. The minimum number of moves is 12, and this could be easily found. The best solutions with 31 lines (gif, eps, text) is shown to the right.
best result a simple version

Different rules

There is a different set of rules for the game, which allows one to obtain larger number of lines. The only modification is that the point, which is chosen in the given move does not have to belong to the line which is drawn. First you choose a point on the plane and then you draw a line connecting 5 adjacent points. Hence if at the beginning of the move there are 5 adjacent point you may choose a new point anywhere on the plane and then draw a line through the 5 existsing points. In this version one may choose a new point in a place where there is a good chance of drawing many lines. This version was described by Krzysztof Loryś (see http://www.mimuw.edu.pl/oi/kacik/krechy.html , http://www.oi.edu.pl/php/show.php?ac=p240100).
Best results (first five are copied from http://www.mimuw.edu.pl/oi/kacik):

How to play


Thanks to AD for the preparation of this web page.
ZG, 4625. times visited since Feb 7 1999 . hatch.html last modified on February 22, 2010