Anonymous user
Solve a Hidato puzzle: Difference between revisions
→{{header|Tailspin}}: Clearer types (required thanks to autotyping)
(→{{header|Tailspin}}: Clearer types (required thanks to autotyping)) |
|||
Line 4,711:
templates hidato
composer setup
@: {row: 1, col: 1, givenInput:[]};
{ board: [ <line>+ ], given: $@.
rule line: [ <cell>+ ] (<'\n '>?) (..|@: {row: $@.row + 1, col: 1};)
rule cell: <open|blocked|given> (<' '>?) (@.col: $@.col + 1;)
Line 4,718 ⟶ 4,719:
rule blocked: <' \.'> -> -1
rule given: (<' '>?) (def given: <INT>;)
($given -> ..|@.
($given -> @.
$given
end setup
|