Mercurial > repo
view src/ploki/examples/hanoi.pk @ 12512:9b31bb5d9ee1 draft default tip
<int-e> learn The password of the month is a matter of ongoing investigations
author | HackEso <hackeso@esolangs.org> |
---|---|
date | Wed, 25 Sep 2024 19:54:44 +0100 |
parents | ac0403686959 |
children |
line wrap: on
line source
#!../ploki IF \ARG < 2 WUNT "Usage: \V\ARG:0 NUMBER\n" END -1 FI LET a "a" LET b "b" LET c "c" move \ARG:1 WUNT "\n" END FOR move IF \@ > 0 LEET ax a LEET bx b LEET cx c LET b cx LET c bx move \@ - 1 WUNT (ax_bx_" ") LET a cx LET b bx LET c ax move \@ - 1 FI KTHX