Skip to content

A simple rock, paper, scissors game built using HTML, CSS and vanilla JavaScript. This app was a solo project.

Notifications You must be signed in to change notification settings

roselynle/rock-paper-scissors

Repository files navigation

The Odin Project

Project: Rock Paper Scissors

Netlify Status

Simple implementation of Rock Paper Scissors game from The Odin Project curriculum.

The game is played against the computer. Whoever achieves five points first, wins the game.

Installation

  • Clone or download this repo

Usage

  • Open your terminal and navigate to the rock-paper-scissors folder
  • Load index.html in your browser
  • Enjoy the game

Technologies

  • JavaScript, CSS and HTML
  • Test suite: Jest

Wins & Challenges

Wins

  • Achieved the required functionalities (playing a single round, restarting the game when the winner reaches 5 points)
  • Improved my understanding of JavaScript functions (organisation, scopes, calling, invoking, refactoring)
  • Learnt how to create modals using CSS
  • Managed to get the test suite to run which involved moving the event listeners to a seperate file

Challenges

  • Managed to test some of the functions, however there were difficulties testing some of the complicated functions due to error messages in the test suite
  • Responsiveness could be improved, not responsive on small screens (e.g. phones)

Bugs

  • Cannot play on phone, modal will not close

About

A simple rock, paper, scissors game built using HTML, CSS and vanilla JavaScript. This app was a solo project.

Topics

Resources

Stars

Watchers

Forks