Underwater Saloon (LibGDX)
A downloadable game for Windows and Android
Underwater Saloon
Introduction:
This is a two in one cards game.
One is a player simplified Blackjack Game with two IA's and an octopus Croupier.
The second is a Poker Game with three IA's with different personality.
Key Features:
BlackJack:
In the main menu some random sea creatures can be seen.
After pressing Blackjack the Game Screen shows and the player is on the left of the table. The Croupier on top and the IA's on the right and bottom of the table.
The cards are hided from the user (and for the IA's when making decisions) except for one Croupier card.
The IA's have a configurable behaviour being more or less aggresive with their bets and their trust in their game.
The bet system is really straightforward, you can enter your bet amount after have your two cards. Then you can take or pass until you belive you will win to the Croupier. The Croupier strategy is to take cards until reaches 19, then it will stop.
After the cards are shown the sum of the cards is displayed on the table and the prizes are given to the winning players (the winners get the double they had bet).
Poker:
This tries to imitate Texas Hold'em Poker rules.
The game starts with 1000 coins each. The first player gets the big blind coin and the seccond the small blind coin and are forced to place a minimal bet. Then the players get two cards each and then they make an initial bet round following Poker rules.
Call/Fold buttons are enabled for the player and also there is a text field to enter bet amounts.
Each IA has its own personality (IA-1 more calm to IA-3 being more risky). Riskier IA's trend to raise bets more. In the decisions made by IA's they take into account the games and cards they have and also there is a random factor. When low in coins they might all-in or fold as well.
After the hand is finished, the players show their cards, the games are ordered from top (winner) to the bottom and the pot is given to the winner (multiple All-in pools haven't been implemented yet). In case two players got the same games the Poker rules apply to decide who won (for example if the winning players have a pair, the highest pair wins, etc).
If the player loses then it has to exit to restart its own coins, or can keep watching the IA's. The player wins if take all the coins of the IA's. Also the coins are saved in .dat file using Serializable inteface for giving the game a bit of replayability. (High score to be implemented)
About Framework:
This game was created and coded by myself using Java 8 and LibGDX (v1.12.1) with Android Studio (v2024.1.2) IDE.
About Software:
I have developed first the logic of the BlackJack game using Java and printing out to console the cards with ASCII format. Then I created the Poker game using Java and also printing out the cards to the console.
I after added LibGDX to have a nice UI with the cards being shown and also the players (sea creatures). To add the UI I used MVC Design Pattern. I c reated a controller that interacts between the View and the Logic that was already created. (The logic was created in Spanish. Big TODO is to translate all these classes to English.)
Classes Overview:
I used polimorfism and created reusable code that was shared between the two card games. Also I followed SOLID principles as much as I could.
For the future:
- Let the table being configurable between IA's and/or human players (logic already implemented).
- Add different characters with unique traits or personallity.
- Unblock different skins for the player and have some tournaments with leaderboards
- Add more complex Blackjack Rules like Splitting Pairs, Doubling Down, Insurance etc
How to play:
In PC just Click with the Mouse on the buttons and type the bet amount using a Keyboard.
Have fun!
Download
Install instructions
Just download and double click UnderwaterSaloon.exe file!
Leave a comment
Log in with itch.io to leave a comment.