-
Including:
Readme.md
,License
,Code_of_Conduct.md
,Security.md
.
- If you find this project useful, please give it a star! Your support is appreciated and helps keep the project growing. ๐
๐ .github/ - GitHub configuration folder
๐ main-blackjack-game - Has the main.py ( non docker )
๐ Logo/ - Project logos
๐ .gitignore - Git ignored files
๐ CODE_OF_CONDUCT.md - Code of conduct for the project
๐ LICENSE - License for the project
๐ README.md - Project documentation
๐ SECURITY.md - Security policies
๐ blackjack.py - Blackjack game logic for Docker
๐ docker-compose.yml - Docker Compose configuration
๐ dockerfile - Dockerfile for building the image
๐ install.bat - Installation batch script
๐ requirements.txt - Python dependencies
This is a simple Blackjack game written in Python with both GUI and command-line support. Enjoy the thrill of Blackjack with colorful emojis and a user-friendly graphical interface! ๐๐ด
- Hit ๐ - Draw another card and add it to your hand.
- Stand ๐ถ - Keep your current hand and see if you beat the dealer.
- Forfeit ๐ซ - Give up and let the dealer win automatically.
- Command-line Version: Play directly in the terminal using your keyboard.
- GUI Version: Play using buttons with a graphical interface (Tkinter-based).
- ๐จ Colored Text: Uses colorama to bring your game to life with colors!
- ๐ Card Drawing: Random card selection simulating a real Blackjack game.
- ๐ Win Conditions: Play against the dealer and see if you can beat the house.
The goal is to get as close to 21 as possible without going over. If you go over 21, you bust ๐ฅ and lose the game!
Download the EXE of the Application Click Here
Join the Discord - Fnbubbles420 Org Community
- Follow the Instruction to install
Docker Desktop App
if you need help
This project is a command-line Blackjack game built using Python and Docker.
blackjack.py
is for Docker
docker build -t blackjack-game .
docker run -it blackjack-game
โป๏ธ Rebuild the Docker image without cache:
docker build --no-cache -t blackjack-game .
๐ List running containers:
docker ps
๐ Stop a running container:
docker stop <container_id>
๐ View logs from the container:
docker logs <container_id>
๐๏ธ Remove the container:
docker rm <container_id>
๐๏ธ Remove the Docker image:
docker rmi blackjack-game
- These commands will help you manage the Blackjack game using Docker efficiently.
If you prefer a graphical interface, this version comes with a simple Tkinter-based GUI, providing buttons for "Hit," "Stand," and "Forfeit." The game state, including your cards and the dealer's cards, will be displayed in the window.
- This game supports the following Python versions:
- Python 3.11.6 - Download here
- Python 3.11.9 - Download here
- Python 3.12.1 - Download here
-
Ensure you have Python installed (3.11.6 or later recommended).
-
Install the required dependencies by running:
pip install colorama tk
-
Run the game using:
- make sure to
CD
- a. right click on
main.py
file in the main-blackjack folder - b. go to
properties
- c. find
location
- d.
copy
entire location - e.
paste
location you just copied paste it inCMD.exe
- f. press
enter
python main.py
-
Ensure you have Python installed (3.11.6 or later recommended).
-
Install the required dependencies by running:
pip install colorama tk
-
Download or clone this repo.
-
Run the game using:
- make sure to
CD
- a. right click on
main.py
file in the main-blackjack folder - b. go to
properties
- c. find
location
- d.
copy
entire location - e.
paste
location you just copied paste it inCMD.exe
- f. press
enter
python main.py
- If you prefer an automated setup, you can use the provided batch script:
- A
Batch script
is included in the repo with all the necessary files. - No need to create a file manually.
@echo off
:: Batch script to install colorama and tkinter with a loading bar for finalization
echo Installing colorama...
pip install colorama
echo Press Enter to continue to install the other dependencies.
pause
echo Installing tkinter...
pip install tk
echo Press Enter to finalize the install.
pause
:: Finalization with a loading bar
echo Finalizing...
setlocal
set "progressBar="
for /L %%A in (1,1,10) do (
set "progressBar=#%progressBar%"
echo [%progressBar%] %%A0%%
ping -n 2 127.0.0.1 >nul
)
endlocal
echo All packages have been installed!
echo You may now exit the cmd.exe.
pause
-
Double-click
install.bat
to run the script. It will automatically install thecolorama
package with a progress bar for better user experience. -
After installation, run the game using:
python main.py
- This project is proprietary and all rights are reserved by the author. Unauthorized copying, distribution, or modification of this project is strictly prohibited. Unless You have written permission from the Developer or the FNBUBBLES420 ORG.
- Have fun playing Blackjack, and may the cards be ever in your favor! ๐๐ด
- Forked repo from @LeopoldPrime then
Remade it better
.