Rock Paper Scissors AI

Project Overview

Experience the classic game of Rock Paper Scissors brought to life in a modern web environment. This project combines clean UI design with smooth logic to provide a fun, interactive gaming experience against an AI opponent.

1. Game Interface

Game Interface

The game features an intuitive dashboard where players can make their move with a single click. It includes real-time result calculations and an interactive score tracker to monitor your performance throughout the session. You can swatch to double player mode also.

2. Double Player Mode

Double Player Mode

Challenge a friend locally! The Double Player mode allows two users to compete on the same device. The scores for each player are tracked individually in a competitive "Leaderboard" style format.

Double Player Scores

3. Scoring System

Global Scores

The scoring system is persistent and provides a clear breakdown of Wins, Losses, and Draws. It uses dynamic updates so you never have to refresh the page to see who is leading the game.

Technical Architecture

This application is built with a focus on responsiveness and logic-driven gameplay.

Python (Flask) HTML5 & CSS3 JavaScript MySQL Database

How It Works:
The frontend captures player moves and sends them to the Flask backend. The backend logic determines the winner based on the move hierarchy and updates the MySQL database to ensure that scores are saved and retrieved accurately for the leaderboard.