AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Hwo to make a blackjack gui java11/19/2023 ![]() If the user uses the "Split" button, the user will get the second hand cards after holding. If the user clicks on the "Hold" button, the dealer makes his turnĭealer does his turn, winner gets calculated, if the user wins, he gets his bet and winnings, else he loses his bet. ![]() If the user clicks on the "Hit" button, he will get another cardĪnother card gets in the userhand and the user still can hit or hold. The amount entered will be set, and will be doubled and returned if the user wins, aswell as the cards get revealed to the user. If the user enters an amount and presses the "Set" button, the amount will be set and cards get revealed Scene changes to the "blackjacktable", where the user can play blackjack. If the user clicks on the diamond-ace, he will be redirected to the blackjack-game We tested our game on Windows and on Linux, since Marco and Simeon used Windows,Īnd Kimi was using Linux -> Arch btw. (player with the rules, which a dealer has) play against another dealer. Which has some randomness involved (shuffling the stack).īut if we would test to do so, we would try to make a dealer We just tested with Users, because its a game, We didn't test anything with the library JUnit. ![]() So if you are really low on memory you could replace the attribute -Xmx4096m with -Xmx2048m.īut on most machines you don't even need to do this. We were already able to run it with just 2Gb of memory. ![]() Java -Xmx4096m -jar PATH_TO_YOUR_JAR_FILE.jar ![]()
0 Comments
Read More
Leave a Reply. |