Skip to content

AzamAzis/Rock_Paper_Scissors

Repository files navigation

Odin Project - Rock Paper Scissors

Table of contents

Overview

Screenshot

screenshot

Preview

Links

My process

Built with

  • Semantic HTML5 markup
  • Flexbox
  • Mobile-first workflow
  • JavaScript

What I learned

This project is part of The Odin Project curriculum. The goal was to build a simple Rock Paper Scissors game using JavaScript, HTML, and CSS.

1. JavaScript Fundamentals

  • Variables (let, const)
  • Data types (strings, numbers)
  • Functions and return values
  • Conditional logic (if, else if, else)
  • The switch statement
  • Comparison operators (===, >, <)
  • Browser events

2. Game Logic

  • Comparing player vs computer choices
  • Determining win, lose, or draw
  • Structuring reusable functions

3. DOM Manipulation

  • Selecting elements (querySelector)
  • Updating text content
  • Handling button clicks

4. Event Listeners

  • Making the game interactive
  • Responding to user input (button clicks)

5. Score Tracking

  • Keeping track of player and computer scores
  • Updating UI dynamically

6.Basic UI and Styling (CSS)

  • Layout using Flexbox
  • Centering elements
  • Styling buttons and text

Challenges

  • Understanding event flow in JavaScript
  • Making animations (like score increment effects)

Author

Acknowledgments

Icons used in this project are provided by creators from Flaticon.

Releases

No releases published

Packages

 
 
 

Contributors