To establish a basic familiarity with the Java API (Swing and AWT packages) for creating graphical user interface (GUI) and handling events related to GUI. Students should apply the appropriate Java programming fundamentals, object-oriented, GUI and event handling concepts that they have learnt to solve the given problem.
On completion of this assignment a student should be able to write a GUI application that:
This assignment is based on individual effort. You are required to enhance the one player Java game application "Blackjack" done in Assignment 1 with Graphical User Interface (GUI).
Besides providing the required functionalities, your program should incorporate appropriate error handling. Comments are also to be inserted to improve program clarity. Before you start coding your program, you are strongly advised to carry out proper problem analysis and program design. You are required to use JDK 1.5 developer version or later.
There are two modules in this program; Administration and Game Play module
Admin Login This dialogue box allows the admin to login to the system.
Admin Main menu Upon successful login, the administrator will be presented with the main menu. The administrator can then select the required task from the menu by clicking on the button.
You are to design the appropriate window dialogue box and screen based on the requirement for each task.
Login The game starts by the player logging into the game.
Place Bet Upon logging in, the player will enter the game by placing the bet.
Play Game The game starts after the player click on “Play Now!”. First, the dealer will shuffles the deck.
Then the dealer deals two cards from the top of the deck to the player and itself.
The player needs to decide “Hit” or “Stand”. Assume the player selects “Hit”.
The player needs to decide “Hit” or “Stand”. Assume the player selects “Hit”.
The player needs to decide “Hit” or “Stand”. Assume the player selects “Stand”.
Next the dealer will continue with the game. First the dealer hits.
Then the dealer stands.
Finally, the dealer shows the hidden card.
And the game continues until the player exits the game.
Your program should be able to handle error situations like where a player enter wrong password or has insufficient chips. You should look out for other possible exceptions and handle them too.