11/25/2023 0 Comments Blackjack game java netbeans![]() You might want to read that if you want to avoid feeling that pain over and over again.Ģ. We have a wiki page that explains why Main Is A Pain. You put everything in your main() method. ("Do you want to play again? (y/n):") Ī few things that led you to the place where you find yourself now: painted into a corner and wondering how the heck you're going to get out of it.ġ. ("First Cards: " + card1 + ", " + card2) display players first two cards & card total dealers two card total and display only one dealer card players first two random cards and card total Begin dealing the players first two cards Scanner keyboard = new Scanner(System.in) Int nextCard, card1, card2, dCard1, dCard2 ![]() String anotherCard, playAgain = "y", ctn = null I type in "y" to play again and it will say I won - just by typing in y to play again! Its frustrating and if anyone could point me in the right direction it would be greatly appreciated. ![]() ![]() I have it mostly coded out yet, for some reason, when I prompt the system to ask if you want to play again via (y/n). Just for number values 1-10 between the dealer and the player. Thank you for reading.įeel free to leave a comment or some of your 2 cents.I am trying to code a simple blackjack game with no suits or anything. Until then, I still have to work on my programming skills. If so, I hope that we can add this one extra feature because it is quite simple. But thankfully this is a group assignment, I'm pretty sure some of my teammates have already understood it well. I need to master it first before even start to worry about it. The concept of File Input and Output is also what I am currently struggling to cope with. (Logging save the player's decision and result in a text file.) There are also some extra features that we can add to the game to get bonus marks stated in the assignment paper. (2 ♠, King ♦) *This is not in the requirements.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |