// Función para calcular resultado según respuestas function computeResult(answersIndices) // Inicializar puntajes let scores = baby: 0, ballora: 0, funtime_freddy: 0, funtime_foxy: 0, ennard: 0, michael: 0 ; for (let q = 0; q < answersIndices.length; q++) const optIndex = answersIndices[q]; if (optIndex === undefined // Encontrar personaje con mayor puntaje (si empate, desempate según orden preferido: baby, ennard, michael, etc) let bestChar = "baby"; let maxScore = -1; for (let [char, score] of Object.entries(scores)) if (score > maxScore) maxScore = score; bestChar = char; else if (score === maxScore) // desempate: prioridad narrativa: baby > ennard > michael > funtime_freddy > ballora > funtime_foxy const order = ["baby", "ennard", "michael", "funtime_freddy", "ballora", "funtime_foxy"]; const currentBestIdx = order.indexOf(bestChar); const newIdx = order.indexOf(char); if (newIdx < currentBestIdx) bestChar = char; return CHARACTERS[bestChar];
.nav-btn.primary:hover:not(:disabled) background: #2f6a9e; transform: translateY(-1px); test de que personaje de fnaf sister location eres
.character-name font-size: 2.2rem; font-weight: 800; letter-spacing: 2px; margin-bottom: 12px; for (let q = 0
text: "¿Qué final de FNaF SL te parece más interesante?", options: [ "El final privado (esconderse y observar).", "El final donde te electrocutan... irónico.", "El scooping room, pese al horror, es fascinante.", "Escapar con el helado para Elizabeth." ] q++) const optIndex = answersIndices[q]
.header p margin: 8px 0 0; color: #9ab3d5; font-size: 0.9rem;
<!DOCTYPE html> <html lang="es"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes"> <title>Test: ¿Qué personaje de FNaF Sister Location eres?</title> <style> * box-sizing: border-box; font-family: 'Segoe UI', 'Courier New', monospace; body background: linear-gradient(145deg, #0a0f1e 0%, #0c1222 100%); min-height: 100vh; display: flex; justify-content: center; align-items: center; padding: 20px; margin: 0;
.progress background: #11161f; border-radius: 40px; height: 10px; margin-bottom: 25px; overflow: hidden;