Giter Site home page Giter Site logo

rock-paper-scissors's Introduction

rock-paper-scissors

Rock Paper Scissors game against the computer. This project is part of The Odin Project's course and it's divided in two parts.

First Part

Game playable through the browser console.

  • Javascript basic concepts and syntax;
  • For and while loops;
  • Conditional statements;
  • Basic user interaction with prompt;
  • Functions;
  • Debugging and error checking with DevTools.

Second Part

Game playable through the browser with visual content.

  • Use of classes and containers to keep the html organized, readable and easy to handle;
  • CSS and JavaScript transition (fade-in / fade-out) to create a dynamic page;
  • DOM manipulation with CSS;
  • Event listening with JavaScript;
  • Use of functions to make the code easy to edit/debug, with modular approach;
  • Debugging and error checking with Chrome DevTools;
  • Visual interactions with the user.

Future Improvements

  • Adding a visual representation when the player and the computer choose their hands, maybe change the cards backround color;
  • Also, make the project scalable for different screen sizes. It is now only optimized for computer screens, not for mobile devices;
  • Adding sounds.

rock-paper-scissors's People

Contributors

caiofuccio avatar

Watchers

 avatar

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.