JoshRBXJoin Date: 2012-05-19 Post Count: 8778 |
Nothing beats a bit of good old code golf! Try this:
scripters.boards
.net/
thread/58/never-gonna-give
Josh#5318 |
|
JoshRBXJoin Date: 2012-05-19 Post Count: 8778 |
I'm hoping for some exciting solutions! :P
Josh#5318 |
|
JoshRBXJoin Date: 2012-05-19 Post Count: 8778 |
I've done it in 708 chars, any solutions are welcome!
Josh#5318 |
|
|
lol rip thread
^ what language? |
|
JoshRBXJoin Date: 2012-05-19 Post Count: 8778 |
I know ;(
RBX.Lua
Josh#5318 |
|
cntkillmeJoin Date: 2008-04-07 Post Count: 49450 |
warn(game.HttpService:GetAsync"mysitethatreturnsthelyrics") |
|
JoshRBXJoin Date: 2012-05-19 Post Count: 8778 |
Without http requests or requiring a module :p
Josh#5318 |
|
|
Then what's the point? Literally the shortest way is to hard-code it. That is, if you're not allowing us to use HTTPService.
|
|
|
715
I will keep trying :( |
|
|
JoshRBXJoin Date: 2012-05-19 Post Count: 8778 |
Aww, I'm at 707, I'll have to try and beat you!
@Ceasless, there are many repeated phrases and verses.
Josh#5318 |
|
|
you likely just have an extra line break
my script is all on one line |
|
JoshRBXJoin Date: 2012-05-19 Post Count: 8778 |
Mine is also all on one line
Josh#5318 |
|
scp900Join Date: 2013-02-23 Post Count: 21 |
If someone is really good please help us on discord
Discord: BrkM9tj |
|
JoshRBXJoin Date: 2012-05-19 Post Count: 8778 |
no
Josh#5318 |
|
|
print([[We're no strangers to lo####Y####now 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]])
/sarcasm |
|
KapKing47Join Date: 2012-09-09 Post Count: 5522 |
#### if I can paste anything I want from somewhere and add a few functions to decode the string, I could make an algorithm to encode it into a far shorter string/code but it would take me some time to come up with an algorithm like that. |
|
|
^ The decompress function will use a lot of characters |
|
|
lorenzods's solution is very nice a,b,c="_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_"print(("We're no strangers to ######## 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"..c..a..b.."__And if you ask me how I'm feeling_Don't tell me you're too blind to see_"..a..a..b..c..a):gsub("_","\n"):sub(1,-2)) |
|
SoybeenJoin Date: 2010-02-17 Post Count: 21462 |
What about encoding the lyrics and then printing them after key phrases |
|
|
c=[[ 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 ]]f=[[ I just want to tell you how I'm feeling Gotta make you understand ]]s=[[ 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 ]]warn([[We're no strangers to #### ### 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 ############### And if you ask me how I'm feeling Don't tell me you're too blind to see ]]..c..c..s..f..c) 25 lines, 665 characters |
|
|
VilgOJoin Date: 2011-02-15 Post Count: 518 |
749, and I goofed up because [[]] trims line breaks -_-
ideone.
com/pE9FiP
The algorithm is greedy and doesn't look at already encoded strings, so it's really bad.
Link to the source in the comments. |
|
|
new one, 661 characters and same number of lines
kzrKtYkp pastebin
|
|
VilgOJoin Date: 2011-02-15 Post Count: 518 |
Are you not counting whitespace? Because you should. (Except those that can be removed but are good for readability.) |
|