Talk:Morpion solitaire: Difference between revisions

Content added Content deleted
(→‎Game Notation: more detail on notation)
(→‎Game Notation: cleanup text for game notation proposal)
Line 77: Line 77:
== Game Notation ==
== Game Notation ==


While working on this I realized it might be handy to be able to replay games and a game notation would be needed. I created one [[Morpion_solitaire/Rosin177|here]]before I found notations used with the [http://pentasol.systemutvecklarna.se/ Pentasol player]. Downloadable text versions of record games can be found on the [http://www.morpionsolitaire.com/English/RecordsGrids5T.htm Morpionsolitare.com records page]]. The notation looks like this:
While working on this I realized it might be handy to be able to replay games and a game notation would be needed. There is a defacto standard which is used for downloadable games found on the [http://www.morpionsolitaire.com/English/RecordsGrids5T.htm Morpionsolitare.com records page]]. These games can be replayed on the [http://pentasol.systemutvecklarna.se/ Pentasol player].

<pre># Morpion Solitaire game
The advantage of using this system of output is that the Pentasol player will validate the game and provide an image of the result.
(28,28)
(27,25) - +2
(32,32) / 0
(30,28) - +2
(28,35) | -2
(30,33) / 0
...</pre>
The above is taken from [[http://www.morpionsolitaire.com/Grid5T177RosinA.txt Rosin's 1st 177 move game]]. The first line references the final position of the north-west valley. Each line is a set of coordinates followed by a direction and a distance. I haven't found an explanation of the final integer; however, they appear to be 0,1,2 indicating where the center of the line is relative to the move (center=0, top/left end=+2, etc.). Also the order of coordinates here is '''(column, row)''' the reverse of what I used. --[[User:Dgamey|Dgamey]] 12:18, 9 February 2012 (UTC)


The notation looks like this:
<pre># Pentasol compatible format for a Morpion Solitaire game
<pre>
#
#
# XXXX
# XXXX
Line 103: Line 97:
# R = reference point
# R = reference point
# List of moves starts with reference point (col,row)
# List of moves starts with reference point (col,row)
#
# Annotations:
# Lines are
# Lines are
# (col,row) <direction> <center>
# (col,row) <direction> <center>
Line 111: Line 107:
# / left right
# / left right
# center is the distance -2, -1, ..., +2 from
# center is the distance -2, -1, ..., +2 from
# the move to the center of the line being drawn
# the move coordinate to the center of the line being drawn
#
(12,8)
(12,8)
(11,14) - +2
(11,14) - +2
Line 117: Line 114:
(9,12) | -2
(9,12) | -2
(18,7) | +2
(18,7) | +2
(14,11) - +2
(14,11) - +2</pre>--[[User:Dgamey|Dgamey]] 02:06, 13 February 2012 (UTC)
...</pre>

While I was unable to find a detailed description of the format, what I worked out is in the annotated comments above. Comment lines are preceded by hashes. The first line references the final position of the north-west valley of the starting cross. Each line is a set of coordinates of the move followed by a direction and an offset to the center of the line created by the move. The table in the comment above tells you how to figure out where the start of the line is. All coordinates use (column, row) order. --[[User:Dgamey|Dgamey]] 13:41, 13 February 2012 (UTC)


== Proposed Addition to the task definition ==
== Proposed Addition to the task definition ==