Blackjack
I had a few free hours this weekend, and I've been wanting to create a card game using JavaFX, so I challenged myself to see how quickly I could write a simple Blackjack game. It took about 5 hours over two days.
Here is the jar file with the game. Just copy it to your computer and run it.
Note: You will need Java on your PC to run this. |
|
In JavaFX I created a BorderPane for the entire window. The left pane is null. I nested another BorderPane in the Bottom pane with the nested bottom pane null. The Center area is a VBox with text and images nested in two HBoxes. You can see the structure above easily.