Skip to content

Latest commit

ย 

History

35 Commits

Folders and files

NameName
Last commit message
Last commit date
ย 
ย 
ย 
ย 

Repository files navigation

โšก Multiplayer Quiz Battle (Java Swing)

Java GUI Mode License

An adrenaline-pumping, two-player head-to-head trivia game designed for desktop. Two contestants compete on the same machine using dedicated split-keyboard keybindings against a strict 15-second countdown timer.


๐ŸŽฎ Gameplay Mechanics

  • Split-Keyboard Rapid Response:
    • Player 1 Keys: Q (A), W (B), E (C), R (D)
    • Player 2 Keys: H (A), J (B), K (C), L (D)
  • โฑ๏ธ 15-Second Pressure Timer: Multi-threaded countdown thread driving dynamic round urgency with synchronized sound cues.
  • ๐Ÿ† Persistent Leaderboard: Real-time top-10 player ranking tracking lifetime wins and scores saved to file storage (player.txt).
  • โš–๏ธ Smart Conflict & Tie Resolution: Prevents self-play (same user as both players) and handles tie rounds with sudden-death tie screens.

๐Ÿ•น๏ธ Game Flow

flowchart LR
    Welcome[Welcome Screen] --> Login[Dual Player Login / Register]
    Login --> Topic[Question Category Selection]
    Topic --> Rules[Controls & Rules Briefing]
    Rules --> Arena[Live 15s PvP Quiz Arena]
    Arena --> Result{Score Outcome}
    Result -->|Winner| WinPage[Winner Page & +1 Win Point]
    Result -->|Tie| TiePage[Tie Resolution Screen]
    WinPage --> Rank[Top 10 Global Leaderboard]
Loading

๐Ÿš€ How to Run

Option 1: Using NetBeans or IntelliJ IDEA

  1. Clone the repository:
    git clone https://github.com/BytePaladin/Multiplayer-Quiz-Application-java-.git
  2. Open the MultiplayerQuizApplication directory in NetBeans or IntelliJ.
  3. Run src/multiplayerquizapplication/WelcomePage.java.

Option 2: Command Line (CLI)

cd MultiplayerQuizApplication/src
javac multiplayerquizapplication/*.java
java multiplayerquizapplication.WelcomePage

About

Real-time 2-player local PvP battle quiz game in Java Swing. Features split-keyboard controls, 15s round timers, audio effects, and persistent ranking.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages