Skip to content

jeanvq/Java_Assignment_3

Repository files navigation

⚽ Penalty Shootout: Legends Edition

A Java console-based penalty shootout game where you face off against the computer in a best-of-5 challenge. Choose your favorite team, take shots, make saves, and see who wins the match!


🎮 Features

  • Team Selection – Choose from top clubs: Real Madrid, Barcelona, PSG, Manchester City, or Bayern Munich.
  • Turn-Based Gameplay – Alternate between taking shots and defending against the CPU.
  • Randomized Outcomes – Shots and saves are determined with randomness for unpredictability.
  • Colorful Console Output – ANSI colors for better visual feedback during play.
  • Final Match Summary – See who wins after 5 rounds.

🛠️ Technologies Used

  • Java – Core programming language.
  • Scanner – For user input.
  • Random – To generate unpredictable shot outcomes.
  • ANSI Escape Codes – For colored console output.

🚀 How to Run

  1. Clone or Download this repository.
  2. Open your terminal and navigate to the game folder.
  3. Compile the game:
    javac *.java

About

Penalty Game

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages