A secure Rock-Paper-Scissors (RPS) game server and client using Python. The server supports individual games and tournaments, allowing multiple players to connect, play, and view rankings.
-
Clone the repository:
git clone https://github.com/ViNoS-ab/TP-RPS-TCP cd TP-RPS-TCP -
Create and activate a virtual environment:
python3 -m venv venv source venv/bin/activate # On Windows use `venv\Scripts\activate`
-
Generate SSL certificates (if not provided):
openssl req -x509 -newkey rsa:4096 -keyout server.key -out server.crt -days 365 -nodes
-
Navigate to the
srcdirectory:cd src -
Start the server:
python server.py
-
Navigate to the
srcdirectory:cd src -
Start the client:
python client.py
- Login and Registration
- Play Game
- View Rankings
- Create Tournament
- Join Tournament
- Start Tournament