I need this done in 3 days.
The main objective is to implement an online version of the game –Deal or no Deal, with modified rules.
The Following is the (modified) game rules.
“There are 12 briefcases which are numbered 1 to 12. Each briefcase contains a unique monetary amount from the following figures: $0.5, $1, $10, $100, $200, $500, $1000, $2000, $5000, $10000, $20000, $50000.
At the beginning of the game the contestant chooses one cases as their case.
The contestant is then asked to nominate a number of cases (4 for the first round, 3 for the second round 2 cases in the third round and 1 for the round 4) to be opened so that the monetary amount in those cases can be revealed.
The aim of the player is to hopefully not reveal the larger cash prizes.
At the end of each round (for the first 4 rounds) - the "bank" will offer the contestant a monetary amount to try and convince them to make a "deal" and quit the game at that point. The amount the contestant is offered is based on the following formula: the total amount of the money in the leftover cases divides the number of cases.
If the contestant believes that they are in possession of big bucks or that the deal the bank offer is not worth considering - they will choose "no deal" and the game will move on to another round.”
When a user starts a new game, the website will display 12 briefcases (randomly ordered) and allows user to click on the briefcase to reveal the monetary amount in those cases. You will also display how many briefcases yet to be opened in the current round.
At the end of each round, user will be shown with a page containing the information of the amount the bank is offering, the biggest amount contained in the current briefcases and an option of deal or no deal. If user chooses deal, the game finishes. If user chooses no deal, user will go into another round.
To make this game practical playable, you also need to make sure:
2)Clicking “fresh” button on the page will not result any inconsistencies such as a briefcase is opened twice, the user asked to think twice of bank’s offer etc.
3)Clicking “go back” button will not roll back the game.
In this assignment, you should use JSP together with Java Beans. Using servlets is not recommended. It is up to you to decide how to implement session tracking.