자바 스크립트
function stringTheory(theory) {
var proof = 0;
var principles = theory.split(/[ ,.'-]/);
for (var i = 0; i < principles.length; i++) {
var formula = '';
for (var j = 0; j < principles[i].length; j++) {
formula += principles[i].charCodeAt(j).toString(10);
}
proof += +formula;
}
return proof;
}
console.log(
/* \2 and \3 are start of text and end of text characters */
stringTheory('\2 Yo it\'s 4327 - Go to space, look back, and see the dot of a small blue rock you once sat on amid the vast empty void - KA-BOOM - you are in awe of it. "Ah" - so tiny in this vast space yet you are even more so. A mere atom in an ocean of stars, the earth a speck of dust to the sun\'s ping-pong ball. One day you shall go back and as your toes touch the soft soil once more, the cool wind in your hair as you cast your gaze upon the moon, a mere rock just like this one, and bask in it\'s warm glow - Ah. Only then can you know the scale of it all, what luck you have to call this place home. And with this new ken, a love you\'ve kept for all of time but had not seen - for it is clear to you now. You lay open your arms and fill the air with your song - (aah) ~o Good-bye space and ... o? \3') + 42
);
무슨 일이야?
우리는이 문자열을 가지고 조금 적용합니다 stringTheory()
(실제로 미래에서 전송됩니다).
'\2 Yo it\'s 4327 - Go to space, look back, and see the dot of a small blue rock you once sat on amid the vast empty void - KA-BOOM - you are in awe of it. "Ah" - so tiny in this vast space yet you are even more so. A mere atom in an ocean of stars, the earth a speck of dust to the sun\'s ping-pong ball. One day you shall go back and as your toes touch the soft soil once more, the cool wind in your hair as you cast your gaze upon the moon, a mere rock just like this one, and bask in it\'s warm glow - Ah. Only then can you know the scale of it all, what luck you have to call this place home. And with this new ken, a love you\'ve kept for all of time but had not seen - for it is clear to you now. You lay open your arms and fill the air with your song - (aah) ~o Good-bye space and ... o? \3'
먼저 문장 부호를 나누고 단어를 만듭니다. 그런 다음 문자를 10 진수 ASCII 코드로 변환하여 일련의 숫자를 만듭니다. 인접한 문자는 인접한 숫자 aa
가됩니다 (예 :) 9797
.
그런 다음 숫자가 합산됩니다. 우리가 다시 얻는 191212222216169
것은 완전히 쓸모없는 숫자이며, 우주에 떠 다니는 수조 개의 암석처럼 의미가 없습니다. 이 세상을 특별하게 만드는 것은 무엇입니까? 왜 인생인가. 이 숫자 에 생명 의 의미를 부여함으로써 +=42
우리는 얻는다 191212222216211
.
그런데 왜?
이것은 무엇을 의미 하는가? stringTheory("Hello world")
물론 그것이 의미 하는 이유 .