Rule 3 is the trickiest to implement. As I've noted in the update (it hasn't changed the problem, just addendum), MUIIIIU can go to both MUUIU and MUIUU. Needless to say, the regex above won't cut it (at least, it won't return the shortest transformation route).(my$C=$_)=~s/III/U/;
Also note that similar concerns apply to Rule 4; MIUUIUUI can go to MIIUUI and MIUUII, both which can go on to different strings.
In reply to Re: Re: (Golf) Gödel, Escher, and Bach, Oh My!
by Masem
in thread (Golf) Gödel, Escher, and Bach, Oh My!
by Masem
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |