Freitag Software
The Joy of Writing Software has moved to software.dafreitag.com !
  • Home

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.
​
blackjack_ver_1_1.jar
File Size: 71 kb
File Type: jar
Download File

Picture
Picture
Picture
Picture
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. 
Picture
This website documents my continuing education in software development.
I hope it is useful and entertaining for you to read. 
An old programmer learning new tricks... 
(c) 2017 David A. Freitag, all rights reserved.