Skip to content

Instantly share code, notes, and snippets.

View javierd79's full-sized avatar
🎯
Aiming high

Javier Diaz javierd79

🎯
Aiming high
  • Dataweb C.A
  • Zulia, Venezuela
  • 20:52 (UTC -04:00)
View GitHub Profile
@briyithhhh
briyithhhh / rock-paper-scissors.js
Created November 26, 2022 00:30
rock-paper-scissors game made in JavaScript
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){