This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function aleatorio(min,max){ | |
var num = Math.floor( Math.random() * (max - min + 1) + min ); | |
return num; | |
} | |
var options = prompt('¿Estas listo para jugar?\nLas opciones son:\n0:Piedra\n1:Papel\n2:Tijera\n\n¡Escoge una opción!') | |
var game = ["Piedra", "Papel", "Tijera"] | |
function decision(option, optionPC){ |