Shakespeare Programming Language (SPL) , (削除) 137 (削除ここまで) 135 bytes
#Shakespeare Programming Language (SPL) , (削除) 137 (削除ここまで) 135 bytes
CompleteComplete program, golfed:
#Shakespeare Programming Language (SPL) , (削除) 137 (削除ここまで) 135 bytes
Complete program, golfed:
Shakespeare Programming Language (SPL) , (削除) 137 (削除ここまで) 135 bytes
Complete program, golfed:
#Shakespeare Programming Language (SPL) , 137(削除) 137 (削除ここまで) 135 bytes
Complete program, golfed:
.
A.
B.
Act I:
Scene I:
[Enter A and B]
A: Listen to your heart!
B: Listen to your heart! You are the sum of me and you. Open your heart!
----
. <- Title, everything before the first
full stop is considered as the tittle and treated as a comment
----
A. <- Dramatis personae. Here are introduced the characters in the play.
|Characters are treated as variables.
B. <--
----
Act I: <- Acts and scenes are used to divide a program into smaller
chunks in order to be able to refer to them later.
|
Scene I: <--
----
[Enter A and B] <- Characters on stage in the current scene, which are the
variables the program will have access to.
----
A: Listen to your heart! <- Line of code. All of them have the same structure
Variable: code. In this case, the concrete sentence
"Listen to your heart!" reads an input number and stores it
on the character (variable) refered to.
B: Listen to your heart! <- Same as above
You are the sum of me and you. <- Sum the values of itself and the caharacter (variable)
refered to.
Open your heart! <- Output the value of the character (value) refered to.
I am not actualy sure this is the shortest it can go. Check the official page for more info.
Edit 1: Removed the : after Act I and Scene I as it seems that everything after the roman numeral is ignored, thus saving 2 bytes.
#Shakespeare Programming Language (SPL) , 137 bytes Complete program, golfed:
.
A.
B.
Act I:
Scene I:
[Enter A and B]
A: Listen to your heart!
B: Listen to your heart! You are the sum of me and you. Open your heart!
----
. <- Title, everything before the first
full stop is considered as the tittle and treated as a comment
----
A. <- Dramatis personae. Here are introduced the characters in the play.
|Characters are treated as variables.
B. <--
----
Act I: <- Acts and scenes are used to divide a program into smaller
chunks in order to be able to refer to them later.
|
Scene I: <--
----
[Enter A and B] <- Characters on stage in the current scene, which are the
variables the program will have access to.
----
A: Listen to your heart! <- Line of code. All of them have the same structure
Variable: code. In this case, the concrete sentence
"Listen to your heart!" reads an input number and stores it
on the character (variable) refered to.
B: Listen to your heart! <- Same as above
You are the sum of me and you. <- Sum the values of itself and the caharacter (variable)
refered to.
Open your heart! <- Output the value of the character (value) refered to.
I am not actualy sure this is the shortest it can go. Check the official page for more info.
#Shakespeare Programming Language (SPL) , (削除) 137 (削除ここまで) 135 bytes
Complete program, golfed:
.
A.
B.
Act I
Scene I
[Enter A and B]
A: Listen to your heart!
B: Listen to your heart! You are the sum of me and you. Open your heart!
----
. <- Title, everything before the first
full stop is considered as the tittle and treated as a comment
----
A. <- Dramatis personae. Here are introduced the characters in the play.
|Characters are treated as variables.
B. <--
----
Act I <- Acts and scenes are used to divide a program into smaller
chunks in order to be able to refer to them later.
|
Scene I <--
----
[Enter A and B] <- Characters on stage in the current scene, which are the
variables the program will have access to.
----
A: Listen to your heart! <- Line of code. All of them have the same structure
Variable: code. In this case, the concrete sentence
"Listen to your heart!" reads an input number and stores it
on the character (variable) refered to.
B: Listen to your heart! <- Same as above
You are the sum of me and you. <- Sum the values of itself and the caharacter (variable)
refered to.
Open your heart! <- Output the value of the character (value) refered to.
I am not actualy sure this is the shortest it can go. Check the official page for more info.
Edit 1: Removed the : after Act I and Scene I as it seems that everything after the roman numeral is ignored, thus saving 2 bytes.
#Shakespeare Programming Language (SPL) , 137 bytes Complete program, golfed:
.
A.
B.
Act I:
Scene I:
[Enter A and B]
A: Listen to your heart!
B: Listen to your heart! You are the sum of me and you. Open your heart!
And a brief explanation:
----
. <- Title, everything before the first
full stop is considered as the tittle and treated as a comment
----
A. <- Dramatis personae. Here are introduced the characters in the play.
|Characters are treated as variables.
B. <--
----
Act I: <- Acts and scenes are used to divide a program into smaller
chunks in order to be able to refer to them later.
|
Scene I: <--
----
[Enter A and B] <- Characters on stage in the current scene, which are the
variables the program will have access to.
----
A: Listen to your heart! <- Line of code. All of them have the same structure
Variable: code. In this case, the concrete sentence
"Listen to your heart!" reads an input number and stores it
on the character (variable) refered to.
B: Listen to your heart! <- Same as above
You are the sum of me and you. <- Sum the values of itself and the caharacter (variable)
refered to.
Open your heart! <- Output the value of the character (value) refered to.
I am not actualy sure this is the shortest it can go. Check the official page for more info.