What tips do you have for golfing in Wierd? Tips for golfing other languages don't seem to help one golf Wierd programs so I'm looking for ideas that can be applied to code golf problems that are specific to Weird - especially if it helps me reduce the size of this answer at "Hello, World!"
\$\begingroup\$
\$\endgroup\$
7
-
\$\begingroup\$ I've never heard of this language and it looks very... interesting. I don't have much to add except I'll be looking at making my own Hello, World! program soon and coming up with some tips :) \$\endgroup\$– Teal pelicanCommented Nov 30, 2016 at 9:35
-
\$\begingroup\$ @Tealpelican my two favourites are Weird and /// \$\endgroup\$– Jerry JeremiahCommented Nov 30, 2016 at 10:49
-
1\$\begingroup\$ Currently mine is ><>, I've been able to come up with 'He' in wierd atm but it's not the easiest language to figure out aha. \$\endgroup\$– Teal pelicanCommented Nov 30, 2016 at 12:31
-
\$\begingroup\$ @Tealpelican What it needs is a good editor that lets you clip rectangular pieces and rotate and flip them before reinserting them. \$\endgroup\$– Jerry JeremiahCommented Nov 30, 2016 at 18:13
-
\$\begingroup\$ My primary advice for golfing in Wierd is: don't. :P Kidding aside, I'm impressed by your determination to improve your score in this ridiculously unwieldy and not entirely well specified language. :) \$\endgroup\$– Martin EnderCommented Nov 30, 2016 at 19:24
|
Show 2 more comments
1 Answer
\$\begingroup\$
\$\endgroup\$
Don't forget about self modifying code
As Dennis showed in https://codegolf.stackexchange.com/a/142785/24812 a loop can be much shorter than a linear program and that there are clever ways to exit the loop. The spec makes it clear that a 90 degree angle allows you to choose one of two different directions at runtime. Dennis showed that you could modify the program at runtime - with amazing results.