Please Make Blackjack 21 Card Game Java Make Two Classes Blackjackmain Blackjackmethods Bl Q43800510
Please make the blackjack 21 card game in JAVA:
Make two classes: BlackJackMain and BlackJackMethods.
In BlackJackMain class, write a program which will ask the user ifthey have ever played this game before. If the user says no, askthem to create a username and password and filewrite it.
-The password must be at least 6 characters long
-must contain at least one capital letter
-must contain at least one lower case letter
-and must contain at least 1 number
If user says yes, ask them for their username and password.FileRead it to check if the username or password they have enteredmatches with what is in the file. If it matches, let them play thegame. If not, then give them 3 extra tries to enter the password.If they still fail to login, end the program by saying “You havefailed to login”.
Once they are allowed in, start the game off by giving the user$100 and asking them how much they want to bet.
for instance, if the user says 50. Then start the game by givingplayer 1 (the user) receive two cards and player 2 (the dealer andplayed by the computer) two cards also. Give the player the optionto either hit or stand. The first player may take one more card,then one more, trying to get as close to 21 total as possible. Whenthe first player stops taking cards, the second player takes cardsto get closer to 21. If either player goes over 21, they loseimmediately. If both players stay under 21, the player with thehigher total wins. At the beginning, if a player has 21 in twocards, that is “Black Jack” and they win immediately.
The totals are added-up as follows:
Cards 2-10 count their face value (rank).
Face cards (king, queen, jack) count 10.
An ace counts either 11 or 1, depending on which is better for theplayer.
Examples:
10 , 8 –>18
Jack, Queen–> 20
Ace , 6 –>either 7 or 17
Queen , Ace–> Black-Jack (win)
Queen , 5 , 8–> 23 (busted = lose)
In BlackJackMethods have all the methods necessary to run the game.You can add some things to the BlackJackMain class as well if needto.
Expert Answer
Answer to Please make the blackjack 21 card game in JAVA: Make two classes: BlackJackMain and BlackJackMethods. In BlackJackMain c…
OR