Mercurial > repo
view src/ploki/examples/hanoi.pk @ 10513:28c4c6b6e9bd
<wob_jonas> `` sed -i \'s/M3/Saw Gerrera|Shmi|Sio Bibble|Sith Lord Jar Jar|Supreme Leader Snoke|Taun We|Watto|Wedge Antilles|Willard|Yoda|Zam Wessel|the Dianoga|the Rancor|the Sarlacc/\' bin/starwars && cat bin/starwars
author | HackBot |
---|---|
date | Sun, 26 Mar 2017 02:00:49 +0000 |
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