';$('localnews').innerHTML=news;$('localnews').style.display='block';ran=Math.floor(Math.random()*AvailPos.length);spypos=AvailPos[ran];Fst=AvailPos.slice(0,ran);Snd=AvailPos.slice(ran+1);AvailPos=Fst.concat(Snd);let murdered='suspect'+spypos;let current='suspect'+spy;let asassin=$(current).getElementsByTagName('img')[0];let victim=$(murdered).getElementsByTagName('img')[0];victim.className=asassin.className;victim.title='Interrogar a '+PersNom[shuf[spy]];$(current).style.visibility='hidden';let asassin_id=$(current).id;$(current).id=null;$(murdered).id=asassin_id;kill++;if(kill>23){Lose();}}function Win(){$('fanfare').play();$('playfield').style.display='none';let killed = kill==0?'Nadie fue asesinado':kill==1?'Una persona fue asesinada':kill+' personas fueron asesinadas';let news='
¡BUENAS NOTICIAS! ¡Asesino Capturado!
';news+=PersNom[shuf[spy]]+' '+imgsuspect+'class="as-a'+shuf[spy]+'" /> es el asesino. ¡Enhorabuena, Detective!
';news+='
Por cierto, ¡'+killed+' antes que Usted capturara el asesino!
';news+='¿Quién lo hubiese sospechado? ';news+=imgsuspect+'class="as-a'+shuf[spy]+'" /> ¡'+PersNom[shuf[spy]]+' era el asesino! Bueno, de todas formas ... ¡ESTÁ DESPEDIDO, DETECTIVE! ';news+='