Skip to content

Python desktop card game | Team Project on "Software Engineering" University Course

Notifications You must be signed in to change notification settings

janek1842/Blackjack

Repository files navigation

Installation and run 📁

In order to clone the repository please type in your cmd:

git clone https://github.com/janek1842/Blackjack.git

If some extensions are missing please type:

pip install -r requirements.txt

To run the game please type:

python menu.py

Super admin credentials:

Login: adminadmin
Password: adminadmin

Media sources

Avatars and playing cards were taken from:

Project description ♥️ ♣️ ♦️ ♠️

This project is about a popular card game blackjack- in polish oczko. It was made with Python3 with the use of Qt which is tool for designing and building graphical user interfaces (GUIs) with Qt Widgets. There is also not too big database based on SQLite.

What are the rules ❔

The main goal for the player is to reach 21 points (blackjack) or to get as close as possible to this value but not to go beyond that! To do this, player is taking cards from the decks located in the middle of the table. Every card has its own value which is summed up for every user. Player has also possibility to pass the game to stop it.

To add a bit more excitement, the game is being played for money. At the beginning players are betting for how much they want to play and this sum is added or taken from their overall money at the end (depending on their result).

How to play ❔

To begin with, please run the game. In the left panel you might see five places where you can login or create a new account to play this game. If you login properly, you are allowed to change your account features like avatar, description or password. After that, you will get similar view.

mainPanel

If you want to adjust you profile features please click MANAGE.

ManageView

This app has the possibility to see the ranking (ordered by money) and also more detailed statistics of every user. To view this, please click RANKING/STATISTICS button.

After getting to know with all these features you can click PLAY button to specify parameters of the game. Here you can choose maximum 5 and minimum 2 players from currently logged users and Artificial Intelligence bots represented by your computer with specified level of advancement (easy, medium, hard). Moreover, you can set layout of your cards from two possible options and number of decks (in order to harden guessing remaining cards). There is also option to change the time interval between players moves.

optionpanel

If you are ready, you can click START GAME to begin adventure with blackjack. 🚀

Now, you are allowed to enter your BET - the amount of money based on which, your final result will be calculated. After that, the game starts and you decide whether to HIT (take next card) or STAND (pass). Observe your score and frame color to control your status (WAIT/LOST/WIN/TURN). After each round, you can REPLAY your game to enjoy it once more!

animated

Money settlement in details 💰

Each player has $500 available at the beginning of the game. He can bet the whole amount or less. AI(easy, medium, hard) bet $500 by default. At the end of the game, if a player has lost, we deduct what he bet from his $500. If he won and had 21 points then he receives 2.5 × the amount bet (500 - the amount bet). If he won and did not have 21 points, he receives 2 × the amount bet (500-amount bet).

Compatibility 💻

This game has been tested positively on Windows 10 and Linux Arch OS.

About

Python desktop card game | Team Project on "Software Engineering" University Course

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages