Mercurial > repo
view src/ploki/examples/hanoi.pk @ 5983:e9e46956a506
<oerjan> mk wisdom/welcome.sv//Hej och v\xc3\xa4lkommen till den internationella knutpunkten f\xc3\xb6r esoterisk programmeringsspr\xc3\xa5ksdesign och -drifts\xc3\xa4ttning! F\xc3\xb6r mer information, se v\xc3\xa5r wiki: <http://esolangs.org/>. (F\xc3\xb6r den andra sortens esoterism, pr\xc3\xb6va #esoteric p\xc3\xa5 EFnet eller DALnet.)
author | HackBot |
---|---|
date | Mon, 14 Sep 2015 17:49:06 +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