- Operating System Innovative Project, python scripts written in the Linux Operating System with Socket communication and logic for a multiplayer Quiz game.
- Using the concepts of Peer-to-Peer network and distributed system, implementing a multiplayer quiz which works on two different systems connected.
- In order to start the quiz the users have to wait till other user joins in.
- Once both the users are available, users on these two different machines can play quiz simultaneously.
- Depending on the time taken the winner(with less time) will be selected.
- Cases with incorrect answers are also reflected.
- scratch implementation is done in virtualbox two
-
Date Created : Innovative Project
-
Subject : Operating System
-
Date Created : November 2020
-
Concepts used :
- Multithreading
- Socket Communication
- Game stratergy
- Mimicing distributed computing in linux operating system with python scripts
- Exception Handling
- Virtual Machine
- Communication betwen multiple Linux Virtual Machines
- sys
- socket
- time
- threading
cd to_Scripts
pip install threading
pip install socket
Case 1: One user with incorrect and other with a correct answer.
Case 2: Both the users answer correctly. User with less time wins.
Case 3: Both the users answer incorrectly.
_ Demo video for the implementation of the project _
**Linux Systems must be connected in LAN in the virtualbox. (with Bridge Connection or any other connection so their IP are in the one network) **
- Linux Machine Terminal
cd to_python_files
python3 Peer1Player1Machine1.py
- Another Linux Machine's Terminal
cd to_python_files
python3 Peer2Player2Machine2.py