Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Rock Paper Scissors game Purpose: The objective of this project is to use RPC as the means of communication. Requirements: For this project you are

Rock Paper Scissors game

Purpose: The objective of this project is to use RPC as the means of communication. Requirements: For this project you are to write:

A client-server application that passes a token repeatedly between the client and the server. The client and server are to cooperate in a computation described below. 1. Implementation Language:

The acceptable languages for this project are C/C++ using RPC.

2. Computation:

The client and server are to play multiple rounds of Rock-Paper-Scissors. The client will make a random choice and send it in a token to the server. The server will make its random choice and determine the winner. The server choice and winner statistcs are to be updated by the server in the token which is returned to the client. 3. Token:

The token may be thought of as an object (structure) that is passed back and forth between the client and server. The token must be used to track: the time at which it was initially created (for first round) the number of rounds that have been played the current round results: client choice, server choice, winner of round summary statistics: number of rounds played, number of client wins, number of server wins, number of draws. 4. Client-Server:

The client is to initially create the token and send it to the server via an RPC request. The server is to update the token and pass it back to the client. The token is then to be repeatedly passed between the client and server until the token has been passed a certain number of times (LIMIT; suggested value of LIMIT: 10000). Then the client is to display summary statistics (see below). 5. Summary Statistics: The summary statistics must include:

number of rounds played

number of client wins

number of server wins

number of draws.

the elapsed time (in milliseconds if possible)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Databases In Networked Information Systems 6th International Workshop Dnis 2010 Aizu Wakamatsu Japan March 2010 Proceedings Lncs 5999

Authors: Shinji Kikuchi ,Shelly Sachdeva ,Subhash Bhalla

2010th Edition

3642120377, 978-3642120374

More Books

Students also viewed these Databases questions

Question

Develop a program for effectively managing diversity. page 303

Answered: 1 week ago

Question

List the common methods used in selecting human resources. page 239

Answered: 1 week ago