Skip to main content


This is a GUI version of the game blackjack, written in Python and Pygame. It is easy to play, and can be very fast-paced.

Allan Lavell
A version of the game blackjack. Has all the basic blackjack functions except for split. The code is very well documented, and a design doc is included. This program won the High School programming competition at Dalhousie university!



Home Page


Blackjack 1.0 — 20 Feb, 2008 account Comments

  • John L 2018-07-09 16:48

    I can't get this to run. I get the following error: C:\Users\john\Desktop\blackjack\blackjack>python File "", line 42 except pygame.error, message: ^ SyntaxError: invalid syntax
  • John L 2018-07-09 16:58

    If anyone else sees this, this code is for Python 2. You need to change to except pygame.error as message: , update print statements to Python 3, and change system exit to raise SystemExit(message)