Inspiration (Like to support my game :D)

Inspired after being obsessed with the webtoon comic "The Mafia Nanny" especially the underrated duo Valentina and Nico. Plus, I love playing blackjack and some of the recent episodes showed that Valentina dealt blackjack. So, I decided to combine both <3. (PS: Valentina has a different last name since this is my AU!)

What it does

Basically, you play blackjack and your goal is to attract a lot of money. There is a leaderboard to see your rank. The more money you attract, the better! Try to find some mini easter eggs! - There is a hidden button in the game :D

How to run it (Trust! It takes 2 minutes MAX to run it!)?

IMPORTANT STEP FOR THOSE WHO DON'T HAVE JAVAJDK: Download the javajdk from this link: https://www.oracle.com/java/technologies/downloads/ according to your OS type. After that, run the exe file and then you can continue the steps below.

For Windows

Step 1: Click this link: https://github.com/Walker21122008/BlackJack-Java-Game and download the github repo by clicking the green “Code” button → Download ZIP . After that, go to the location where you downloaded the files and unzip them.

Step 2: Open up Windows Powershell and enter the path of the location where you downloaded the folder. For instance, I would type the following: cd C:\Users\hasin\Downloads\BlackJack-Java-Game-main\BlackJack-Java-Game-main.

Step 3: Once you go into the folder in the terminal, type (javac -cp lib/* HasiniCPT.java) in the terminal and enter. After that, type (java -cp lib/* HasiniCPT.java). Make sure you have javajdk installed pookies! If it is, the game should pop up to the screen!

Step 4: Enjoy the game! If the game still does not work, please let me know in the comments below!

For Mac OS

Step 1: Go to the GitHub page: Walker21122008/BlackJack-Java-Game. Click the green “Code” button. Select “Download ZIP”. Locate the downloaded .zip file and unzip it

Step 2: Open Terminal. Navigate to the folder where you unzipped the game. For example in my case: cd ~/Downloads/BlackJack-Java-Game-main/BlackJack-Java-Game-main

Step 3: In the terminal, type the following to compile: javac -cp lib/* HasiniCPT.java. Then run the game by typing the following: java -cp lib/* HasiniCPT. Make sure you have javajdk installed pookies! If it is, the game should pop up to the screen!

Step 4: Enjoy the game! If the game still does not work, please let me know in the comments below!

How I built it

  • Code: Pure Java
  • Images of characters: Hand-drawn on Ibis Paint (tons of fanarts I made) and edited on Canva
  • Image of me in the help section - Google's profile AI generator since I didn't have enough time and didn't want to put a real image of me for security concerns
  • Image of cards: Got them from an open source
  • Pixel storyboard - handmade pixel art and pixel character designer

Challenges I ran into

  • Figuring out the game logic. For instance: *Shuffling the deck error *Figuring out how to make the money constant within the whole game without resetting *Making the clickable buttons *Calculating dealer and player count and logic for different kinds of wins like blackjack, pass, charlie etc, losses and ties

What I learned

  • At first, my code was a huge blob of mess, making it hard to go through certain game exits. So, through that, I learnt the need to break down my code into different methods, for instance, storyboard method, game logic method, etc and utilise them in the main program.

What's next for Valentina Moretti's Blackjack

  • Figuring out how to convert it to being web-based using JavaScript, HTML and CSS instead of having to run it in the IDE
  • Also trying to add a song I sang for the game being a soprano vocalist but was unable to add it since, it broke my game...

Built With

  • canva
  • ibispaintx
  • java
  • pixel
Share this project:

Updates

Submission history