Juego de Piedra, papel o tijera con JS
Funcion para generar un número random:
function getRandomInt(min,max){
return Math.floor(Math.random()*(max-min+1)+min)
}
Esto crea un número random entre el 1 y el 3:
Math.floor(Math.random() * 3) + 1;
Operadores lógicos:
and: &&
or: ||
not: !