Morpion solitaire

Revision as of 05:57, 7 June 2011 by rosettacode>MagiMaster (Created page with "{{draft task|Games}} Play a game of Morpian solitaire. Use the standard version, with 5 point lines that allows parallel lines to touch at the endpoints...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Play a game of Morpian solitaire. Use the standard version, with 5 point lines that allows parallel lines to touch at the endpoints.

Morpion solitaire is a draft programming task. It is not yet considered ready to be promoted as a complete task, for reasons that should be found in its talk page.

Morpian solitaire is played on a (theoretically) infinite grid. It begins with 36 points marked in a Greek cross:

...XXXX...
...X..X...
...X..X...
XXXX..XXXX
X........X
X........X
XXXX..XXXX
...X..X...
...X..X...
...XXXX...

A move is made by adding one point to the end of a line of 4 and drawing a straight line through the 5 points. Moves are usually marked with the number of the move. Lines cannot overlap existing lines, but they can touch at the endpoints. For this task, playing randomly is acceptable.

Note: The longest know game under these rules is 177 moves. (This isn't thought to be the longest game possible.) The shortest game possible is 20 moves.