Trending Tags
  • #nodereviews
  • #damusandroid
  • #1
Trending Notes
Global
Trending Profiles
  • The Fishcake🐶🐾 & 763 others
    @The Fishcake🐶🐾
  • Matt⚕️
    @Matt⚕️
  • Jay
    @Jay
  • semisol
    @semisol
  • Oshtor
    @Oshtor

Nostr View


Szachik Sabizański @likemike - 24h

function classifyGameCharacter(hasLongChest, hasFloatingObject, hasLargeHips) { if (hasLongChest && hasLargeHips) { return "NIKKE"; } else if (hasLongChest && !hasLargeHips) { return "ブルアカ"; } else if (!hasLongChest && hasFloatingObject) { return "ブルアカ"; } else if (!hasLongChest && hasLargeHips) { return "Stellar Blade"; } else { return "分類不明"; } } // 使用例 console.log(classifyGameCharacter(true, false, false)); // "ブルアカ" console.log(classifyGameCharacter(false, true, false)); // "ブルアカ" console.log(classifyGameCharacter(true, false, true)); // "NIKKE" console.log(classifyGameCharacter(false, false, true)); // "Stellar Blade" // より読みやすい版本 function classifyGameCharacterReadable(characteristics) { const { hasLongChest, hasFloatingObject, hasLargeHips } = characteristics; if (hasLongChest) { if (hasLargeHips) { return "NIKKE"; } else { return "ブルアカ"; } } else { if (hasFloatingObject) { return "ブルアカ"; } else if (hasLargeHips) { return "Stellar Blade"; } else { return "分類不明"; } } }

0
0
3

Showing page 1 of 1 pages