浪語:修订间差异
跳转到导航
跳转到搜索
Lambda.cat(讨论 | 贡献) 无编辑摘要 |
Lambda.cat(讨论 | 贡献) 无编辑摘要 标签:2017年版源代码编辑 |
||
第75行: | 第75行: | ||
<syntaxhighlight lang="javascript" line="1"> | <syntaxhighlight lang="javascript" line="1"> | ||
f = (x) => | f = (x) => | ||
if | if x <= 0 then 0 | ||
else if | else if x == 1 then 1 | ||
else f(x - 1) + f(x - 2) | else f(x - 1) + f(x - 2) | ||
第232行: | 第232行: | ||
event join (user) => { | event join (user) => { | ||
if guests.includes(user) | if guests.includes(user) | ||
then drrr.print("welcome back, " + user) | |||
else guests.push(user) | else guests.push(user) | ||
} | } | ||
第250行: | 第250行: | ||
gnjdg = (guess, callback) => { | gnjdg = (guess, callback) => { | ||
if(valid(guess)){ | if(valid(guess)) then { | ||
d = theNumber.split("") | d = theNumber.split("") | ||
g = guess.split("") | g = guess.split("") | ||
第257行: | 第257行: | ||
b = c - a | b = c - a | ||
callback( | callback( | ||
if(a === 4) | if(a === 4) then | ||
"Your Number is Correct" | "Your Number is Correct" | ||
else | else | ||
第276行: | 第276行: | ||
event join (user) => { | event join (user) => { | ||
if users.length == 10 | if users.length == 10 | ||
then | |||
drrr.print("/me恭喜成為 0.0001 人,你終於不做人類了嗎!"); | drrr.print("/me恭喜成為 0.0001 人,你終於不做人類了嗎!"); | ||
else | else |