Acey Deucey, also known as 'In Between' and 'Sheets', is more of a fun game than a card game, but you could win some money playing it. The general principle behind Acey Deucey is that the player is dealt two cards face up. He/she then bets whether the next card will fall numerically between the first two cards. If it does, the player wins!
For this exam, you will write a program using Model 2 Architecture (MVC design pattern), or Model 1 Architecture ( either JSPs or Servlets as Controller/View) - your choice, HTML, CSS and Java classes that will allow a user to play a single player version of the game Acey Deucey.
You can read about the game of Acey Deucey at the following Web sites. You can visit other sites if you wish. Use this information to understand the problem and how it might be solved. Keep in mind that these are for general background, your solution should follow the Acey Deucey variation described below. Remember, you are not likely to be able to write a program for a problem if you don't fully understand the problem before you program it.
Use the following game rules for our Acey Deucey variation. These variations from the usual rules are provided to reduce the scope of the program and make it a little easier for you to develop the game using the components you currently know how to use and to complete during the time allowed.
For your program, you must create an Eclipse project that contains Java classes, tsp pages or servlets (your choice), CSS file(s), HTML, and images.
JSPs or Servlets or MVC: You can choose to implement the controller/view using any of the configurations that we have studied so far. You should choose to use whichever you are most comfortable with. You will need at least one set of controller/view components for each of the different views (see Detailed Program Requirements).
Java Classes: Your solution should include at least one Java class that is actually used by your Controller/View components. Two Java classes have been provided along with these instructions. You may import these into your project and use them as is, or you may alter them if you want, or you may write your own from scratch.
CSS file: Your solution should include CSS to style the pages. Your design can be Similar to that shown in my figures but you should put your own design twists on the ld include enough here to demonstrate that you can use CSS for:
Playing Card Images: A set of playing card images are provided along with these instructions. Feel free to use these as part of our program. Remember that they need to be imported into the appropriate location of your Eclipse project in order to work with your program.
1. Your solution should allow a single user to play either until they decide to quit or they lose all of their money.
2. Be sure to thoroughly test your solution. 10% is deducted off the top for any program with errors (syntax, run-time, compile or logic errors).
3. You may use previous notes, your book, and class examples as reference but all code within your submission must be created from your own, individual efforts.
4. All views should provide appropriate messages regarding the outcome of each bet and the final results of the game for all possible outcomes.