I need a GUI Blackjack program written in Java which MUST use the MVC framework. The rules and a sample Java MVC project is attached.
In addition, there are three additional requirements.
1. The project must include 2 Views (ability to swap views would be great)
2. The GUI must be responsive (when window size changes the contents of the window scales appropriately).
3. The code must be fully commented.
As a courtesy, I've also attached a Java Blackjack program that IS NOT in MVC if it will help in some way. Just to reiterate, the solution I'm looking for MUST be in MVC.Blackjack rules The game is played as follows: Dealer starts by dealing 1 card, face-up, to each player and the dealer. A second card is then dealt to everyone: o Face-up to each player. If the player has "Blackjack" (an Ace and a Face card or a 10) that player wins their hand. o Face-down to the dealer The dealer checks their second card. If the result is blackjack (21) then they turn the 2nd card over and they win. All players who don't have blackjack themselves lose. The hand is over. Starting with the first player to the dealer's left each player plays out their hand. The player can either: o Take a card ("hit me") o Stand pat and allow control to move to the next player. o Player can continue to take cards until they either exceed 21 ("bust") or decide to stand pat. o If at any point the players hand exceeds 21 they lose and control goes to the next player. Once all players have played: o If all players have busted then the hand is over and the dealer wins. o If at least one player has a live hand then the dealer plays: Dealer turns over their second card. If the dealer is showing less than 17, the dealer takes a card. If the dealer busts then all players still with live hands win. If the dealer is showing an Ace and counting the Ace as 11 is showing 18+ they stand pat. If the dealer is showing an Ace and counting the Ace as 11 is showing 17 or less they have to hit. If the dealer is showing 17 or more the dealer stands pat. Any player whose hand exceeds the dealer's wins. Card values are as follow: o Number cards are counted at their face value. o Face cards (King, Queen, Jack) count as 10 o Aces count as 1 or 11, either as the player's choice or according to the rules outlined for the dealer. ...