Solve triangle solitaire puzzle: Difference between revisions
Content added Content deleted
No edit summary |
No edit summary |
||
Line 8: | Line 8: | ||
# Python version 2.7.2 |
# Python version 2.7.2 |
||
=={{header|Ayrch}}== |
|||
<lang Ayrch> |
|||
# IQ Puzzle a triangle of 15 golf tee's typically seen at Cracker Barrel where one tee is missing |
# IQ Puzzle a triangle of 15 golf tee's typically seen at Cracker Barrel where one tee is missing |
||
# and the remaining tees jump each other until ne tee is left. The few tees left the higher the IQ |
# and the remaining tees jump each other until ne tee is left. The few tees left the higher the IQ |
||
Line 121: | Line 123: | ||
DrawBoard(board) |
DrawBoard(board) |
||
print "Peg %X jumped over %X to land on %X\n" % (peg,over,land) |
print "Peg %X jumped over %X to land on %X\n" % (peg,over,land) |
||
</lang> |