Anonymous user
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.
The advantage of using this system of output is that the Pentasol player will validate the game and provide an image of the result.
(27,25) - +2▼
...</pre>▼
The notation looks like this:
<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
▲...</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 ==
|