Monday 28 July 2014

A BlackJack game simulator with Python

Hi everyone! Here is another one of the first projects I have developed. The project is quite simple as the name tells: A blackJack game simulator.

The modules used to build this game are the following:
-The Random module, mainly the sample function to sample from a deck of 52 cards.
-EasyGui. Again, another one such as tkinter would have probably been better however I did not know even the name of tkinter at the time I built this.

Some notes on the game:
-Double down is allowed
-The scores are the same as most real BlackJack games
-You can set your initial amount available and the maximum bet (you could even set a negative bet I guess it should work even in that case Occhiolino ah ah).
-There still no insurance available and splitting is not allowed (perhaps I will implement this when I’ll improve the GUI)

IMPORTANT NOTE: Please, before running the script with Python make sure to set the path to the folder where the images are located so that they can appear on the EasyGui window.

You can download the source code here.

Here are some screenshots

im1

im2

Hope you enjoy.

13 comments:

  1. This comment has been removed by the author.

    ReplyDelete
  2. MAU GANDAKAN DUIT HANYA DENGAN 10rb RUPIAH??

    DISINILAH TEMPATNYA DI P`0`K`E`R`V`1`T`A

    KEPUASAN MEMBER ADALAH PRIORITAS KAMI

    Dengan pelayanan Customer Service professional kami ONLINE 24 JAM proses Depo & WD yang cepat.

    Agen Poker Online Uang Asli Terpercaya di Indonesia

    8 PERMAINAN DALAM 1 USER ID :
    *ADU Q
    *BANDAR POKER
    *BANDAR Q
    *CAPSA SUSUN
    *DOMINO 99
    *POKER ONLINE
    *SAKONG
    *BANDAR 66 (NEW)

    ReplyDelete
  3. Enjoyed reading the article above, really explains everything in detail, the article is very interesting and effective. Thank you and good luck for the upcoming articles learn python training in Bangalore

    ReplyDelete
  4. Just what I needed!! Thank you so much sir! 토토사이트

    ReplyDelete
  5. I really loved reading your blog. It was very well authored and easy to undertand. Unlike additional blogs I have read which are really not tht good. I also found your posts very interesting. In fact after reading. I had to go show it to my friend and he ejoyed it as well! mgm바카라

    ReplyDelete
  6. I love to stat leaving a huge thanks to the author and the admin for publishing such a great post. Blackjack game simulator you detailed is really helpful for the game fans and players. 카지노사이트 /// 메이저놀이터

    ReplyDelete
  7. I felt exceptionally glad while perusing this site. This was truly exceptionally enlightening site for me. I truly preferred it. This was truly a sincere post. Much obliged!.  서포터주소

    ReplyDelete
  8. Your work here on this blog has been top notch from day 1. You've been continously providing amazing articles for us all to read and I just hope that you keep it going on in the future as well. Cheers! 영앤리치 먹튀

    ReplyDelete
  9. I need you to thank for your season of this awesome read!!! I certainly appreciate each and every piece of it and I have you bookmarked to look at new stuff of your blog an absolute necessity read blog 윈윈 먹튀

    ReplyDelete
  10. This is extraordinarily informative substance and formed well for a change. It's lovely to see that a couple of people still perceive how to make a quality post! Judi Bola Online

    ReplyDelete
  11. Si vous recherchez le casino en ligne bonus, visitez le site Web de casinoenlignefrance. Ils ont été créés en tant que plate-forme indépendante d'évaluation des casinos en ligne. Ils croient que la bonne information au bon moment peut faire toute la différence.

    ReplyDelete
  12. Thanks for Sharing such an amazing post. Keep working... Your Site is very nice,

    ReplyDelete