Code Monkey home page Code Monkey logo

toletole's Introduction

<title>PIEDRA, PAPEL o TIJERA</title>
    <script>
        function aleatorio(min, max){
            return Math.floor(Math.random()*(max-min+1)+min)
        }
        // 1 es piedra, 2 es papel, 3 es tijera
        let jugador=0
        let pc= aleatorio(1,3)
        jugador=prompt("Elige:1 para piedra, 2 para papel, 3 para tijera")
        //alert("Elegiste " + jugador)
        if(jugador ==1){
            alert("Elegiste πŸ₯Œ")
            } else if (jugador ==2){
            alert("Elegiste πŸ“ƒ")
            }else if (jugador ==3) {
            alert("Elegiste βœ‚")
            } else{
            alert("Elegiste PERDER")
            }
            if(pc ==1){
            alert("PC Elige πŸ₯Œ")
            } else if (pc ==2){
            alert("PC Elige πŸ“ƒ")
            }else if (pc ==3) {
            alert("PC Elige βœ‚")
            }
             //COMBATE
             if(pc==jugador){
                alert("EMPATE")
             }else if(jugador==1 &&pc==3){
                alert("GANASTE")
             }else if(jugador==2 &&pc==1){
                alert("GANASTE")
             } else if(jugador==3 &&pc==2){
                alert("GANASTE")
             }
             else{
                alert("PERDISTE")
             }
    </script>
</head>
<body>
    <h1>Piedra,papel o tijera</h1>
</body>

toletole's People

Contributors

brandonalcocer0213 avatar

Stargazers

 avatar

Watchers

 avatar

toletole's Issues

MUSICA CON IMAGEN DESDE SPOTIFY

<title>Reproductor mΓΊsica de Spotify</title> <style> body { text-align: center; font-family: Arial, sans-serif; background-color: #AB6557; background-size: cover; background-position: center; } h1 { margin-bottom: 20px; } img { width: 150px; height: 150px; border-radius: 50%; object-fit: cover; margin-bottom: 20px; } </style>

MΓΊsica desde Spotify

οΏΌ

<iframe src="https://open.spotify.com/embed/track/6rqhFgbbKwnb9MLmUQDhG6" width="300" height="80" frameborder="0" allowtransparency="true" allow="encrypted-media"></iframe>

PIEDRA PAPEL O TIJERA

<title>PIEDRA, PAPEL o TIJERA</title>
    <script>
        function aleatorio(min, max){
            return Math.floor(Math.random()*(max-min+1)+min)
        }
        // 1 es piedra, 2 es papel, 3 es tijera
        let jugador=0
        let pc= aleatorio(1,3)
        jugador=prompt("Elige:1 para piedra, 2 para papel, 3 para tijera")
        //alert("Elegiste " + jugador)
        if(jugador ==1){
            alert("Elegiste πŸ₯Œ")
            } else if (jugador ==2){
            alert("Elegiste πŸ“ƒ")
            }else if (jugador ==3) {
            alert("Elegiste βœ‚")
            } else{
            alert("Elegiste PERDER")
            }
            if(pc ==1){
            alert("PC Elige πŸ₯Œ")
            } else if (pc ==2){
            alert("PC Elige πŸ“ƒ")
            }else if (pc ==3) {
            alert("PC Elige βœ‚")
            }
             //COMBATE
             if(pc==jugador){
                alert("EMPATE")
             }else if(jugador==1 &&pc==3){
                alert("GANASTE")
             }else if(jugador==2 &&pc==1){
                alert("GANASTE")
             } else if(jugador==3 &&pc==2){
                alert("GANASTE")
             }
             else{
                alert("PERDISTE")
             }
    </script>
</head>
<body>
    <h1>Piedra,papel o tijera</h1>
</body>

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.