Skip to content

costidotdev/angle

Repository files navigation

Angle Guessing Game

This project is an interactive web game where players guess the angle of a randomly generated arc.

Features

  • Randomly generated angles for each game
  • Visual representation of the angle using SVG
  • Feedback on each guess (Boiling, Getting there, Cold)
  • Direction indicators (🔽 too high, 🔼 too low, 😛 correct)
  • Limited number of guesses (4 attempts)
  • Confetti animation on winning

Technologies Used

  • React
  • TypeScript
  • Vite
  • Mantine UI
  • React Confetti

How to Play

  1. The game presents a random angle visualized as an arc.
  2. Enter your guess in degrees (0-180) in the input field.
  3. Submit your guess to receive feedback.
  4. You have 4 attempts to guess the correct angle.
  5. Win by guessing the exact angle or lose after 4 incorrect guesses.

Installation and Running

  1. Clone the repository
  2. Install dependencies with npm install
  3. Run the development server with npm run dev
  4. Open the provided localhost URL in your browser

Enjoy playing the Angle Guessing Game!