GithubHelp home page GithubHelp logo

manikanta528 / rock-paper-scissors Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 1.0 22 KB

Implementation of rock paper scissors game.

Home Page: https://manikanta528.github.io/rock-paper-scissors/

HTML 24.38% JavaScript 37.63% CSS 37.99%
css3 html javascript

rock-paper-scissors's Introduction

Poject rock-paper-scissors

It is a simple implementation of rock papaer scissors game form The Odin Project Curriculum

Live Preview ๐Ÿ‘‰ Click Here

Screenshot-2022-07-06-at-1-17-39-PM.png

Used Languages

  1. HTML
  2. CSS
  3. JavaScript

How it was done

At first, just wrote the JavaScript where it was able to play completely through the console.
For player pick, prompt function is used to take the input form player.
For computer pick, used random function to pick a num with the help of the number computer pick is decided.
Player pick and Computer pick is compared and gets the result.


js


After that added Structure(HTML) and CSS to the project.
Reimplemented the JavaScript to interact with the buttons by eventListener to pick the player choice.
Used Dom manipulation methods to change the scoreboard, computer pick etc.
At last found some height issuses in CSS solved it and deployed in gitHub.

Live Preview ๐Ÿ‘‰ Click Here

MY Socials

rock-paper-scissors's People

Contributors

manikanta528 avatar

Watchers

 avatar

Forkers

ritikasinghpro

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.