Make a Bowl of Alphabet SoupPrint custom alphabetNumbers for LettersAlphabet to Number and Number to AlphabetRoll the Alphabet into a SpiralBuild an Alphabet PyramidFizz-Buzzify a StringSemi-Diagonal AlphabetMake an alphabet searchlight!The Speed of LettersWrite a function/method that takes in a string and spells that word out using the NATO Phonetic Alphabet. Titlecase optional

Find a point shared by maximum segments

1 John in Luther’s Bibel

Weird lines in Microsoft Word

Make a Bowl of Alphabet Soup

Are hand made posters acceptable in Academia?

Friend wants my recommendation but I don't want to give it to him

Connection Between Knot Theory and Number Theory

Did I make a mistake by ccing email to boss to others?

Why would five hundred and five same as one?

Reason why a kingside attack is not justified

Should a narrator ever describe things based on a character's view instead of facts?

Reasons for having MCU pin-states default to pull-up/down out of reset

is this saw blade faulty?

Why is indicated airspeed rather than ground speed used during the takeoff roll?

"Oh no!" in Latin

How to evaluate the research level of a paper before any publication?

Why does the frost depth increase when the surface temperature warms up?

Relations between homogeneous polynomials

Started in 1987 vs. Starting in 1987

How to preserve electronics (computers, ipads, phones) for hundreds of years?

Sort with assumptions

What is the period/term used describe Giuseppe Arcimboldo's style of painting?

What is it called when someone votes for an option that's not their first choice?

What is this high flying aircraft over Pennsylvania?



Make a Bowl of Alphabet Soup


Print custom alphabetNumbers for LettersAlphabet to Number and Number to AlphabetRoll the Alphabet into a SpiralBuild an Alphabet PyramidFizz-Buzzify a StringSemi-Diagonal AlphabetMake an alphabet searchlight!The Speed of LettersWrite a function/method that takes in a string and spells that word out using the NATO Phonetic Alphabet. Titlecase optional













6












$begingroup$


This is what we'll call a bowl of alphabet soup - a roughly circular ascii-art shape with the 26 uppercase English letters (A-Z) arranged clockwise to form the perimeter:



 XYZABC
VW DE
U F
T G
S H
RQ JI
PONMLK


Write a program that takes in a single letter character, A-Z, and outputs that same bowl of alphabet soup "rotated", so to speak, so the input letter appears where the A does in the example above and the rest of the alphabet cycles fully around clockwise.



So the output for input A would be that same original bowl of alphabet soup.



And the output for input B would be this one:



 YZABCD
WX EF
V G
U H
T I
SR KJ
QPONML


Likewise the output for H would be:



 EFGHIJ
CD KL
B M
A N
Z O
YX QP
WVUTSR


Or for Z:



 WXYZAB
UV CD
T E
S F
R G
QP IH
ONMLKJ


This needs to work for all 26 letters, A through Z.



Details:



  • You can assume the only input will be a single letter, A through Z.

  • If convenient you may use lowercase a-z for input and/or output, you can even mix and match lower and uppercase.

  • The alphabet order must cycle clockwise, not counter-clockwise.

  • You must use spaces, not something else, to indent and fill the soup bowl.

  • There may be leading or trailing newlines or spaces in the output as long as the soup bowl is arranged properly.

  • Note that the bowl shape is 12 characters wide by 7 tall to make it appear roughly circular as text. Your bowls need to be the same shape.

This is code golf so the shortest code wins!










share|improve this question







New contributor




Discrete Games is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.







$endgroup$







  • 2




    $begingroup$
    Great challenge! It initially seems easy, but it's not
    $endgroup$
    – Luis Mendo
    36 mins ago















6












$begingroup$


This is what we'll call a bowl of alphabet soup - a roughly circular ascii-art shape with the 26 uppercase English letters (A-Z) arranged clockwise to form the perimeter:



 XYZABC
VW DE
U F
T G
S H
RQ JI
PONMLK


Write a program that takes in a single letter character, A-Z, and outputs that same bowl of alphabet soup "rotated", so to speak, so the input letter appears where the A does in the example above and the rest of the alphabet cycles fully around clockwise.



So the output for input A would be that same original bowl of alphabet soup.



And the output for input B would be this one:



 YZABCD
WX EF
V G
U H
T I
SR KJ
QPONML


Likewise the output for H would be:



 EFGHIJ
CD KL
B M
A N
Z O
YX QP
WVUTSR


Or for Z:



 WXYZAB
UV CD
T E
S F
R G
QP IH
ONMLKJ


This needs to work for all 26 letters, A through Z.



Details:



  • You can assume the only input will be a single letter, A through Z.

  • If convenient you may use lowercase a-z for input and/or output, you can even mix and match lower and uppercase.

  • The alphabet order must cycle clockwise, not counter-clockwise.

  • You must use spaces, not something else, to indent and fill the soup bowl.

  • There may be leading or trailing newlines or spaces in the output as long as the soup bowl is arranged properly.

  • Note that the bowl shape is 12 characters wide by 7 tall to make it appear roughly circular as text. Your bowls need to be the same shape.

This is code golf so the shortest code wins!










share|improve this question







New contributor




Discrete Games is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.







$endgroup$







  • 2




    $begingroup$
    Great challenge! It initially seems easy, but it's not
    $endgroup$
    – Luis Mendo
    36 mins ago













6












6








6


1



$begingroup$


This is what we'll call a bowl of alphabet soup - a roughly circular ascii-art shape with the 26 uppercase English letters (A-Z) arranged clockwise to form the perimeter:



 XYZABC
VW DE
U F
T G
S H
RQ JI
PONMLK


Write a program that takes in a single letter character, A-Z, and outputs that same bowl of alphabet soup "rotated", so to speak, so the input letter appears where the A does in the example above and the rest of the alphabet cycles fully around clockwise.



So the output for input A would be that same original bowl of alphabet soup.



And the output for input B would be this one:



 YZABCD
WX EF
V G
U H
T I
SR KJ
QPONML


Likewise the output for H would be:



 EFGHIJ
CD KL
B M
A N
Z O
YX QP
WVUTSR


Or for Z:



 WXYZAB
UV CD
T E
S F
R G
QP IH
ONMLKJ


This needs to work for all 26 letters, A through Z.



Details:



  • You can assume the only input will be a single letter, A through Z.

  • If convenient you may use lowercase a-z for input and/or output, you can even mix and match lower and uppercase.

  • The alphabet order must cycle clockwise, not counter-clockwise.

  • You must use spaces, not something else, to indent and fill the soup bowl.

  • There may be leading or trailing newlines or spaces in the output as long as the soup bowl is arranged properly.

  • Note that the bowl shape is 12 characters wide by 7 tall to make it appear roughly circular as text. Your bowls need to be the same shape.

This is code golf so the shortest code wins!










share|improve this question







New contributor




Discrete Games is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.







$endgroup$




This is what we'll call a bowl of alphabet soup - a roughly circular ascii-art shape with the 26 uppercase English letters (A-Z) arranged clockwise to form the perimeter:



 XYZABC
VW DE
U F
T G
S H
RQ JI
PONMLK


Write a program that takes in a single letter character, A-Z, and outputs that same bowl of alphabet soup "rotated", so to speak, so the input letter appears where the A does in the example above and the rest of the alphabet cycles fully around clockwise.



So the output for input A would be that same original bowl of alphabet soup.



And the output for input B would be this one:



 YZABCD
WX EF
V G
U H
T I
SR KJ
QPONML


Likewise the output for H would be:



 EFGHIJ
CD KL
B M
A N
Z O
YX QP
WVUTSR


Or for Z:



 WXYZAB
UV CD
T E
S F
R G
QP IH
ONMLKJ


This needs to work for all 26 letters, A through Z.



Details:



  • You can assume the only input will be a single letter, A through Z.

  • If convenient you may use lowercase a-z for input and/or output, you can even mix and match lower and uppercase.

  • The alphabet order must cycle clockwise, not counter-clockwise.

  • You must use spaces, not something else, to indent and fill the soup bowl.

  • There may be leading or trailing newlines or spaces in the output as long as the soup bowl is arranged properly.

  • Note that the bowl shape is 12 characters wide by 7 tall to make it appear roughly circular as text. Your bowls need to be the same shape.

This is code golf so the shortest code wins!







code-golf string ascii-art






share|improve this question







New contributor




Discrete Games is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question







New contributor




Discrete Games is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question






New contributor




Discrete Games is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked 58 mins ago









Discrete GamesDiscrete Games

47126




47126




New contributor




Discrete Games is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





Discrete Games is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






Discrete Games is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.







  • 2




    $begingroup$
    Great challenge! It initially seems easy, but it's not
    $endgroup$
    – Luis Mendo
    36 mins ago












  • 2




    $begingroup$
    Great challenge! It initially seems easy, but it's not
    $endgroup$
    – Luis Mendo
    36 mins ago







2




2




$begingroup$
Great challenge! It initially seems easy, but it's not
$endgroup$
– Luis Mendo
36 mins ago




$begingroup$
Great challenge! It initially seems easy, but it's not
$endgroup$
– Luis Mendo
36 mins ago










4 Answers
4






active

oldest

votes


















2












$begingroup$


05AB1E, 21 bytes



A roughly straightforward approach. Most likely golfable.



Code:



2AA¹k._•1못*Ć,ãiDΣ•Λ


Try it online!






share|improve this answer









$endgroup$




















    1












    $begingroup$


    JavaScript (Node.js), 121 bytes





    c=>`2XYZABC
    0VW5DE
    U9F
    T9G
    S9H
    0RQ5JI
    2PONMLK`.replace(/./g,x=>1/x?''.padEnd(-~x):(B=Buffer)([65+([a,b]=B(c+x),a+b)%26]))


    Try it online!






    share|improve this answer









    $endgroup$




















      1












      $begingroup$


      MATL, 49 bytes



      7I8*32tvB[1b]&Zvc2Y2j7+_YSy&f7-w4-_Z;YPE,&S])yg(


      What a mess. But it was fun writing. There's even an arctangent involved.



      Try it online!





      share











      $endgroup$












      • $begingroup$
        Um... what does the arctan do? Anything with the slightly circular shape? ;-)
        $endgroup$
        – Erik the Outgolfer
        1 min ago


















      0












      $begingroup$


      Python 2, 129 bytes





      lambda x:''.join((i,chr((ord(x)+ord(i))%26+65),' '*5)[ord(i)/46]for i in''' XYZABC
      VW] DE
      U]]F
      T]]G
      S]]H
      RQ] JI
      PONMLK''')


      Try it online!





      share









      $endgroup$












        Your Answer





        StackExchange.ifUsing("editor", function ()
        return StackExchange.using("mathjaxEditing", function ()
        StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix)
        StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["\$", "\$"]]);
        );
        );
        , "mathjax-editing");

        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
        );



        );






        Discrete Games is a new contributor. Be nice, and check out our Code of Conduct.









        draft saved

        draft discarded


















        StackExchange.ready(
        function ()
        StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fcodegolf.stackexchange.com%2fquestions%2f181843%2fmake-a-bowl-of-alphabet-soup%23new-answer', 'question_page');

        );

        Post as a guest















        Required, but never shown

























        4 Answers
        4






        active

        oldest

        votes








        4 Answers
        4






        active

        oldest

        votes









        active

        oldest

        votes






        active

        oldest

        votes









        2












        $begingroup$


        05AB1E, 21 bytes



        A roughly straightforward approach. Most likely golfable.



        Code:



        2AA¹k._•1못*Ć,ãiDΣ•Λ


        Try it online!






        share|improve this answer









        $endgroup$

















          2












          $begingroup$


          05AB1E, 21 bytes



          A roughly straightforward approach. Most likely golfable.



          Code:



          2AA¹k._•1못*Ć,ãiDΣ•Λ


          Try it online!






          share|improve this answer









          $endgroup$















            2












            2








            2





            $begingroup$


            05AB1E, 21 bytes



            A roughly straightforward approach. Most likely golfable.



            Code:



            2AA¹k._•1못*Ć,ãiDΣ•Λ


            Try it online!






            share|improve this answer









            $endgroup$




            05AB1E, 21 bytes



            A roughly straightforward approach. Most likely golfable.



            Code:



            2AA¹k._•1못*Ć,ãiDΣ•Λ


            Try it online!







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered 31 mins ago









            AdnanAdnan

            35.7k562225




            35.7k562225





















                1












                $begingroup$


                JavaScript (Node.js), 121 bytes





                c=>`2XYZABC
                0VW5DE
                U9F
                T9G
                S9H
                0RQ5JI
                2PONMLK`.replace(/./g,x=>1/x?''.padEnd(-~x):(B=Buffer)([65+([a,b]=B(c+x),a+b)%26]))


                Try it online!






                share|improve this answer









                $endgroup$

















                  1












                  $begingroup$


                  JavaScript (Node.js), 121 bytes





                  c=>`2XYZABC
                  0VW5DE
                  U9F
                  T9G
                  S9H
                  0RQ5JI
                  2PONMLK`.replace(/./g,x=>1/x?''.padEnd(-~x):(B=Buffer)([65+([a,b]=B(c+x),a+b)%26]))


                  Try it online!






                  share|improve this answer









                  $endgroup$















                    1












                    1








                    1





                    $begingroup$


                    JavaScript (Node.js), 121 bytes





                    c=>`2XYZABC
                    0VW5DE
                    U9F
                    T9G
                    S9H
                    0RQ5JI
                    2PONMLK`.replace(/./g,x=>1/x?''.padEnd(-~x):(B=Buffer)([65+([a,b]=B(c+x),a+b)%26]))


                    Try it online!






                    share|improve this answer









                    $endgroup$




                    JavaScript (Node.js), 121 bytes





                    c=>`2XYZABC
                    0VW5DE
                    U9F
                    T9G
                    S9H
                    0RQ5JI
                    2PONMLK`.replace(/./g,x=>1/x?''.padEnd(-~x):(B=Buffer)([65+([a,b]=B(c+x),a+b)%26]))


                    Try it online!







                    share|improve this answer












                    share|improve this answer



                    share|improve this answer










                    answered 13 mins ago









                    ArnauldArnauld

                    79.2k796329




                    79.2k796329





















                        1












                        $begingroup$


                        MATL, 49 bytes



                        7I8*32tvB[1b]&Zvc2Y2j7+_YSy&f7-w4-_Z;YPE,&S])yg(


                        What a mess. But it was fun writing. There's even an arctangent involved.



                        Try it online!





                        share











                        $endgroup$












                        • $begingroup$
                          Um... what does the arctan do? Anything with the slightly circular shape? ;-)
                          $endgroup$
                          – Erik the Outgolfer
                          1 min ago















                        1












                        $begingroup$


                        MATL, 49 bytes



                        7I8*32tvB[1b]&Zvc2Y2j7+_YSy&f7-w4-_Z;YPE,&S])yg(


                        What a mess. But it was fun writing. There's even an arctangent involved.



                        Try it online!





                        share











                        $endgroup$












                        • $begingroup$
                          Um... what does the arctan do? Anything with the slightly circular shape? ;-)
                          $endgroup$
                          – Erik the Outgolfer
                          1 min ago













                        1












                        1








                        1





                        $begingroup$


                        MATL, 49 bytes



                        7I8*32tvB[1b]&Zvc2Y2j7+_YSy&f7-w4-_Z;YPE,&S])yg(


                        What a mess. But it was fun writing. There's even an arctangent involved.



                        Try it online!





                        share











                        $endgroup$




                        MATL, 49 bytes



                        7I8*32tvB[1b]&Zvc2Y2j7+_YSy&f7-w4-_Z;YPE,&S])yg(


                        What a mess. But it was fun writing. There's even an arctangent involved.



                        Try it online!






                        share













                        share


                        share








                        edited 4 mins ago

























                        answered 9 mins ago









                        Luis MendoLuis Mendo

                        74.8k888291




                        74.8k888291











                        • $begingroup$
                          Um... what does the arctan do? Anything with the slightly circular shape? ;-)
                          $endgroup$
                          – Erik the Outgolfer
                          1 min ago
















                        • $begingroup$
                          Um... what does the arctan do? Anything with the slightly circular shape? ;-)
                          $endgroup$
                          – Erik the Outgolfer
                          1 min ago















                        $begingroup$
                        Um... what does the arctan do? Anything with the slightly circular shape? ;-)
                        $endgroup$
                        – Erik the Outgolfer
                        1 min ago




                        $begingroup$
                        Um... what does the arctan do? Anything with the slightly circular shape? ;-)
                        $endgroup$
                        – Erik the Outgolfer
                        1 min ago











                        0












                        $begingroup$


                        Python 2, 129 bytes





                        lambda x:''.join((i,chr((ord(x)+ord(i))%26+65),' '*5)[ord(i)/46]for i in''' XYZABC
                        VW] DE
                        U]]F
                        T]]G
                        S]]H
                        RQ] JI
                        PONMLK''')


                        Try it online!





                        share









                        $endgroup$

















                          0












                          $begingroup$


                          Python 2, 129 bytes





                          lambda x:''.join((i,chr((ord(x)+ord(i))%26+65),' '*5)[ord(i)/46]for i in''' XYZABC
                          VW] DE
                          U]]F
                          T]]G
                          S]]H
                          RQ] JI
                          PONMLK''')


                          Try it online!





                          share









                          $endgroup$















                            0












                            0








                            0





                            $begingroup$


                            Python 2, 129 bytes





                            lambda x:''.join((i,chr((ord(x)+ord(i))%26+65),' '*5)[ord(i)/46]for i in''' XYZABC
                            VW] DE
                            U]]F
                            T]]G
                            S]]H
                            RQ] JI
                            PONMLK''')


                            Try it online!





                            share









                            $endgroup$




                            Python 2, 129 bytes





                            lambda x:''.join((i,chr((ord(x)+ord(i))%26+65),' '*5)[ord(i)/46]for i in''' XYZABC
                            VW] DE
                            U]]F
                            T]]G
                            S]]H
                            RQ] JI
                            PONMLK''')


                            Try it online!






                            share











                            share


                            share










                            answered 8 mins ago









                            Erik the OutgolferErik the Outgolfer

                            32.5k429105




                            32.5k429105




















                                Discrete Games is a new contributor. Be nice, and check out our Code of Conduct.









                                draft saved

                                draft discarded


















                                Discrete Games is a new contributor. Be nice, and check out our Code of Conduct.












                                Discrete Games is a new contributor. Be nice, and check out our Code of Conduct.











                                Discrete Games is a new contributor. Be nice, and check out our Code of Conduct.














                                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%2f181843%2fmake-a-bowl-of-alphabet-soup%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

                                Best approach to update all entries in a list that is paginated?Best way to add items to a paginated listChoose Your Country: Best Usability approachUpdate list when a user is viewing the list without annoying themWhen would the best day to update your webpage be?What should happen when I add a Row to a paginated, sorted listShould I adopt infinite scrolling or classical pagination?How to show user that page objects automatically updateWhat is the best location to locate the comments section in a list pageBest way to combine filtering and selecting items in a listWhen one of two inputs must be updated to satisfy a consistency criteria, which should you update (if at all)?

                                Вунгтау (аеропорт) Загальні відомості | Див. також | Посилання | Навігаційне меню10°22′00″ пн. ш. 107°05′00″ сх. д. / 10.36667° пн. ш. 107.08333° сх. д. / 10.36667; 107.0833310°22′00″ пн. ш. 107°05′00″ сх. д. / 10.36667° пн. ш. 107.08333° сх. д. / 10.36667; 107.083337731608Vinh AirportVinh airport facelift improves serviceвиправивши або дописавши їївиправивши або дописавши їїр

                                Тонконіг бульбистий Зміст Опис | Поширення | Екологія | Господарське значення | Примітки | Див. також | Література | Джерела | Посилання | Навігаційне меню1114601320038-241116202404kew-435458Poa bulbosaЭлектронный каталог сосудистых растений Азиатской России [Електронний каталог судинних рослин Азіатської Росії]Малышев Л. Л. Дикие родичи культурных растений. Poa bulbosa L. - Мятлик луковичный. [Малишев Л. Л. Дикі родичи культурних рослин. Poa bulbosa L. - Тонконіг бульбистий.]Мятлик (POA) Сем. Злаки (Мятликовые) [Тонконіг (POA) Род. Злаки (Тонконогові)]Poa bulbosa Linnaeus, Sp. Pl. 1: 70. 1753. 鳞茎早熟禾 lin jing zao shu he (Description from Flora of China) [Poa bulbosa Linnaeus, Sp. Pl. 1: 70. 1753. 鳞茎早熟禾 lin jing zao shu he (Опис від Флора Китаю)]Poa bulbosa L. – lipnice cibulkatá / lipnica cibulkatáPoa bulbosa в базі даних Poa bulbosa на сайті Poa bulbosa в базі даних «Global Biodiversity Information Facility» (GBIF)Poa bulbosa в базі даних «Euro + Med PlantBase» — інформаційному ресурсі для Євро-середземноморського розмаїття рослинPoa bulbosa L. на сайті «Плантариум»