浪語:修订间差异

跳转到导航 跳转到搜索
无编辑摘要
无编辑摘要
无编辑摘要
标签2017年版源代码编辑
第75行: 第75行:
<syntaxhighlight lang="javascript" line="1">
<syntaxhighlight lang="javascript" line="1">
f = (x) =>
f = (x) =>
   if(x <= 0) 0
   if x <= 0 then 0
   else if(x == 1) 1
   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)
  drrr.print("welcome back, " + 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
153

个编辑

导航菜单