blöderidiot
Captain
- Registriert
- Juni 2004
- Beiträge
- 3.881
Neue Programmiersprache für Leute, die schon alles gesehen haben: https://github.com/dylanbeattie/rockstar
Beispiele (aus Doku):
Die Zuweisung
ist in Rockstar:
Daraus folgt der bekannte FizzBuzz 3/5:
der Rockstar Code
Ha ha! Wer eine Zeile davon fehlerfrei schreiben kann, darf sich "Certified Rockstar Developer" nennen ![Zwinkern ;) ;)](/forum/styles/smilies/wink.gif)
Beispiele (aus Doku):
Die Zuweisung
Tommy = 14487;
ist in Rockstar:
Tommy was a lean mean wrecking machine
(nach "was" wird die Zeichenzahl je als Ziffer verwendet)Daraus folgt der bekannte FizzBuzz 3/5:
Python:
x = range(1, 101)
for y in x:
if y % 3 == 0 and y % 5 == 0:
print ("Fizz Buzz")
elif y % 5 == 0:
print ("Buzz")
elif y % 3 == 0:
print ("Fizz")
else:
print y
Code:
Midnight takes your heart and your soul
While your heart is as high as your soul
Put your heart without your soul into your heart
Give back your heart
Desire is a lovestruck ladykiller
My world is nothing
Fire is ice
Hate is water
Until my world is Desire,
Build my world up
If Midnight taking my world, Fire is nothing and Midnight taking my world, Hate is nothing
Shout "FizzBuzz!"
Take it to the top
If Midnight taking my world, Fire is nothing
Shout "Fizz!"
Take it to the top
If Midnight taking my world, Hate is nothing
Say "Buzz!"
Take it to the top
Whisper my world
![Zwinkern ;) ;)](/forum/styles/smilies/wink.gif)