Morpion solitaire: Difference between revisions

From Rosetta Code
Content added Content deleted
(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...")
 
m (Fix WP link)
Line 1: Line 1:
{{draft task|Games}}
{{draft task|Games}}


Play a game of [[wp:Morpian_solitaire|Morpian solitaire]]. Use the standard version, with 5 point lines that allows parallel lines to touch at the endpoints.
Play a game of [[wp:Morpion solitaire|Morpion solitaire]]. Use the standard version, with 5 point lines that allows parallel lines to touch at the endpoints.


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

Revision as of 13:50, 7 June 2011

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.

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

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.