Der große britische Kuchen aus

21

Ich habe gehört, dass jemand an seinem Geburtstag sehr egoistisch war und Kuchen von allen verlangte und es keine Pläne gab, ihn mit anderen zu teilen! 🎂

Heute hat bestimmt jemand Geburtstag, also backen Sie ihm doch einen Kuchen. Verwenden Sie Ihre bevorzugte Programmiersprache, um einen köstlichen Kuchen mit einer schönen "Happy Birthday" -Nachricht als Ausgabe zuzubereiten. (Darf ich Chef vorschlagen !)

Dein Kuchen sollte

  • Imitiere ein Rezept der realen Welt (wenn du es verlinken kannst, genial!)
    • Eine Liste mit Zutaten, die für die Herstellung eines Kuchens geeignet sind
    • Eine durch Zeilenumbrüche getrennte Liste von Schritten für die Methode
    • wie viele Leute es dient
  • Achten Sie auf ein möglichst genaues Verhältnis der Inhaltsstoffe.
  • Beim Servieren wird minimal "Happy Birthday" ausgegeben.

Die besten Kuchen sind:

  • Köstlich - da dies ein , entscheidet die Community, was köstlich ist
  • Personalisiert - versuchen Sie, eine benutzerdefinierte Happy Birthday-Nachricht für eine bestimmte Person zu erstellen. (Wenn Sie keinen PPGC-Benutzer finden können, warum nicht eine Berühmtheit?)
  • Ausgewogen - Versuchen Sie, eine geeignete Anzahl von Zutaten für die Anzahl der Portionen zu verwenden, die das Rezept zubereitet. 1000 eggs, serves 1für eine Portion ist wahrscheinlich nur ein bisschen groß , riesig ,

    absolut kolossal!

  • Ausgefallen - Sie können mehr als nur einen einfachen Biskuit backen, z. B. Zuckerguss, Nieselregen, Sauce, Dekorationen usw.
  • Optisch ansprechend - Bilder eignen sich entweder im Quellcode als ASCII oder in der Ausgabe. Das erste "Byte" ist immerhin mit den Augen.

Und vergessen Sie nicht, gute Bäcker schneiden nicht ab und machen alles richtig. ( Verwenden Sie nicht nur No-Op-Code, damit er wie ein Rezept aussieht, sondern drucken Sie ihn aus. Vergewissern Sie sich auch, dass Ihr Code eine Bedeutung hat. ) Ich empfehle den Wählern, diese Rezepte negativ zu bewerten.

Viel Spaß beim Backen!

Bildbeschreibung hier eingeben

James Webster
quelle
3
Hey, zu meiner Verteidigung, ich dachte du würdest mir was besorgen!
Beta Decay
Ist es ein Trost, dass ich besorgt war, dass Sie verärgert sein würden ?
James Webster
Nein, es ist in Ordnung, ich mache nur Spaß;)
Beta Decay
Vielleicht hätte es auch hintergangen werden sollen ?
Vi.
@wähler schließen: Ich liste 3 Kriterien auf, die alle Programme erfüllen sollten, und 6 Kriterien, anhand derer "Richter" für Kuchen stimmen können. Was vermisse ich?
James Webster

Antworten:

21

ECMAScript 2015, dient 10

Don  =([_])=> alert(_.replace(/^.*(?=, )/,'Happy Birthday'))

ReadMoreAbout  =classic=  victoria  =sandwich=  on  =bbcgoodfood=      ~`

⚠  Remember that OCR technologies aren't perfect, and that scanning old,
⚠  smudgy recipes does not always go as smoothly as we'd expect or hope.
⚠  This recipe is not wonderful, but please, thoroughly enjoy making it.

`

try/* to do this properly! */{
  // Link to recipe:
  bbcgoodfood.com/recipes/1997/classic-victoria-sandwich
  'Makes 10 slices'

  Ingredients:
    ForThecake:
      - 200 | grammes | castorSugar
      - 200 | grammes | softenedButter
      -   4 | whole   | eggs
      - 200 | grammes | self-raising_flour
      -   1 | tsp     | bakingPowder
      -   2 | tbsp    | milk

    For_theFilling:
      -  100 | grammes | butter, softened
      -  140 | grammes | icing.sugar, sifted
      -    a | drop    | vanilla- extract (optional)
      -  240 | grammes | jar.good-quality_strawberryJam
      -                  icingSugar, to.decorate

  Method:
    1. ^`Heat oven to 190C/fan 170C/gas 5. Butter two 20cm sandwich tins
         and line with non-stick baking paper. In a large bowl,
         beat all the cake ingredients together until you have a smooth, soft batter.`
    2. ^`Divide the mixture between the tins, smooth the surface with a spatula
         or the back of a spoon, then bake for about 20 mins until golden
         and the cake springs back when pressed. Turn onto a cooling rack
         and leave to cool completely.`
    3. ^`To make the filling, beat the butter until smooth and creamy,
         then gradually beat in icing sugar. Beat in vanilla extract if you’re
         using it. Spread the butter cream over the bottom of one of the sponges,
         top it with jam and sandwich the second sponge on top.
         Dust with a little icing sugar before serving.
         Keep in an airtight container and eat within 2 days.`

  * HappyBirthdayǃ
} catch (cake) {
  Don`t drop that! It's your cake, Uncle Chris! This cake is one day late – sorry about that.
`}

Gültiger ES6-Code; keine ecken geschnitten!

Es funktioniert in der Firefox Developer Edition.

Es ist alles gültiger Code; das tryeinzige dient dazu, die ReferenceErrordurch die nicht definierten Variablen verursachten aufzufangen .

Zahnbürste
quelle
Das ist eine gute Antwort. Das ist, wonach ich gesucht habe. 😆
James Webster
5
⚠ sollte eindeutig ein gültiges Kommentarzeichen in ECMAScript 7 werden.
user253751
@immibis Ja, auf jeden Fall :-)
Zahnbürste
23

BF

Inspiriert von der Antwort von mbomb007 habe ich ihnen einen Kuchen gemacht.

Ich fürchte, ich habe das Rezept verloren (es ist hier irgendwo in der Nähe, aber ich müsste wahrscheinlich meine eigenen Regeln zum Schneiden von Ecken brechen, um es zu posten). Hier ist das fertige Produkt.

                                    +
                                    [
                       (
               )                    )             (
                       )           (o)    )
               (      (o)    )     ,|,            )
              (o)     ,|,          |~\    (      (o)
              ,|,     |~\    (     \ |   (o)     ,|,
              \~|     \ |----(o)->++|+\<]>,|,     |+.
              |`\-----|`\@@@-|-@@@@\.-@@@\~|[++>-\ |-
             -\-|-o@@@\ |@@@<]>@@@@|.\@@@|.\@@@o+|+\++
            ++|+\@@@@@|+\@@@|+\@@@@\.|@@@\-[@@@@@\-|o-- 
           ->@\+|@@@@@\<|@@@]>|@@@@@@@@@@|+\@@@@@|+\@@o.
          [->+|+\+@@@@@@@@@@|<]@@@@@@@@@@\>|@@@@@\+|+@@@.
          +@@@@@@@@@@@@@@@@@\+|@@@@@@@@@@|+\@@@@@@@@++++.
          @@++@@@@@@@@@@@@@@|+\@@@@@@@@@@@@@@@@@@@@+++++
          +.@@@++@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@o@@.-@
          --@@--@@-@@@@@@@@@@@@@@@@@@@@@@@@@@@@-@@-@@--@
          --@@.-@@@@---.@@@@--@@@@@-.+[@@@@@o---@@@>+<:]
          >::::::+::::::++@@.::@@@:::::@@@@:::::@@:::::%
          %%::::::::::::@@::::::@:::::::@@::::::::::::%%
          ::%%%::::::::::@::::::::::::::@::::::::::%%%::
       º# ::%::%%%%%%:::::::::::::::::::::::::%%%%%::%::##º
     º### ::::::%%:::%:%%%%%%%%%%%%%%%%%%%%%:%:::%%::::: ###º
   º##### ::::::%:::::%%::::::%%%%:::::%%::::%:::::::::: #####º
  º###### `:::::::::::%:::::::%:::::::::%::::%:::::::::' ######º
 º########  ``::::::::::::::::::::::::::::::::::::''  #########º
  º##########   ```::::::::::::::::::::::::::'''   ###########º'
    `º#########-[---->+<]>++.[-->+++<]>..+++++++. ###########º'
      ` º#################################################º '
          ` º#######################################º '
             ` º#################################º '
                   ` º######################º '

Ausgänge:

happy birthday 007

So praktisch, dass es für James Bond funktioniert, aber nicht bis zum 11. November.

James Webster
quelle
1
Woah ........... schön!
mbomb007,
Ist es sauber, Brainfuck? Es scheint nicht zu funktionieren für mich ...
RedClover
16

Python 2 dient 0

Zuallererst, tut mir leid, das ist kein ECHTER Weltkuchen.

Es ist jedoch eines der besten Spiele aller Zeiten, Portal.

Dieses Rezept basiert auf dem, was der Intelligence Core als Zutaten angibt.

""" Happy Birthday, Chell!
* * * * * * * * * * * """
# Here are all the ingrediants for portal cake
candles = 1 # There is most certainly only one candle for her.
fish_shaped_dirt = 32 # There isn't an official amount of dirt to add, 32 seems like a nice number.

#Full of lies
lie = float('inf')

serves = None

# Show the tester the documentation on how to use this
print __doc__,

# Now, we are going to repeat these steps until chell stops lying.
while lie:
    # She did it again, so now we need to do the whole thing once more.
    print "\r",
    # Check how many candles her cake will have
    if candles:
        # We had better take them away from her. Maybe it will stop her lying so much
        candles = 0
    else:
        # Maybe if we give her a candle, she will listen
        candles = 1
    # See, her chances of lying go down when we give her candles!
    lie -= candles
    # Add the fish shaped dirt. But ONLY if we're giving her a candle.
    print chr(fish_shaped_dirt)*candles,
    # Add all the other rubbish
    print __doc__[25:],
    #Flush it into the relaxation vault
    import sys
    sys.stdout.flush()
    # Wait and ask her if she liked it.
    import time
    time.sleep(1)

Ausgabe

 Happy Birthday, Chell!
 * * * * * * * * * * *

gefolgt von

 Happy Birthday, Chell!
  * * * * * * * * * * *

Dann wiederholt sich auf unbestimmte Zeit

Blau
quelle
8
Der Kuchen ist eine Lüge.
Orlp
1
Ich möchte abstimmen, weil ich Portal liebe, aber nach meinen eigenen Kriterien kann ich nicht! Selbst wenn ich einen Kuchen essen könnte, der keine Lüge ist, würde er schrecklich schmecken. Dreck ist kein Grund zum Essen!
James Webster
6
Das ist ein Triumph.
James
1
Sie haben nicht einmal die besten Zutaten verwendet. 1 rhuBARB in Flammen, fischförmige Cracker, ein Buch darüber, wie man jemanden mit bloßen Händen tötet usw.
mbomb007
Es dient 0. Sie können nie genug davon machen, um eine Portion zu machen. Deshalb musst du mir zuhören, wenn ich sage, dass es großartig
Blue
16

Brainf ***

Ich mag Eiscremekuchen, für die man nicht backen muss. Außerdem habe ich Geburtstag, also sag mir nicht, was für einen Kuchen ich haben kann.

Buy an ice cream cake:
    +   +   +    +   +   +
    |   |   |    |   |   |
[-]-[------->+<]>-.[--->++++<]
|><>+.-[++>-----<]>..+++++++++
|><.-[---->+<]>++.+[->++<]>.-[
|><--->+<]>--.+++++++++.++.---
|><---------.----.---.+[--->+<
|><]>+++.-[---->+<]>+++---+++|
then serve it.

Ich tue gerne so, als ob >+<]>es sich um fischförmige Cracker handelt.

mbomb007
quelle
1
Ich denke, dies ist eine +1 wert, um 4/5 "bester Kuchen" -Kriterien zu entsprechen. Ich gebe dir das Votum, aber definitiv cut cornersindem ich nur den Kuchen kaufe. 😞
James Webster
Ich hätte es auch personalisieren können, aber das würde den Kuchen doppelt so groß machen. Es sah auch nicht so toll aus.
mbomb007
Ich versuche gerade, den Kuchen extravaganter aussehen zu lassen: P
James Webster
@mikeTheLiar Vermutlich haben Sie Portal noch nicht gespielt oder das Rezept kürzlich gelesen? Lesen Sie es noch einmal: theportalwiki.com/wiki/Core_voice_lines#Cake_core
mbomb007
8

Pip , serviert 2

Für diejenigen von uns, deren Geburtstagsgeschmack ein bisschen globaler ist ...

Our dessert tonight: " Birthday " Dosa!
(adapted from vegrecipesofindia.com/masala-dosa-recipe-how-to-make-masala-dosa-recipe)

1 cup rice: ("mmm, rice")
1 cup ukda chawal: [don't know what that is but it sounds good]
1/2 cup urad dal: ["dal" means lentils in Hindi]
1/4 cup poha: ["poha" is another kind of rice]
1/4 tsp methi seeds: ("!")
salt to taste: ["Happy" time]
water as needed: [you'll need some water]

Are you ready to cook? Yes? OK then:

1. rinse the rice and urad dal separately first.:
2. soak the ukda chawal, rice and poha.
3. in another bowl soak the urad dal-methi in enough water.
4. grind the urad dal with methi to a fine and fluffy batter.
5. grind the rice and poha to a smooth batter.
6. mix both the rice and urad dal batter with salt.
7. cover and let the batter ferment for 8-9 hours.

is it Ready? Y(es) or N(o)

Answer should be: y.
    take batter out and:

1. heat a flat cast-iron griddle and smear some oil on it.
3. spread the dosa batter in a circular way on the griddle; add some oil on top.
4. flip and cook the other side.
5. serve dosa hot with coconut chutney and sambar. (yum)

Recipe serves ___:
           `(?<=2) ?`
Actually, it serves exactly 2--half feR "ME" and half feR:_" YOU"!
Yeah! Happy birthday  !

Ausgabe

Happy Birthday 2 YOU!

oder, wenn du es kochst:

Geburtstag Dosa

Jetzt bin ich hungrig.

DLosc
quelle
1
Dosa in einer kochbezogenen Herausforderung? Das kommt
mir
+1 für "Jetzt habe ich Hunger." Vielen Dank, ich habe jetzt auch Hunger.
klatschen
Für die Aufzeichnung habe ich auch keine Ahnung, was ukda chawal ist.
Alex A.
1

Chefkoch, serviert 16.

Basierend darauf . Ich kann nicht einen Dolmetscher online finden, so folgte ich genau die Spezifikationen gefunden hier .

"Golf" -Version

"Happy" Birthday Cake.

This recipe was recovered from an *erm* ANCIENT cave, in which the culture consumed enormous amounts of eggs and water, and did so through their caves. Modern ingredients have been added in an endevour to make the cake better.

Ingredients.
48 teaspoons 2% milk
1 cup butter
1 l semisweet chocolate
73 eggs
2 teaspoons vanilla extract
1 cup sugar
1 teaspoon baking soda
5 teaspoons salt
24 g happiness
3 teaspoons water
8 ml corn starch
32 g space

Cooking time: 25 minutes.

Pre-heat oven to 162 degrees Celsius.

Method.
Put 2% milk into the mixing bowl. Add happiness to the mixing bowl. Put eggs into the mixing bowl. Add happiness to the mixing bowl. Put vanilla extract into the mixing bowl. Combine vanilla extract into the mixing bowl. Combine vanilla extract into the mixing bowl. Combine salt into mixing bowl. Add happiness to the mixing bowl. Add corn starch to the mixing bowl. Put vanilla extract into the mixing bowl. Combine vanilla extract into the mixing bowl. Combine vanilla extract into the mixing bowl. Combine salt into mixing bowl. Add happiness to the mixing bowl. Add corn starch to the mixing bowl. Put 2% milk into the mixing bowl. Add happiness to the mixing bowl. Add happiness to the mixing bowl. Add happiness to the mixing bowl. Add sugar to the mixing bowl. Put space into mixing bowl. Put happiness into the mixing bowl. Remove water from the mixing bowl. Combine vanilla extract into the mixing bowl. Add happiness to the mixing bowl. Put vanilla extract into the mixing bowl. Combine vanilla extract into the mixing bowl. Combine vanilla extract into the mixing bowl. Combine salt into mixing bowl. Add butter to the mixing bowl. Add happiness to the mixing bowl. Put space into the mixing bowl. Combine water into the mixing bowl. Remove water from mixing bowl. Remove water from mixing bowl. Add happiness to the bowl. Put space into the mixing bowl. Combine water into the mixing bowl. Remove water from mixing bowl. Remove semisweet chocolate from mixing bowl. Add happiness to the bowl. Put vanilla extract into the mixing bowl. Combine vanilla extract into the mixing bowl. Combine vanilla extract into the mixing bowl. Combine salt into mixing bowl. Add happiness to the bowl. Put 2% milk into the mixing bowl. Add happiness to the mixing bowl. Add happiness to the mixing bowl. Add sugar to the mixing bowl. Put eggs into the mixing bowl. Add happiness to the mixing bowl. Put eggs in mixing bowl. Add happiness to the mixing bowl. Add happiness to the mixing bowl. Put happiness into the mixing bowl. Put happiness into the mixing bowl. Remove sugar from the bowl. Remove baking soda from the bowl. Put space into mixing bowl. Put vanilla extract into the mixing bowl. Combine vanilla extract into the mixing bowl. Combine vanilla extract into the mixing bowl. Combine salt into mixing bowl. Add happiness to the mixing bowl. Add salt to the mixing bowl. Put eggs into the mixing bowl. Add happiness to the mixing bowl. Add butter to the mixing bowl. Add water to the mixing bowl. Put space into the mixing bowl. Add baking soda to the mixing bowl. Liquefy contents of the mixing bowl. Serves 16.

Ausgang: Happy Birthday, me!.

Hier ist die Erklärung für jeden Schritt:

"Happy" Birthday Cake.

This recipe was recovered from an *erm* ANCIENT cave, in which the culture consumed enormous amounts of eggs and water, and did so through their caves. Modern ingredients have been added in an endevour to make the cake better.

Ingredients.
48 teaspoons 2% milk
1 cup butter
1 l semisweet chocolate
73 eggs
2 teaspoons vanilla extract
1 cup sugar
1 teaspoon baking soda
5 teaspoons salt
24 g happiness
3 teaspoons water
8 ml corn starch
32 g space

Cooking time: 25 minutes.

Pre-heat oven to 162 degrees Celsius.

Method.

Put 2% milk into the mixing bowl.               48
Add happiness to the mixing bowl.                +24= 72 (H)

Put eggs into the mixing bowl.                  73
Add happiness to the mixing bowl.                +24= 97 (a)

Put vanilla extract into the mixing bowl.       2
Combine vanilla extract into the mixing bowl.   *2 = 4
Combine vanilla extract into the mixing bowl.   *2 = 16
Combine salt into mixing bowl.                  *5 = 80
Add happiness to the mixing bowl.                +24=104
Add corn starch to the mixing bowl.             +8 =112 (p)

Put vanilla extract into the mixing bowl.       2
Combine vanilla extract into the mixing bowl.   *2 = 4
Combine vanilla extract into the mixing bowl.   *2 = 16
Combine salt into mixing bowl.                  *5 = 80
Add happiness to the mixing bowl.                +24=104
Add corn starch to the mixing bowl.             +8 =112 (p)

Put 2% milk into the mixing bowl.               48
Add happiness to the mixing bowl.                +24= 72
Add happiness to the mixing bowl.                +24= 96
Add happiness to the mixing bowl.                +24=120
Add sugar to the mixing bowl.                   +1 =121 (y)

Put space into mixing bowl.                     32      ( )

Put happiness into the mixing bowl.              24
Remove water from the mixing bowl.              -3 = 21
Combine vanilla extract into the mixing bowl.   *2 = 42
Add happiness to the mixing bowl.                +24= 66 (B)
Put vanilla extract into the mixing bowl.       2
Combine vanilla extract into the mixing bowl.   *2 = 4
Combine vanilla extract into the mixing bowl.   *2 = 16
Combine salt into mixing bowl.                  *5 = 80
Add butter to the mixing bowl.                  +1 = 81
Add happiness to the mixing bowl.                +24= 95 (i)

Put space into the mixing bowl.                 32
Combine water into the mixing bowl.             *3 = 96
Remove water from mixing bowl.                  -3 = 93
Remove water from mixing bowl.                  -3 = 90
Add happiness to the bowl.                      +24=114 (r)

Put space into the mixing bowl.                 32
Combine water into the mixing bowl.             *3 = 96
Remove water from mixing bowl.                  -3 = 93
Remove semisweet chocolate from mixing bowl.    -1 = 92
Add happiness to the bowl.                      +24=116 (t)

Put vanilla extract into the mixing bowl.       2
Combine vanilla extract into the mixing bowl.   *2 = 4
Combine vanilla extract into the mixing bowl.   *2 = 16
Combine salt into mixing bowl.                  *5 = 80
Add happiness to the bowl.                       +24=104 (h)

Put 2% milk into the mixing bowl.               48
Add happiness to the mixing bowl.                +24= 72
Add happiness to the mixing bowl.                +24= 96
Add sugar to the mixing bowl.                   +1 = 97 (d)

Put eggs into the mixing bowl.                  73
Add happiness to the mixing bowl.                +24= 97 (a)

Put eggs in mixing bowl.                        73
Add happiness to the mixing bowl.                +24 = 97
Add happiness to the mixing bowl.                +24 =121(y)

Put happiness into the mixing bowl.              24
Put happiness into the mixing bowl.              +24= 48
Remove sugar from the bowl.                     -3 = 45
Remove baking soda from the bowl.               -1 = 44 (,)

Put space into mixing bowl.                     32      ( )

Put vanilla extract into the mixing bowl.       2
Combine vanilla extract into the mixing bowl.   *2 = 4
Combine vanilla extract into the mixing bowl.   *2 = 16
Combine salt into mixing bowl.                  *5 = 80
Add happiness to the mixing bowl.                +24=104
Add salt to the mixing bowl.                    +5 =109 (m)

Put eggs into the mixing bowl.                  73
Add happiness to the mixing bowl.                +24=97
Add butter to the mixing bowl.                  +1 =98
Add water to the mixing bowl.                   +3 =101 (e)

Put space into the mixing bowl.                 32
Add baking soda to the mixing bowl.             +1 = 33 (!)

Liquefy contents of the mixing bowl.            Converts the mixing bowl to characters

Serves 16.                                      Outputs the contents of the first
                                                16 bowls.
Conor O'Brien
quelle
Ist es nicht "Glück" geschrieben, oder müssen Namen eine bestimmte Art und Weise sein?
Cole
Sorry, schrieb in mein Code-Pad. Ich habe vergessen, dass ich die Autokorrektur ausgeschaltet hatte.
Conor O'Brien
Ich habe dies auch noch nicht ausgeführt, aber ich glaube, Sie haben alles in einer Rührschüssel und versuchen dann, 16 auszugeben.
James Webster
@JamesWebster Die Spezifikation besagt, dass die Serves NAnweisung alle Zutaten in jeder Schüssel von 1 bis N ausgibt .
Conor O'Brien
Ja, aber du hast nur eine Schüssel benutzt. Die Schalen 2-15 sind leer / existieren nicht.
James Webster