Print “N NE E SE S SW W NW”Is my name official?Calculate the day number of the yearRandom Golf of the Day...

Proving that a Russian cryptographic standard is too structured

Razzle Dazzle simulator

NUL delimited variable

Is it safe to remove python 2.7.15rc1 from Ubuntu 18.04?

Flight compensation with agent

C++ logging library

As easy as Three, Two, One... How fast can you go from Five to Four?

How to destroy a galactic level civilization and still leave behind primitive survivors?

Can there be absolute velocity?

Can the removal of a duty-free sales trolley result in a measurable reduction in emissions?

What should I discuss with my DM prior to my first game?

Why do radiation hardened IC packages often have long leads?

How far would a landing Airbus A380 go until it stops with no brakes?

What is the reason for setting flaps 1 on the ground at high temperatures?

How do you play "tenth" chords on the guitar?

Why did Intel abandon unified CPU cache?

Extracting data from Plot

Do empty drive bays need to be filled?

What is the logic behind charging tax _in the form of money_ for owning property when the property does not produce money?

Does the Nuka-Cola bottler actually generate nuka cola?

Do you have to have figures when playing D&D?

How to befriend someone who doesn't like to talk?

How can I remove material from this wood beam?

How can powerful telekinesis avoid violating Newton's 3rd Law?



Print “N NE E SE S SW W NW”


Is my name official?Calculate the day number of the yearRandom Golf of the Day #7: A distinctly random characterDouble rotationLoading… ForeverMatch this random stringThe shortest distance between two points is a lineTuple addition in pointfreeAlmost a Columbo episodeKolmogorov Flexibility. A.K.A. Sale! $38%$ Off All Codegolf While Stocks Last!













5












$begingroup$


This seems almost trivial, but since after some effort I was not able to beat the literal solution in J, I thought it might make a decent challenge (though, to be clear, this is not a J-specific challenge).



Title says it all. You simply need to write a program, or function (taking no arguments) that returns or prints:



N NE E SE S SW W NW


You may use newlines in place of spaces.



A no-argument function returning an array of strings such as



['N', 'NE', 'E', 'SE', 'S', 'SW', 'W', 'NW']


is also acceptable.



The letters may be upper or lower case, but may not be mixed.










share|improve this question











$endgroup$












  • $begingroup$
    There's a reason snippets are banned by default. As is, someone can just submit "N NE E SE S SW W NW" as a valid answer for most sttandard languages. Please consider removing that, since no-one has yet taken advantage of it
    $endgroup$
    – Jo King
    1 hour ago










  • $begingroup$
    Perhaps allowing them to be output in any order would be slightly more interesting
    $endgroup$
    – Jo King
    1 hour ago










  • $begingroup$
    @JoKing Sure, I'll remove that. Honestly, I didn't expect anyone to submit answers that used the full literal value -- that's not in the spirit of the question. As I state, it came up because I wasn't able to beat the literal in J, despite the string having regularity and structure of a sort. The whole point is to exploit that regularity to beat a literal answer. Bad on me for not being more explicit. Allowing them any order defeats that as well, so I don't want to make that change.
    $endgroup$
    – Jonah
    23 mins ago


















5












$begingroup$


This seems almost trivial, but since after some effort I was not able to beat the literal solution in J, I thought it might make a decent challenge (though, to be clear, this is not a J-specific challenge).



Title says it all. You simply need to write a program, or function (taking no arguments) that returns or prints:



N NE E SE S SW W NW


You may use newlines in place of spaces.



A no-argument function returning an array of strings such as



['N', 'NE', 'E', 'SE', 'S', 'SW', 'W', 'NW']


is also acceptable.



The letters may be upper or lower case, but may not be mixed.










share|improve this question











$endgroup$












  • $begingroup$
    There's a reason snippets are banned by default. As is, someone can just submit "N NE E SE S SW W NW" as a valid answer for most sttandard languages. Please consider removing that, since no-one has yet taken advantage of it
    $endgroup$
    – Jo King
    1 hour ago










  • $begingroup$
    Perhaps allowing them to be output in any order would be slightly more interesting
    $endgroup$
    – Jo King
    1 hour ago










  • $begingroup$
    @JoKing Sure, I'll remove that. Honestly, I didn't expect anyone to submit answers that used the full literal value -- that's not in the spirit of the question. As I state, it came up because I wasn't able to beat the literal in J, despite the string having regularity and structure of a sort. The whole point is to exploit that regularity to beat a literal answer. Bad on me for not being more explicit. Allowing them any order defeats that as well, so I don't want to make that change.
    $endgroup$
    – Jonah
    23 mins ago
















5












5








5


1



$begingroup$


This seems almost trivial, but since after some effort I was not able to beat the literal solution in J, I thought it might make a decent challenge (though, to be clear, this is not a J-specific challenge).



Title says it all. You simply need to write a program, or function (taking no arguments) that returns or prints:



N NE E SE S SW W NW


You may use newlines in place of spaces.



A no-argument function returning an array of strings such as



['N', 'NE', 'E', 'SE', 'S', 'SW', 'W', 'NW']


is also acceptable.



The letters may be upper or lower case, but may not be mixed.










share|improve this question











$endgroup$




This seems almost trivial, but since after some effort I was not able to beat the literal solution in J, I thought it might make a decent challenge (though, to be clear, this is not a J-specific challenge).



Title says it all. You simply need to write a program, or function (taking no arguments) that returns or prints:



N NE E SE S SW W NW


You may use newlines in place of spaces.



A no-argument function returning an array of strings such as



['N', 'NE', 'E', 'SE', 'S', 'SW', 'W', 'NW']


is also acceptable.



The letters may be upper or lower case, but may not be mixed.







code-golf string kolmogorov-complexity






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 22 mins ago







Jonah

















asked 9 hours ago









JonahJonah

3,5061019




3,5061019












  • $begingroup$
    There's a reason snippets are banned by default. As is, someone can just submit "N NE E SE S SW W NW" as a valid answer for most sttandard languages. Please consider removing that, since no-one has yet taken advantage of it
    $endgroup$
    – Jo King
    1 hour ago










  • $begingroup$
    Perhaps allowing them to be output in any order would be slightly more interesting
    $endgroup$
    – Jo King
    1 hour ago










  • $begingroup$
    @JoKing Sure, I'll remove that. Honestly, I didn't expect anyone to submit answers that used the full literal value -- that's not in the spirit of the question. As I state, it came up because I wasn't able to beat the literal in J, despite the string having regularity and structure of a sort. The whole point is to exploit that regularity to beat a literal answer. Bad on me for not being more explicit. Allowing them any order defeats that as well, so I don't want to make that change.
    $endgroup$
    – Jonah
    23 mins ago




















  • $begingroup$
    There's a reason snippets are banned by default. As is, someone can just submit "N NE E SE S SW W NW" as a valid answer for most sttandard languages. Please consider removing that, since no-one has yet taken advantage of it
    $endgroup$
    – Jo King
    1 hour ago










  • $begingroup$
    Perhaps allowing them to be output in any order would be slightly more interesting
    $endgroup$
    – Jo King
    1 hour ago










  • $begingroup$
    @JoKing Sure, I'll remove that. Honestly, I didn't expect anyone to submit answers that used the full literal value -- that's not in the spirit of the question. As I state, it came up because I wasn't able to beat the literal in J, despite the string having regularity and structure of a sort. The whole point is to exploit that regularity to beat a literal answer. Bad on me for not being more explicit. Allowing them any order defeats that as well, so I don't want to make that change.
    $endgroup$
    – Jonah
    23 mins ago


















$begingroup$
There's a reason snippets are banned by default. As is, someone can just submit "N NE E SE S SW W NW" as a valid answer for most sttandard languages. Please consider removing that, since no-one has yet taken advantage of it
$endgroup$
– Jo King
1 hour ago




$begingroup$
There's a reason snippets are banned by default. As is, someone can just submit "N NE E SE S SW W NW" as a valid answer for most sttandard languages. Please consider removing that, since no-one has yet taken advantage of it
$endgroup$
– Jo King
1 hour ago












$begingroup$
Perhaps allowing them to be output in any order would be slightly more interesting
$endgroup$
– Jo King
1 hour ago




$begingroup$
Perhaps allowing them to be output in any order would be slightly more interesting
$endgroup$
– Jo King
1 hour ago












$begingroup$
@JoKing Sure, I'll remove that. Honestly, I didn't expect anyone to submit answers that used the full literal value -- that's not in the spirit of the question. As I state, it came up because I wasn't able to beat the literal in J, despite the string having regularity and structure of a sort. The whole point is to exploit that regularity to beat a literal answer. Bad on me for not being more explicit. Allowing them any order defeats that as well, so I don't want to make that change.
$endgroup$
– Jonah
23 mins ago






$begingroup$
@JoKing Sure, I'll remove that. Honestly, I didn't expect anyone to submit answers that used the full literal value -- that's not in the spirit of the question. As I state, it came up because I wasn't able to beat the literal in J, despite the string having regularity and structure of a sort. The whole point is to exploit that regularity to beat a literal answer. Bad on me for not being more explicit. Allowing them any order defeats that as well, so I don't want to make that change.
$endgroup$
– Jonah
23 mins ago












13 Answers
13






active

oldest

votes


















3












$begingroup$


Canvas, 12 bytes



>X½+T)AuS{⁹‟


Try it here!



The string, simply compressed.






share|improve this answer









$endgroup$





















    2












    $begingroup$


    PHP, 19 bytes





    N NE E SE S SW W NW


    Try it online!



    Getting this out of the way. Someone will do it eventually.






    share|improve this answer









    $endgroup$





















      1












      $begingroup$


      Charcoal, 14 bytes



      ”{⊟“�_Zn↖⦄RüΦ≦


      Try it online! Link is to verbose version of code... which is just the string to be printed, as the auto-deverbosifier takes care of the string compression.



      Printing the string uncompressed takes 19 bytes, since Charcoal prints printable ASCII literally. The best algorithmic answer I could come up with unfortunately takes 20 bytes:



      E⁸ΦSNWE›³﹪⁻﹪⁺⁵×⁶μχι⁸


      Try it online! Outputs using array format (would cost two bytes to join the elements on spaces). Works by noticing that the letters of the string SNWE are used only when the current outer index equals or is 1 away (modulo 8) in either direction from the corresponding element of the list of indices 4,0,6,2.






      share|improve this answer









      $endgroup$





















        1












        $begingroup$


        Jelly, 18 bytes



        “ç0ṫḥ¡yƊHȯ ȦṇCṂcḊ»


        Try it online!



        The string compressed






        share|improve this answer









        $endgroup$





















          1












          $begingroup$


          Jelly, 16 bytes



          “æṖØq’ḃ⁴ḃ4ị“NESW


          Try it online!



          With footer to print separated by space



          A niladic link which returns a list of strings. 2 bytes shorter (and arguably more interesting) than the compressed string in Jelly.






          share|improve this answer









          $endgroup$





















            1












            $begingroup$


            Jelly,  16  15 bytes



            “¤œỵpq⁵’ṃ“NESW 


            A full program printing the text



            Try it online!





            16...



            “¥Þ¡¦¢¬£æ‘ṃ“¡ɱ⁻»


            A niladic Link which yields a list of lists of (lowercase) characters.



            Try it online!





            Alternative 15 as a niladic Link which yields a list of (lowercase) characters (with spaces): “¡XÇŀqỵÑ’ṃ“¡⁴ṁ».






            share|improve this answer











            $endgroup$





















              1












              $begingroup$


              Brain-Flak, 204 bytes



              ((((((((((((((((()()()){}()){}){}())){}{}))<([([][]){}()]{})(([][]){}[])>)<([][]
              ()())>)[[]]()())<([]()()())>)<((([]())[][]){}[][()])>)<([][()()])>[[]()])<([][((
              )()){}])>)((()()())){}{})<((()()()()()){})>)


              Try it online!






              share|improve this answer









              $endgroup$





















                1












                $begingroup$


                brainfuck, 142 139 bytes



                ++++++++[>++++>++++++++++<<-]>>--.<.>.---------.<.>.<.>++++++++++++++.--------------.<.>++++++++++++++.<.>.++++.<.>.<.>---------.+++++++++.


                Try it online!



                OK, it works. Now to start golfing it.






                share|improve this answer











                $endgroup$













                • $begingroup$
                  Lol I've never understood how anyone can "golf" these obscure languages. Its hard enough to understand what the code does in the first place (this is said coming from C++ / Java background)
                  $endgroup$
                  – mackycheese21
                  1 hour ago



















                1












                $begingroup$


                Japt, 16 bytes



                Returns an array of lowercase strings. The compressed string was 18 bytes but using a as the delimiter instead and then splitting on that worked out shorter.



                `nÂà!Z°°nw`qa 


                Try it - footer formats the output.






                share|improve this answer











                $endgroup$





















                  1












                  $begingroup$


                  05AB1E, 14 bytes



                  .•2Àβ‡yÞJŒ¾oÒ8


                  Try it online!



                  This prints out the string except lowercase.






                  share|improve this answer











                  $endgroup$













                  • $begingroup$
                    Just remove the final for -1
                    $endgroup$
                    – Grimy
                    3 hours ago



















                  0












                  $begingroup$


                  Python 2, 27 26 bytes





                  print"N NE E SE S SW W NW"


                  Try it online!



                  boring solution






                  share|improve this answer











                  $endgroup$













                  • $begingroup$
                    Redundant space before "
                    $endgroup$
                    – Jonathan Allan
                    7 hours ago










                  • $begingroup$
                    @JonathanAllan Oh, whoops!
                    $endgroup$
                    – MilkyWay90
                    7 hours ago



















                  0












                  $begingroup$

                  Java, 24 25 bytes



                  Quick, gotta do it before anyone else



                  ()->"N NE E SE S SW W NW"


                  +1 byte; we can't take arguments (although I can argue that null is technically the absence of an argument).
                  TIO






                  share|improve this answer











                  $endgroup$





















                    0












                    $begingroup$


                    C# (Visual C# Interactive Compiler), 24 bytes





                    _=>"N NE E SE S SW W NW"


                    Try it online!






                    share|improve this answer









                    $endgroup$














                      Your Answer






                      StackExchange.ifUsing("editor", function () {
                      StackExchange.using("externalEditor", function () {
                      StackExchange.using("snippets", function () {
                      StackExchange.snippets.init();
                      });
                      });
                      }, "code-snippets");

                      StackExchange.ready(function() {
                      var channelOptions = {
                      tags: "".split(" "),
                      id: "200"
                      };
                      initTagRenderer("".split(" "), "".split(" "), channelOptions);

                      StackExchange.using("externalEditor", function() {
                      // Have to fire editor after snippets, if snippets enabled
                      if (StackExchange.settings.snippets.snippetsEnabled) {
                      StackExchange.using("snippets", function() {
                      createEditor();
                      });
                      }
                      else {
                      createEditor();
                      }
                      });

                      function createEditor() {
                      StackExchange.prepareEditor({
                      heartbeatType: 'answer',
                      autoActivateHeartbeat: false,
                      convertImagesToLinks: false,
                      noModals: true,
                      showLowRepImageUploadWarning: true,
                      reputationToPostImages: null,
                      bindNavPrevention: true,
                      postfix: "",
                      imageUploader: {
                      brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
                      contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
                      allowUrls: true
                      },
                      onDemand: true,
                      discardSelector: ".discard-answer"
                      ,immediatelyShowMarkdownHelp:true
                      });


                      }
                      });














                      draft saved

                      draft discarded


















                      StackExchange.ready(
                      function () {
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fcodegolf.stackexchange.com%2fquestions%2f186582%2fprint-n-ne-e-se-s-sw-w-nw%23new-answer', 'question_page');
                      }
                      );

                      Post as a guest















                      Required, but never shown

























                      13 Answers
                      13






                      active

                      oldest

                      votes








                      13 Answers
                      13






                      active

                      oldest

                      votes









                      active

                      oldest

                      votes






                      active

                      oldest

                      votes









                      3












                      $begingroup$


                      Canvas, 12 bytes



                      >X½+T)AuS{⁹‟


                      Try it here!



                      The string, simply compressed.






                      share|improve this answer









                      $endgroup$


















                        3












                        $begingroup$


                        Canvas, 12 bytes



                        >X½+T)AuS{⁹‟


                        Try it here!



                        The string, simply compressed.






                        share|improve this answer









                        $endgroup$
















                          3












                          3








                          3





                          $begingroup$


                          Canvas, 12 bytes



                          >X½+T)AuS{⁹‟


                          Try it here!



                          The string, simply compressed.






                          share|improve this answer









                          $endgroup$




                          Canvas, 12 bytes



                          >X½+T)AuS{⁹‟


                          Try it here!



                          The string, simply compressed.







                          share|improve this answer












                          share|improve this answer



                          share|improve this answer










                          answered 8 hours ago









                          dzaimadzaima

                          16.5k22061




                          16.5k22061























                              2












                              $begingroup$


                              PHP, 19 bytes





                              N NE E SE S SW W NW


                              Try it online!



                              Getting this out of the way. Someone will do it eventually.






                              share|improve this answer









                              $endgroup$


















                                2












                                $begingroup$


                                PHP, 19 bytes





                                N NE E SE S SW W NW


                                Try it online!



                                Getting this out of the way. Someone will do it eventually.






                                share|improve this answer









                                $endgroup$
















                                  2












                                  2








                                  2





                                  $begingroup$


                                  PHP, 19 bytes





                                  N NE E SE S SW W NW


                                  Try it online!



                                  Getting this out of the way. Someone will do it eventually.






                                  share|improve this answer









                                  $endgroup$




                                  PHP, 19 bytes





                                  N NE E SE S SW W NW


                                  Try it online!



                                  Getting this out of the way. Someone will do it eventually.







                                  share|improve this answer












                                  share|improve this answer



                                  share|improve this answer










                                  answered 5 hours ago









                                  gwaughgwaugh

                                  2,9581722




                                  2,9581722























                                      1












                                      $begingroup$


                                      Charcoal, 14 bytes



                                      ”{⊟“�_Zn↖⦄RüΦ≦


                                      Try it online! Link is to verbose version of code... which is just the string to be printed, as the auto-deverbosifier takes care of the string compression.



                                      Printing the string uncompressed takes 19 bytes, since Charcoal prints printable ASCII literally. The best algorithmic answer I could come up with unfortunately takes 20 bytes:



                                      E⁸ΦSNWE›³﹪⁻﹪⁺⁵×⁶μχι⁸


                                      Try it online! Outputs using array format (would cost two bytes to join the elements on spaces). Works by noticing that the letters of the string SNWE are used only when the current outer index equals or is 1 away (modulo 8) in either direction from the corresponding element of the list of indices 4,0,6,2.






                                      share|improve this answer









                                      $endgroup$


















                                        1












                                        $begingroup$


                                        Charcoal, 14 bytes



                                        ”{⊟“�_Zn↖⦄RüΦ≦


                                        Try it online! Link is to verbose version of code... which is just the string to be printed, as the auto-deverbosifier takes care of the string compression.



                                        Printing the string uncompressed takes 19 bytes, since Charcoal prints printable ASCII literally. The best algorithmic answer I could come up with unfortunately takes 20 bytes:



                                        E⁸ΦSNWE›³﹪⁻﹪⁺⁵×⁶μχι⁸


                                        Try it online! Outputs using array format (would cost two bytes to join the elements on spaces). Works by noticing that the letters of the string SNWE are used only when the current outer index equals or is 1 away (modulo 8) in either direction from the corresponding element of the list of indices 4,0,6,2.






                                        share|improve this answer









                                        $endgroup$
















                                          1












                                          1








                                          1





                                          $begingroup$


                                          Charcoal, 14 bytes



                                          ”{⊟“�_Zn↖⦄RüΦ≦


                                          Try it online! Link is to verbose version of code... which is just the string to be printed, as the auto-deverbosifier takes care of the string compression.



                                          Printing the string uncompressed takes 19 bytes, since Charcoal prints printable ASCII literally. The best algorithmic answer I could come up with unfortunately takes 20 bytes:



                                          E⁸ΦSNWE›³﹪⁻﹪⁺⁵×⁶μχι⁸


                                          Try it online! Outputs using array format (would cost two bytes to join the elements on spaces). Works by noticing that the letters of the string SNWE are used only when the current outer index equals or is 1 away (modulo 8) in either direction from the corresponding element of the list of indices 4,0,6,2.






                                          share|improve this answer









                                          $endgroup$




                                          Charcoal, 14 bytes



                                          ”{⊟“�_Zn↖⦄RüΦ≦


                                          Try it online! Link is to verbose version of code... which is just the string to be printed, as the auto-deverbosifier takes care of the string compression.



                                          Printing the string uncompressed takes 19 bytes, since Charcoal prints printable ASCII literally. The best algorithmic answer I could come up with unfortunately takes 20 bytes:



                                          E⁸ΦSNWE›³﹪⁻﹪⁺⁵×⁶μχι⁸


                                          Try it online! Outputs using array format (would cost two bytes to join the elements on spaces). Works by noticing that the letters of the string SNWE are used only when the current outer index equals or is 1 away (modulo 8) in either direction from the corresponding element of the list of indices 4,0,6,2.







                                          share|improve this answer












                                          share|improve this answer



                                          share|improve this answer










                                          answered 8 hours ago









                                          NeilNeil

                                          84.7k845183




                                          84.7k845183























                                              1












                                              $begingroup$


                                              Jelly, 18 bytes



                                              “ç0ṫḥ¡yƊHȯ ȦṇCṂcḊ»


                                              Try it online!



                                              The string compressed






                                              share|improve this answer









                                              $endgroup$


















                                                1












                                                $begingroup$


                                                Jelly, 18 bytes



                                                “ç0ṫḥ¡yƊHȯ ȦṇCṂcḊ»


                                                Try it online!



                                                The string compressed






                                                share|improve this answer









                                                $endgroup$
















                                                  1












                                                  1








                                                  1





                                                  $begingroup$


                                                  Jelly, 18 bytes



                                                  “ç0ṫḥ¡yƊHȯ ȦṇCṂcḊ»


                                                  Try it online!



                                                  The string compressed






                                                  share|improve this answer









                                                  $endgroup$




                                                  Jelly, 18 bytes



                                                  “ç0ṫḥ¡yƊHȯ ȦṇCṂcḊ»


                                                  Try it online!



                                                  The string compressed







                                                  share|improve this answer












                                                  share|improve this answer



                                                  share|improve this answer










                                                  answered 7 hours ago









                                                  MilkyWay90MilkyWay90

                                                  995322




                                                  995322























                                                      1












                                                      $begingroup$


                                                      Jelly, 16 bytes



                                                      “æṖØq’ḃ⁴ḃ4ị“NESW


                                                      Try it online!



                                                      With footer to print separated by space



                                                      A niladic link which returns a list of strings. 2 bytes shorter (and arguably more interesting) than the compressed string in Jelly.






                                                      share|improve this answer









                                                      $endgroup$


















                                                        1












                                                        $begingroup$


                                                        Jelly, 16 bytes



                                                        “æṖØq’ḃ⁴ḃ4ị“NESW


                                                        Try it online!



                                                        With footer to print separated by space



                                                        A niladic link which returns a list of strings. 2 bytes shorter (and arguably more interesting) than the compressed string in Jelly.






                                                        share|improve this answer









                                                        $endgroup$
















                                                          1












                                                          1








                                                          1





                                                          $begingroup$


                                                          Jelly, 16 bytes



                                                          “æṖØq’ḃ⁴ḃ4ị“NESW


                                                          Try it online!



                                                          With footer to print separated by space



                                                          A niladic link which returns a list of strings. 2 bytes shorter (and arguably more interesting) than the compressed string in Jelly.






                                                          share|improve this answer









                                                          $endgroup$




                                                          Jelly, 16 bytes



                                                          “æṖØq’ḃ⁴ḃ4ị“NESW


                                                          Try it online!



                                                          With footer to print separated by space



                                                          A niladic link which returns a list of strings. 2 bytes shorter (and arguably more interesting) than the compressed string in Jelly.







                                                          share|improve this answer












                                                          share|improve this answer



                                                          share|improve this answer










                                                          answered 7 hours ago









                                                          Nick KennedyNick Kennedy

                                                          2,974610




                                                          2,974610























                                                              1












                                                              $begingroup$


                                                              Jelly,  16  15 bytes



                                                              “¤œỵpq⁵’ṃ“NESW 


                                                              A full program printing the text



                                                              Try it online!





                                                              16...



                                                              “¥Þ¡¦¢¬£æ‘ṃ“¡ɱ⁻»


                                                              A niladic Link which yields a list of lists of (lowercase) characters.



                                                              Try it online!





                                                              Alternative 15 as a niladic Link which yields a list of (lowercase) characters (with spaces): “¡XÇŀqỵÑ’ṃ“¡⁴ṁ».






                                                              share|improve this answer











                                                              $endgroup$


















                                                                1












                                                                $begingroup$


                                                                Jelly,  16  15 bytes



                                                                “¤œỵpq⁵’ṃ“NESW 


                                                                A full program printing the text



                                                                Try it online!





                                                                16...



                                                                “¥Þ¡¦¢¬£æ‘ṃ“¡ɱ⁻»


                                                                A niladic Link which yields a list of lists of (lowercase) characters.



                                                                Try it online!





                                                                Alternative 15 as a niladic Link which yields a list of (lowercase) characters (with spaces): “¡XÇŀqỵÑ’ṃ“¡⁴ṁ».






                                                                share|improve this answer











                                                                $endgroup$
















                                                                  1












                                                                  1








                                                                  1





                                                                  $begingroup$


                                                                  Jelly,  16  15 bytes



                                                                  “¤œỵpq⁵’ṃ“NESW 


                                                                  A full program printing the text



                                                                  Try it online!





                                                                  16...



                                                                  “¥Þ¡¦¢¬£æ‘ṃ“¡ɱ⁻»


                                                                  A niladic Link which yields a list of lists of (lowercase) characters.



                                                                  Try it online!





                                                                  Alternative 15 as a niladic Link which yields a list of (lowercase) characters (with spaces): “¡XÇŀqỵÑ’ṃ“¡⁴ṁ».






                                                                  share|improve this answer











                                                                  $endgroup$




                                                                  Jelly,  16  15 bytes



                                                                  “¤œỵpq⁵’ṃ“NESW 


                                                                  A full program printing the text



                                                                  Try it online!





                                                                  16...



                                                                  “¥Þ¡¦¢¬£æ‘ṃ“¡ɱ⁻»


                                                                  A niladic Link which yields a list of lists of (lowercase) characters.



                                                                  Try it online!





                                                                  Alternative 15 as a niladic Link which yields a list of (lowercase) characters (with spaces): “¡XÇŀqỵÑ’ṃ“¡⁴ṁ».







                                                                  share|improve this answer














                                                                  share|improve this answer



                                                                  share|improve this answer








                                                                  edited 7 hours ago

























                                                                  answered 7 hours ago









                                                                  Jonathan AllanJonathan Allan

                                                                  56.2k538178




                                                                  56.2k538178























                                                                      1












                                                                      $begingroup$


                                                                      Brain-Flak, 204 bytes



                                                                      ((((((((((((((((()()()){}()){}){}())){}{}))<([([][]){}()]{})(([][]){}[])>)<([][]
                                                                      ()())>)[[]]()())<([]()()())>)<((([]())[][]){}[][()])>)<([][()()])>[[]()])<([][((
                                                                      )()){}])>)((()()())){}{})<((()()()()()){})>)


                                                                      Try it online!






                                                                      share|improve this answer









                                                                      $endgroup$


















                                                                        1












                                                                        $begingroup$


                                                                        Brain-Flak, 204 bytes



                                                                        ((((((((((((((((()()()){}()){}){}())){}{}))<([([][]){}()]{})(([][]){}[])>)<([][]
                                                                        ()())>)[[]]()())<([]()()())>)<((([]())[][]){}[][()])>)<([][()()])>[[]()])<([][((
                                                                        )()){}])>)((()()())){}{})<((()()()()()){})>)


                                                                        Try it online!






                                                                        share|improve this answer









                                                                        $endgroup$
















                                                                          1












                                                                          1








                                                                          1





                                                                          $begingroup$


                                                                          Brain-Flak, 204 bytes



                                                                          ((((((((((((((((()()()){}()){}){}())){}{}))<([([][]){}()]{})(([][]){}[])>)<([][]
                                                                          ()())>)[[]]()())<([]()()())>)<((([]())[][]){}[][()])>)<([][()()])>[[]()])<([][((
                                                                          )()){}])>)((()()())){}{})<((()()()()()){})>)


                                                                          Try it online!






                                                                          share|improve this answer









                                                                          $endgroup$




                                                                          Brain-Flak, 204 bytes



                                                                          ((((((((((((((((()()()){}()){}){}())){}{}))<([([][]){}()]{})(([][]){}[])>)<([][]
                                                                          ()())>)[[]]()())<([]()()())>)<((([]())[][]){}[][()])>)<([][()()])>[[]()])<([][((
                                                                          )()){}])>)((()()())){}{})<((()()()()()){})>)


                                                                          Try it online!







                                                                          share|improve this answer












                                                                          share|improve this answer



                                                                          share|improve this answer










                                                                          answered 6 hours ago









                                                                          DJMcMayhemDJMcMayhem

                                                                          40.8k12151317




                                                                          40.8k12151317























                                                                              1












                                                                              $begingroup$


                                                                              brainfuck, 142 139 bytes



                                                                              ++++++++[>++++>++++++++++<<-]>>--.<.>.---------.<.>.<.>++++++++++++++.--------------.<.>++++++++++++++.<.>.++++.<.>.<.>---------.+++++++++.


                                                                              Try it online!



                                                                              OK, it works. Now to start golfing it.






                                                                              share|improve this answer











                                                                              $endgroup$













                                                                              • $begingroup$
                                                                                Lol I've never understood how anyone can "golf" these obscure languages. Its hard enough to understand what the code does in the first place (this is said coming from C++ / Java background)
                                                                                $endgroup$
                                                                                – mackycheese21
                                                                                1 hour ago
















                                                                              1












                                                                              $begingroup$


                                                                              brainfuck, 142 139 bytes



                                                                              ++++++++[>++++>++++++++++<<-]>>--.<.>.---------.<.>.<.>++++++++++++++.--------------.<.>++++++++++++++.<.>.++++.<.>.<.>---------.+++++++++.


                                                                              Try it online!



                                                                              OK, it works. Now to start golfing it.






                                                                              share|improve this answer











                                                                              $endgroup$













                                                                              • $begingroup$
                                                                                Lol I've never understood how anyone can "golf" these obscure languages. Its hard enough to understand what the code does in the first place (this is said coming from C++ / Java background)
                                                                                $endgroup$
                                                                                – mackycheese21
                                                                                1 hour ago














                                                                              1












                                                                              1








                                                                              1





                                                                              $begingroup$


                                                                              brainfuck, 142 139 bytes



                                                                              ++++++++[>++++>++++++++++<<-]>>--.<.>.---------.<.>.<.>++++++++++++++.--------------.<.>++++++++++++++.<.>.++++.<.>.<.>---------.+++++++++.


                                                                              Try it online!



                                                                              OK, it works. Now to start golfing it.






                                                                              share|improve this answer











                                                                              $endgroup$




                                                                              brainfuck, 142 139 bytes



                                                                              ++++++++[>++++>++++++++++<<-]>>--.<.>.---------.<.>.<.>++++++++++++++.--------------.<.>++++++++++++++.<.>.++++.<.>.<.>---------.+++++++++.


                                                                              Try it online!



                                                                              OK, it works. Now to start golfing it.







                                                                              share|improve this answer














                                                                              share|improve this answer



                                                                              share|improve this answer








                                                                              edited 5 hours ago

























                                                                              answered 5 hours ago









                                                                              ElPedroElPedro

                                                                              3,7681226




                                                                              3,7681226












                                                                              • $begingroup$
                                                                                Lol I've never understood how anyone can "golf" these obscure languages. Its hard enough to understand what the code does in the first place (this is said coming from C++ / Java background)
                                                                                $endgroup$
                                                                                – mackycheese21
                                                                                1 hour ago


















                                                                              • $begingroup$
                                                                                Lol I've never understood how anyone can "golf" these obscure languages. Its hard enough to understand what the code does in the first place (this is said coming from C++ / Java background)
                                                                                $endgroup$
                                                                                – mackycheese21
                                                                                1 hour ago
















                                                                              $begingroup$
                                                                              Lol I've never understood how anyone can "golf" these obscure languages. Its hard enough to understand what the code does in the first place (this is said coming from C++ / Java background)
                                                                              $endgroup$
                                                                              – mackycheese21
                                                                              1 hour ago




                                                                              $begingroup$
                                                                              Lol I've never understood how anyone can "golf" these obscure languages. Its hard enough to understand what the code does in the first place (this is said coming from C++ / Java background)
                                                                              $endgroup$
                                                                              – mackycheese21
                                                                              1 hour ago











                                                                              1












                                                                              $begingroup$


                                                                              Japt, 16 bytes



                                                                              Returns an array of lowercase strings. The compressed string was 18 bytes but using a as the delimiter instead and then splitting on that worked out shorter.



                                                                              `nÂà!Z°°nw`qa 


                                                                              Try it - footer formats the output.






                                                                              share|improve this answer











                                                                              $endgroup$


















                                                                                1












                                                                                $begingroup$


                                                                                Japt, 16 bytes



                                                                                Returns an array of lowercase strings. The compressed string was 18 bytes but using a as the delimiter instead and then splitting on that worked out shorter.



                                                                                `nÂà!Z°°nw`qa 


                                                                                Try it - footer formats the output.






                                                                                share|improve this answer











                                                                                $endgroup$
















                                                                                  1












                                                                                  1








                                                                                  1





                                                                                  $begingroup$


                                                                                  Japt, 16 bytes



                                                                                  Returns an array of lowercase strings. The compressed string was 18 bytes but using a as the delimiter instead and then splitting on that worked out shorter.



                                                                                  `nÂà!Z°°nw`qa 


                                                                                  Try it - footer formats the output.






                                                                                  share|improve this answer











                                                                                  $endgroup$




                                                                                  Japt, 16 bytes



                                                                                  Returns an array of lowercase strings. The compressed string was 18 bytes but using a as the delimiter instead and then splitting on that worked out shorter.



                                                                                  `nÂà!Z°°nw`qa 


                                                                                  Try it - footer formats the output.







                                                                                  share|improve this answer














                                                                                  share|improve this answer



                                                                                  share|improve this answer








                                                                                  edited 5 hours ago

























                                                                                  answered 6 hours ago









                                                                                  ShaggyShaggy

                                                                                  19.7k31768




                                                                                  19.7k31768























                                                                                      1












                                                                                      $begingroup$


                                                                                      05AB1E, 14 bytes



                                                                                      .•2Àβ‡yÞJŒ¾oÒ8


                                                                                      Try it online!



                                                                                      This prints out the string except lowercase.






                                                                                      share|improve this answer











                                                                                      $endgroup$













                                                                                      • $begingroup$
                                                                                        Just remove the final for -1
                                                                                        $endgroup$
                                                                                        – Grimy
                                                                                        3 hours ago
















                                                                                      1












                                                                                      $begingroup$


                                                                                      05AB1E, 14 bytes



                                                                                      .•2Àβ‡yÞJŒ¾oÒ8


                                                                                      Try it online!



                                                                                      This prints out the string except lowercase.






                                                                                      share|improve this answer











                                                                                      $endgroup$













                                                                                      • $begingroup$
                                                                                        Just remove the final for -1
                                                                                        $endgroup$
                                                                                        – Grimy
                                                                                        3 hours ago














                                                                                      1












                                                                                      1








                                                                                      1





                                                                                      $begingroup$


                                                                                      05AB1E, 14 bytes



                                                                                      .•2Àβ‡yÞJŒ¾oÒ8


                                                                                      Try it online!



                                                                                      This prints out the string except lowercase.






                                                                                      share|improve this answer











                                                                                      $endgroup$




                                                                                      05AB1E, 14 bytes



                                                                                      .•2Àβ‡yÞJŒ¾oÒ8


                                                                                      Try it online!



                                                                                      This prints out the string except lowercase.







                                                                                      share|improve this answer














                                                                                      share|improve this answer



                                                                                      share|improve this answer








                                                                                      edited 11 mins ago

























                                                                                      answered 7 hours ago









                                                                                      MilkyWay90MilkyWay90

                                                                                      995322




                                                                                      995322












                                                                                      • $begingroup$
                                                                                        Just remove the final for -1
                                                                                        $endgroup$
                                                                                        – Grimy
                                                                                        3 hours ago


















                                                                                      • $begingroup$
                                                                                        Just remove the final for -1
                                                                                        $endgroup$
                                                                                        – Grimy
                                                                                        3 hours ago
















                                                                                      $begingroup$
                                                                                      Just remove the final for -1
                                                                                      $endgroup$
                                                                                      – Grimy
                                                                                      3 hours ago




                                                                                      $begingroup$
                                                                                      Just remove the final for -1
                                                                                      $endgroup$
                                                                                      – Grimy
                                                                                      3 hours ago











                                                                                      0












                                                                                      $begingroup$


                                                                                      Python 2, 27 26 bytes





                                                                                      print"N NE E SE S SW W NW"


                                                                                      Try it online!



                                                                                      boring solution






                                                                                      share|improve this answer











                                                                                      $endgroup$













                                                                                      • $begingroup$
                                                                                        Redundant space before "
                                                                                        $endgroup$
                                                                                        – Jonathan Allan
                                                                                        7 hours ago










                                                                                      • $begingroup$
                                                                                        @JonathanAllan Oh, whoops!
                                                                                        $endgroup$
                                                                                        – MilkyWay90
                                                                                        7 hours ago
















                                                                                      0












                                                                                      $begingroup$


                                                                                      Python 2, 27 26 bytes





                                                                                      print"N NE E SE S SW W NW"


                                                                                      Try it online!



                                                                                      boring solution






                                                                                      share|improve this answer











                                                                                      $endgroup$













                                                                                      • $begingroup$
                                                                                        Redundant space before "
                                                                                        $endgroup$
                                                                                        – Jonathan Allan
                                                                                        7 hours ago










                                                                                      • $begingroup$
                                                                                        @JonathanAllan Oh, whoops!
                                                                                        $endgroup$
                                                                                        – MilkyWay90
                                                                                        7 hours ago














                                                                                      0












                                                                                      0








                                                                                      0





                                                                                      $begingroup$


                                                                                      Python 2, 27 26 bytes





                                                                                      print"N NE E SE S SW W NW"


                                                                                      Try it online!



                                                                                      boring solution






                                                                                      share|improve this answer











                                                                                      $endgroup$




                                                                                      Python 2, 27 26 bytes





                                                                                      print"N NE E SE S SW W NW"


                                                                                      Try it online!



                                                                                      boring solution







                                                                                      share|improve this answer














                                                                                      share|improve this answer



                                                                                      share|improve this answer








                                                                                      edited 7 hours ago

























                                                                                      answered 7 hours ago









                                                                                      MilkyWay90MilkyWay90

                                                                                      995322




                                                                                      995322












                                                                                      • $begingroup$
                                                                                        Redundant space before "
                                                                                        $endgroup$
                                                                                        – Jonathan Allan
                                                                                        7 hours ago










                                                                                      • $begingroup$
                                                                                        @JonathanAllan Oh, whoops!
                                                                                        $endgroup$
                                                                                        – MilkyWay90
                                                                                        7 hours ago


















                                                                                      • $begingroup$
                                                                                        Redundant space before "
                                                                                        $endgroup$
                                                                                        – Jonathan Allan
                                                                                        7 hours ago










                                                                                      • $begingroup$
                                                                                        @JonathanAllan Oh, whoops!
                                                                                        $endgroup$
                                                                                        – MilkyWay90
                                                                                        7 hours ago
















                                                                                      $begingroup$
                                                                                      Redundant space before "
                                                                                      $endgroup$
                                                                                      – Jonathan Allan
                                                                                      7 hours ago




                                                                                      $begingroup$
                                                                                      Redundant space before "
                                                                                      $endgroup$
                                                                                      – Jonathan Allan
                                                                                      7 hours ago












                                                                                      $begingroup$
                                                                                      @JonathanAllan Oh, whoops!
                                                                                      $endgroup$
                                                                                      – MilkyWay90
                                                                                      7 hours ago




                                                                                      $begingroup$
                                                                                      @JonathanAllan Oh, whoops!
                                                                                      $endgroup$
                                                                                      – MilkyWay90
                                                                                      7 hours ago











                                                                                      0












                                                                                      $begingroup$

                                                                                      Java, 24 25 bytes



                                                                                      Quick, gotta do it before anyone else



                                                                                      ()->"N NE E SE S SW W NW"


                                                                                      +1 byte; we can't take arguments (although I can argue that null is technically the absence of an argument).
                                                                                      TIO






                                                                                      share|improve this answer











                                                                                      $endgroup$


















                                                                                        0












                                                                                        $begingroup$

                                                                                        Java, 24 25 bytes



                                                                                        Quick, gotta do it before anyone else



                                                                                        ()->"N NE E SE S SW W NW"


                                                                                        +1 byte; we can't take arguments (although I can argue that null is technically the absence of an argument).
                                                                                        TIO






                                                                                        share|improve this answer











                                                                                        $endgroup$
















                                                                                          0












                                                                                          0








                                                                                          0





                                                                                          $begingroup$

                                                                                          Java, 24 25 bytes



                                                                                          Quick, gotta do it before anyone else



                                                                                          ()->"N NE E SE S SW W NW"


                                                                                          +1 byte; we can't take arguments (although I can argue that null is technically the absence of an argument).
                                                                                          TIO






                                                                                          share|improve this answer











                                                                                          $endgroup$



                                                                                          Java, 24 25 bytes



                                                                                          Quick, gotta do it before anyone else



                                                                                          ()->"N NE E SE S SW W NW"


                                                                                          +1 byte; we can't take arguments (although I can argue that null is technically the absence of an argument).
                                                                                          TIO







                                                                                          share|improve this answer














                                                                                          share|improve this answer



                                                                                          share|improve this answer








                                                                                          edited 2 hours ago

























                                                                                          answered 2 hours ago









                                                                                          Benjamin UrquhartBenjamin Urquhart

                                                                                          1,046119




                                                                                          1,046119























                                                                                              0












                                                                                              $begingroup$


                                                                                              C# (Visual C# Interactive Compiler), 24 bytes





                                                                                              _=>"N NE E SE S SW W NW"


                                                                                              Try it online!






                                                                                              share|improve this answer









                                                                                              $endgroup$


















                                                                                                0












                                                                                                $begingroup$


                                                                                                C# (Visual C# Interactive Compiler), 24 bytes





                                                                                                _=>"N NE E SE S SW W NW"


                                                                                                Try it online!






                                                                                                share|improve this answer









                                                                                                $endgroup$
















                                                                                                  0












                                                                                                  0








                                                                                                  0





                                                                                                  $begingroup$


                                                                                                  C# (Visual C# Interactive Compiler), 24 bytes





                                                                                                  _=>"N NE E SE S SW W NW"


                                                                                                  Try it online!






                                                                                                  share|improve this answer









                                                                                                  $endgroup$




                                                                                                  C# (Visual C# Interactive Compiler), 24 bytes





                                                                                                  _=>"N NE E SE S SW W NW"


                                                                                                  Try it online!







                                                                                                  share|improve this answer












                                                                                                  share|improve this answer



                                                                                                  share|improve this answer










                                                                                                  answered 46 mins ago









                                                                                                  Embodiment of IgnoranceEmbodiment of Ignorance

                                                                                                  3,984128




                                                                                                  3,984128






























                                                                                                      draft saved

                                                                                                      draft discarded




















































                                                                                                      If this is an answer to a challenge…




                                                                                                      • …Be sure to follow the challenge specification. However, please refrain from exploiting obvious loopholes. Answers abusing any of the standard loopholes are considered invalid. If you think a specification is unclear or underspecified, comment on the question instead.


                                                                                                      • …Try to optimize your score. For instance, answers to code-golf challenges should attempt to be as short as possible. You can always include a readable version of the code in addition to the competitive one.
                                                                                                        Explanations of your answer make it more interesting to read and are very much encouraged.


                                                                                                      • …Include a short header which indicates the language(s) of your code and its score, as defined by the challenge.



                                                                                                      More generally…




                                                                                                      • …Please make sure to answer the question and provide sufficient detail.


                                                                                                      • …Avoid asking for help, clarification or responding to other answers (use comments instead).





                                                                                                      draft saved


                                                                                                      draft discarded














                                                                                                      StackExchange.ready(
                                                                                                      function () {
                                                                                                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fcodegolf.stackexchange.com%2fquestions%2f186582%2fprint-n-ne-e-se-s-sw-w-nw%23new-answer', 'question_page');
                                                                                                      }
                                                                                                      );

                                                                                                      Post as a guest















                                                                                                      Required, but never shown





















































                                                                                                      Required, but never shown














                                                                                                      Required, but never shown












                                                                                                      Required, but never shown







                                                                                                      Required, but never shown

































                                                                                                      Required, but never shown














                                                                                                      Required, but never shown












                                                                                                      Required, but never shown







                                                                                                      Required, but never shown







                                                                                                      Popular posts from this blog

                                                                                                      Taj Mahal Inhaltsverzeichnis Aufbau | Geschichte | 350-Jahr-Feier | Heutige Bedeutung | Siehe auch |...

                                                                                                      Baia Sprie Cuprins Etimologie | Istorie | Demografie | Politică și administrație | Arii naturale...

                                                                                                      Nicolae Petrescu-Găină Cuprins Biografie | Opera | In memoriam | Varia | Controverse, incertitudini...