Josh

Administrator



Site Owner





Josh#5318

Posts: 198

ROBLOX Username: JoshRBX

Administrator Never Gonna Give You Up Quote Select Post

Select Post Deselect Post

Deselect Post Link to Post

Link to Post Member Give Gift

Member Back to Top Post by Josh on Never Gonna Give You Up

In this Code Golf Challenge, you must output the lyrics of Never Gonna Give You Up by Rick Astley. It should be outputted as the following with no exceptions, extra spaces or newlines...



We're no strangers to love

You know the rules and so do I

A full commitment's what I'm thinking of

You wouldn't get this from any other guy



I just want to tell you how I'm feeling

Gotta make you understand



Never gonna give you up, never gonna let you down

Never gonna run around and desert you

Never gonna make you cry, never gonna say goodbye

Never gonna tell a lie and hurt you



We've known each other for so long

Your heart's been aching but you're too shy to say it

Inside we both know what's been going on

We know the game and we're gonna play it



And if you ask me how I'm feeling

Don't tell me you're too blind to see



Never gonna give you up, never gonna let you down

Never gonna run around and desert you

Never gonna make you cry, never gonna say goodbye

Never gonna tell a lie and hurt you



Never gonna give you up, never gonna let you down

Never gonna run around and desert you

Never gonna make you cry, never gonna say goodbye

Never gonna tell a lie and hurt you



We've known each other for so long

Your heart's been aching but you're too shy to say it

Inside we both know what's been going on

We know the game and we're gonna play it



I just want to tell you how I'm feeling

Gotta make you understand



Never gonna give you up, never gonna let you down

Never gonna run around and desert you

Never gonna make you cry, never gonna say goodbye

Never gonna tell a lie and hurt you

You can write a hard-coded solution if you really want to, but that's boring! We're looking for the most interesting solutions and the shortest! Take note of the lines and verses that are repeated and see what you can do!



Please format your solution as the language name followed by the number of characters that your solution contains before writing out the solution in a code block.



Good luck!



jacob24068

New Member



Veteran





am old angry chinese man



ROBLOX Username: iJacobness Posts: 5

New Member Never Gonna Give You Up Quote Select Post

Select Post Deselect Post

Deselect Post Link to Post

Link to Post Member Give Gift

Member Back to Top Post by jacob24068 on print([[We're no strangers to love

You know the rules and so do I

A full commitment's what I'm thinking of

You wouldn't get this from any other guy



I just want to tell you how I'm feeling

Gotta make you understand



Never gonna give you up, never gonna let you down

Never gonna run around and desert you

Never gonna make you cry, never gonna say goodbye

Never gonna tell a lie and hurt you



We've known each other for so long

Your heart's been aching but you're too shy to say it

Inside we both know what's been going on

We know the game and we're gonna play it



And if you ask me how I'm feeling

Don't tell me you're too blind to see



Never gonna give you up, never gonna let you down

Never gonna run around and desert you

Never gonna make you cry, never gonna say goodbye

Never gonna tell a lie and hurt you



Never gonna give you up, never gonna let you down

Never gonna run around and desert you

Never gonna make you cry, never gonna say goodbye

Never gonna tell a lie and hurt you



We've known each other for so long

Your heart's been aching but you're too shy to say it

Inside we both know what's been going on

We know the game and we're gonna play it



I just want to tell you how I'm feeling

Gotta make you understand



Never gonna give you up, never gonna let you down

Never gonna run around and desert you

Never gonna make you cry, never gonna say goodbye

Never gonna tell a lie and hurt you]])

Josh

Administrator



Site Owner





Josh#5318

Posts: 198

ROBLOX Username: JoshRBX

Administrator Never Gonna Give You Up Quote Select Post

Select Post Deselect Post

Deselect Post Link to Post

Link to Post Member Give Gift

Member Back to Top Post by Josh on jacob24068 said:

You know the rules and so do I

A full commitment's what I'm thinking of

You wouldn't get this from any other guy



I just want to tell you how I'm feeling

Gotta make you understand



Never gonna give you up, never gonna let you down

Never gonna run around and desert you

Never gonna make you cry, never gonna say goodbye

Never gonna tell a lie and hurt you



We've known each other for so long

Your heart's been aching but you're too shy to say it

Inside we both know what's been going on

We know the game and we're gonna play it



And if you ask me how I'm feeling

Don't tell me you're too blind to see



Never gonna give you up, never gonna let you down

Never gonna run around and desert you

Never gonna make you cry, never gonna say goodbye

Never gonna tell a lie and hurt you



Never gonna give you up, never gonna let you down

Never gonna run around and desert you

Never gonna make you cry, never gonna say goodbye

Never gonna tell a lie and hurt you



We've known each other for so long

Your heart's been aching but you're too shy to say it

Inside we both know what's been going on

We know the game and we're gonna play it



I just want to tell you how I'm feeling

Gotta make you understand



Never gonna give you up, never gonna let you down

Never gonna run around and desert you

Never gonna make you cry, never gonna say goodbye

Never gonna tell a lie and hurt you]]) print([[We're no strangers to loveYou know the rules and so do IA full commitment's what I'm thinking ofYou wouldn't get this from any other guyI just want to tell you how I'm feelingGotta make you understandNever gonna give you up, never gonna let you downNever gonna run around and desert youNever gonna make you cry, never gonna say goodbyeNever gonna tell a lie and hurt youWe've known each other for so longYour heart's been aching but you're too shy to say itInside we both know what's been going onWe know the game and we're gonna play itAnd if you ask me how I'm feelingDon't tell me you're too blind to seeNever gonna give you up, never gonna let you downNever gonna run around and desert youNever gonna make you cry, never gonna say goodbyeNever gonna tell a lie and hurt youNever gonna give you up, never gonna let you downNever gonna run around and desert youNever gonna make you cry, never gonna say goodbyeNever gonna tell a lie and hurt youWe've known each other for so longYour heart's been aching but you're too shy to say itInside we both know what's been going onWe know the game and we're gonna play itI just want to tell you how I'm feelingGotta make you understandNever gonna give you up, never gonna let you downNever gonna run around and desert youNever gonna make you cry, never gonna say goodbyeNever gonna tell a lie and hurt you]]) The point of the challenge is to try and see how short you can make the code. Think about multiple verses and lines and see what you can do with them!

zelo101

Active Member



Veteran







ROBLOX Username: Umadekid Posts: 26

Active Member Never Gonna Give You Up goulstem likes this Quote Select Post

Select Post Deselect Post

Deselect Post Link to Post

Link to Post Member Give Gift

Member Back to Top Post by zelo101 on a = "Never gonna give you up, never gonna let you down"



b = "Never gonna run around and desert you"



c = "Never gonna make you cry, never gonna say goodbye"



d = "Never gonna tell a lie and hurt you"



e = ""



f = "I just want to tell you how I'm feeling"



g = "Gotta Make you understand"



h = "We've know each other for so long"



i = "Your heart's been aching but you're too shy to say it"



j = "Inside we both know what's been going on"



k = "We know the game and we're gonna play it"







print("We're no strangers to love")



print("You know the rules and so do I")



print("A full commitment's what I'm thinking of")



print("You wouldn't get this from any other guy")



print(e)



print(f)



print(g)



print(e)



print(a)



print(b)



print(c)



print(d)



print(e)



print(h)



print(i)



print(j)



print(k)



print(e)



print("And if you ask me how I'm feeling")



print("Don't tell me you're too blind to see")



print(e)



print(a)



print(b)



print(c)



print(d)



print(e)



print(a)



print(b)



print(c)



print(d)



print(e)



print(h)



print(i)



print(j)



print(k)



print(e)



print(f)



print(g)



print(e)



print(a)



print(b)



print(c)



print(d)

Roblox Lua - 1076 Letters (var e doesn't have a space btw.)



Josh

Administrator



Site Owner





Josh#5318

Posts: 198

ROBLOX Username: JoshRBX

Administrator Never Gonna Give You Up Quote Select Post

Select Post Deselect Post

Deselect Post Link to Post

Link to Post Member Give Gift

Member Back to Top Post by Josh on zelo101 said: a = "Never gonna give you up, never gonna let you down"



b = "Never gonna run around and desert you"



c = "Never gonna make you cry, never gonna say goodbye"



d = "Never gonna tell a lie and hurt you"



e = ""



f = "I just want to tell you how I'm feeling"



g = "Gotta Make you understand"



h = "We've know each other for so long"



i = "Your heart's been aching but you're too shy to say it"



j = "Inside we both know what's been going on"



k = "We know the game and we're gonna play it"







print("We're no strangers to love")



print("You know the rules and so do I")



print("A full commitment's what I'm thinking of")



print("You wouldn't get this from any other guy")



print(e)



print(f)



print(g)



print(e)



print(a)



print(b)



print(c)



print(d)



print(e)



print(h)



print(i)



print(j)



print(k)



print(e)



print("And if you ask me how I'm feeling")



print("Don't tell me you're too blind to see")



print(e)



print(a)



print(b)



print(c)



print(d)



print(e)



print(a)



print(b)



print(c)



print(d)



print(e)



print(h)



print(i)



print(j)



print(k)



print(e)



print(f)



print(g)



print(e)



print(a)



print(b)



print(c)



print(d)

Roblox Lua - 1076 Letters (var e doesn't have a space btw.)



Looks good zelo101 Looks good! After 12 hours has passed since the upload, I'll give you a few tips!

goulstem

Moderator



Veteran





moderating



ROBLOX Username: Goulstem Posts: 49

Moderator Never Gonna Give You Up Quote Select Post

Select Post Deselect Post

Deselect Post Link to Post

Link to Post Member Give Gift

Member Back to Top Post by goulstem on Lua, 903 chars.





local n = "Never gonna ";



local s = [[











]];



local song = {



intro = [[



We're no strangers to love



You know the rules and so do I



A full commitment's what I'm thinking of



You wouldn't get this from any other guy







I just want to tell you how I'm feeling



Gotta make you understand]];



hook = n.."give you up, "..n:lower().."let you down

"..n.. "run around and desert you

"..n.."make you cry, "..n:lower().."say goodbye

"..n.."tell a lie and hurt you";



v1 = [[



We've known each other for so long



Your heart's been aching but you're too shy to say it



Inside we both know what's been going on



We know the game and we're gonna play it







And if you ask me how I'm feeling



Don't tell me you're too blind to see]];



v2 = [[



I just want to tell you how I'm feeling



Gotta make you understand]];



}







print(song.intro..s..song.hook..s..song.v1..s..song.hook..s..song.hook..s..song.v1..song.v2..s..song.hook);



lorenzods

New Member



Veteran





Posts: 2

New Member Never Gonna Give You Up goulstem likes this Quote Select Post

Select Post Deselect Post

Deselect Post Link to Post

Link to Post Member Give Gift

Member Back to Top Post by lorenzods on



#include <iostream>

#include <string>



using namespace std;



string h = "how I'm feeling

",

b = "We've known each other for so long

Your heart's been aching but you're too shy to say it

Inside we both know what's been going on

We know the game and we're gonna play it



",

i = "I just want to tell you "+h+"Gotta make you understand



";



string r(int p=1) {

string n="Never gonna ",l=n;l[0]='n';

string r=n+"give you up, "+l+"let you down

"+n+"run around and desert you

"+n+"make you cry, "+l+"say goodbye

"+n+"tell a lie and hurt you

";

return (p) ? r+"

":r;

}



int main() {

cout

<< "We're no strangers to love

You know the rules and so do I

A full commitment's what I'm thinking of

You wouldn't get this from any other guy



"

<< i << r() << b

<< "And if you ask me " << h

<< "Don't tell me you're too blind to see



"

<< r() << r() << b

<< i << r(0);

return 0;

}

C++, 836 bytes#include #include using namespace std;string h = "how I'm feeling

",b = "We've known each other for so long

Your heart's been aching but you're too shy to say it

Inside we both know what's been going on

We know the game and we're gonna play it



",i = "I just want to tell you "+h+"Gotta make you understand



";string r(int p=1) {string n="Never gonna ",l=n;l[0]='n';string r=n+"give you up, "+l+"let you down

"+n+"run around and desert you

"+n+"make you cry, "+l+"say goodbye

"+n+"tell a lie and hurt you

";return (p) ? r+"

":r;int main() {cout<< "We're no strangers to love

You know the rules and so do I

A full commitment's what I'm thinking of

You wouldn't get this from any other guy



"<< i << r() << b<< "And if you ask me " << h<< "Don't tell me you're too blind to see



"<< r() << r() << b<< i << r(0);return 0;