Solve triangle solitaire puzzle: Difference between revisions
Content added Content deleted
(Added Go) |
(→{{header|Go}}: Removed unnecessary type alias.) |
||
Line 342: | Line 342: | ||
type move struct{ from, to int } |
type move struct{ from, to int } |
||
type m = move |
|||
var emptyStart = 1 |
var emptyStart = 1 |
||
Line 351: | Line 349: | ||
var jumpMoves = [16][]move{ |
var jumpMoves = [16][]move{ |
||
{}, |
{}, |
||
{ |
{{2, 4}, {3, 6}}, |
||
{ |
{{4, 7}, {5, 9}}, |
||
{ |
{{5, 8}, {6, 10}}, |
||
{ |
{{2, 1}, {5, 6}, {7, 11}, {8, 13}}, |
||
{ |
{{8, 12}, {9, 14}}, |
||
{ |
{{3, 1}, {5, 4}, {9, 13}, {10, 15}}, |
||
{ |
{{4, 2}, {8, 9}}, |
||
{ |
{{5, 3}, {9, 10}}, |
||
{ |
{{5, 2}, {8, 7}}, |
||
{ |
{{9, 8}}, |
||
{ |
{{12, 13}}, |
||
{ |
{{8, 5}, {13, 14}}, |
||
{ |
{{8, 4}, {9, 6}, {12, 11}, {14, 15}}, |
||
{ |
{{9, 5}, {13, 12}}, |
||
{ |
{{10, 6}, {14, 13}}, |
||
} |
} |
||