This project implements a Bingo game with both RMI (Remote Method Invocation) and RPC (Remote Procedure Call) versions. It consists of four main components:
-
BongoGameClient:
- Implementation of the client that interacts with the server through the Gateway.
- Handles player choices for playing Bingo, checking the best score, or quitting.
-
BingoGameGateway:
- Implementation of the Gateway acting as an intermediary between clients and the server.
-
BingoGameServerRMI:
- Implementation of the server using RMI.
-
BingoGameServerRPC:
- Implementation of the server using RPC.
-
BongoGameClient:
- Execute the
mainmethod to establish a socket connection with the Gateway. - Use the
displayMenumethod to explore game options.
- Execute the
-
Part RMI:
- Shared Interface:
BingoService. - Gateway:
BingGatewayHandlerRMI: Gateway implementation for RMI.BingoGateway: Main class for the Gateway.
- Server:
BingoServiceImpl: Implementation of the BingoService interface.ServerRMI: Main class for the RMI server.
- Shared Interface:
-
Part RPC:
- Shared Interface:
BingoService. - Gateway:
BingGatewayHandlerRPC: Gateway implementation for RPC.BingoGateway: Main class for the Gateway.
- Server:
BingoServiceImplRPC: Implementation of the BingoService interface.ServerRPC: Main class for the RPC server.
- Shared Interface:
- For RMI: Uncomment relevant code and comment out RPC sections.
- For RPC: Uncomment relevant code and comment out RMI sections.
Feel free to explore and contribute!