Freitag Software
The Joy of Writing Software
  • Home
    • Links
  • My Software
    • JavaScript Programs >
      • Dots
      • The Code Cracker
      • The Deserted Ship
      • Flying Text
    • Java Programs >
      • Dot Animation
      • Operation Rescue >
        • Mazes for Programmers
      • Battleship!
      • Blackjack
      • Draw Poker
      • State Pattern Demo
      • Falling Blocks
    • Android Programs >
      • The Oracle
      • RPSLS
      • Gemini Falcon: Asteroid Miner
      • Gemini Falcon: All Boxed In >
        • Gemini Falcon >
          • Privacy Policy
          • A Game Oddity
      • Ay Caramba
      • Dots vs Dots
      • Ants vs Ants
    • Twine Stories
  • Random Thoughts
  • Book Reviews
  • Teaching
    • Real-Life Stories
    • Flying Text
  • About
    • Contact

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
Powered by Create your own unique website with customizable templates.