Skip to content

kgarrity22/rock-paper-scissors

Repository files navigation

Simple Rock, Paper Scissors App

A simple react app that simulates a game of rock, paper, scissors with css animations & transitions

Demo rps-react

Description

Inspired by a CodePen challenge, this app lets a user play a game of rock, paper, scissors vs. the computer. The computer selects randomly from the array so the user can expect to win, lose, and tie for the most part in equal measure. The app also tracks the win, lose, and tie record and writes it to local storage so history persists across refreshes.

Features

  • Basic Game Play: User selects Rock, Paper, or Scissors, and the computer randomly selects one as well
  • Animations: Animations for countdown and face-off-shake effects
  • Game History: Tracking for the number of wins, losses, and ties & caching game history for when a user returns in the future

Built With

  • React
  • Material UI
  • Vite

Getting Started

Installation

View live demo or follow the instructions below to create and run your own copy locally:

  1. Clone the repo
    git clone https://github.com/kgarrity22/repo_name.git
  2. Install packages
    yarn install

Executing program

  • Running locally:
yarn dev

Help

If you have any issues

Contact

Kathleen Garrity [email protected]

License

This project is licensed under the MIT License - see the LICENSE.txt file for details

Acknowledgments

Inspiration, code snippets, etc.

Releases

No releases published

Packages

No packages published