Skip to content

Holmes-99/multiplayer-quiz-game-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Multiplayer Quiz Game — TCP/UDP Hybrid

A multiplayer quiz game built with raw Python sockets using a hybrid TCP/UDP architecture. Built as part of the ENCS3320 Computer Networks course at Birzeit University.

Architecture

  • TCP → player registration, question broadcast, final results
  • UDP → real-time answer submission and feedback

How it Works

  1. Players connect via TCP and register with unique usernames
  2. Server waits for minimum 2 players then starts the game
  3. Server sends questions to all players via TCP
  4. Players submit answers via UDP (10 seconds per question)
  5. Server sends instant feedback via UDP (Correct / Wrong)
  6. After 5 rounds, server announces final scores and winner via TCP

How to Run

Start the server

python server.py

Start each client (in separate terminals)

python client.py

Game Settings

  • Min players: 2 / Max players: 4
  • Questions per game: 5
  • Time per question: 10 seconds
  • Scoring: +1 correct, 0 wrong

Libraries Used

socket, threading, random, time — standard library only

Course Info

  • Course: ENCS3320 — Computer Networks
  • University: Birzeit University
  • Semester: Fall 2025

About

Multiplayer networking quiz game in Python using TCP for registration and results, UDP for real-time answer submission, no external libraries.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages