Jump to content

Talk:Morpion solitaire: Difference between revisions

→‎Game Notation: cleanup text for game notation proposal
(→‎Game Notation: more detail on notation)
(→‎Game Notation: cleanup text for game notation proposal)
Line 77:
== 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. IThere createdis onea [[Morpion_solitaire/Rosin177|here]]beforedefacto Istandard foundwhich notationsis used with the [http://pentasol.systemutvecklarna.se/ Pentasol player]. Downloadable text versions offor recorddownloadable games can be found on the [http://www.morpionsolitaire.com/English/RecordsGrids5T.htm Morpionsolitare.com records page]]. These Thegames notationcan looksbe likereplayed on the this[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
Line 103 ⟶ 97:
# R = reference point
# List of moves starts with reference point (col,row)
#
# Annotations:
# Lines are
# (col,row) <direction> <center>
Line 111 ⟶ 107:
# / left right
# center is the distance -2, -1, ..., +2 from
# the move coordinate to the center of the line being drawn
#
(12,8)
(11,14) - +2
Line 117 ⟶ 114:
(9,12) | -2
(18,7) | +2
(2714,2511) - +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 ==
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.