gustavohc07 / paper-rock-scissor

TOP First Js Project

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

paper-rock-scissor

TOP First Js Project

Game is complete. Just open the page and you will be able to play.

My code could be much smaller if I just created the divs in my HTML document but I wanted to improve my DOM manipulation skills. Hope you guys like it and enjoy the game!

Doubts & Answers (It is a note for myself, don't need to read it):

- How to generate a random output?

    Generated it with a combination of Math.floor and Math.random.

    let anyVar = [opt1, opt2, opt3]
    let random = Math.floor(Math.random() * anyVar.length)
    return anyVar[random]

Time to complete task first part: 383 min (6h and 23min)

Time to complete second part(layout, buttons...): 610 min (10h and 10min)

About

TOP First Js Project


Languages

Language:JavaScript 71.8%Language:CSS 20.1%Language:HTML 8.1%