Solve triangle solitaire puzzle: Difference between revisions

Content added Content deleted
No edit summary
No edit summary
Line 129: Line 129:


</lang>
</lang>

OUTPUT
1
. 3
. 5 6
7 8 9 A
B C D E F
Peg 4 jumped over 2 to land on 1

1
. 3
4 . .
7 8 9 A
B C D E F
Peg 6 jumped over 5 to land on 4

.
. .
4 . 6
7 8 9 A
B C D E F
Peg 1 jumped over 3 to land on 6

.
2 .
. . 6
. 8 9 A
B C D E F
Peg 7 jumped over 4 to land on 2

.
2 .
. 5 6
. . 9 A
B . D E F
Peg C jumped over 8 to land on 5

.
2 .
. 5 6
. . 9 A
B C . . F
Peg E jumped over D to land on C

.
2 .
. 5 .
. . . A
B C D . F
Peg 6 jumped over 9 to land on D

.
. .
. . .
. . 9 A
B C D . F
Peg 2 jumped over 5 to land on 9

.
. .
. . .
. . 9 A
B . . E F
Peg C jumped over D to land on E

.
. .
. . 6
. . 9 .
B . . E .
Peg F jumped over A to land on 6

.
. .
. . .
. . . .
B . D E .
Peg 6 jumped over 9 to land on D

.
. .
. . .
. . . .
B C . . .
Peg E jumped over D to land on C

.
. .
. . .
. . . .
. . D . .
Peg B jumped over C to land on D