用您的编程编写故事。JavaScript中的示例:
self.book = {
"story": function() {
var once = "upon",
aTime = setTimeout(function() {
// Code would continue...
}, 1000)
}
};
self.book.story();
规定:
- 在编译之前,之中和之后必须运行无错误。
- 每个字符串/名称最多只能使用两个单词作为故事。
- JavaScript示例:
var story = "Once upon a"; // Wrong (Using more than two words)
var story = "Onceupona"; // Wrong (Using more than two "words")
var onceUponA = "time"; // Wrong (more than two words as a variable name)
var onceUpon = "a time"; // This is fine
var story = "Once upon"; // This is fine
- JavaScript示例:
- 故事必须是完整的句子(至少)。
- 不需要某种输出(例如“打印”故事本身),但这是一个加号。
- 发挥一些创造力。
由于没有长度规则,因此票数最多/创造力最高的答案将获胜。:)
2
这种提醒使我想起了IOCCC的本条目,该条目以交换字母的形式写的
—
Hasturkun 2011年
我希望您的意思是字符串文字中最多2个单词?否则,组合字符串将是非法的。
—
jpjacobs 2011年
@jpjacobs是的。虽然类似的东西
—
Shaz
"Hi how" + "are you" + "doing today"
会很la脚。;)
没有客观的获胜标准。
—
dmckee ---前主持人小猫,