Blackjack DS

by Scott McClymont

Latest Version: 0.7


Blackjack is a simple card game played across the world that's been around for hundreds of years. Nowadays the game is popular in casinos and played for fun with friends. A commercial version of the game already exists on the DS as part of 42 All Time Classics aka Clubhouse Games, although this lacks a lot of the features played in real blackjack. Also, there are many variations in the rules depending on what country you're in and even between different casinos. These generally build on the basis premise of scoring as close to 21 as possible and alter some of the other common rules such as doubling and splitting, or introduce new rules altogether.

As I was a fan of the game and was looking for a project to work on whilst learning to program for the DS, this seemed ideal for a few reasons:

This new version will appeal more to the more dedicated blackjack players who wish to practice the game using rules that are common in their part of the world or local casino. This should involve giving the user as much information as possible about the state of the game at any given time, including win/loss stats, success of certain decisions etc. Graphically the game should be basic to average, with the functionality and gameplay features being more important to the project. Ultimately though, some basic graphics should be in place to make the game look attractive to prospective users before the advanced features will be implemented.

So to summarise, the main aims of the project are:

How To Run

Via Emulator

There are many Nintendo DS emulators out there, but they all vary drastically in quality and the features of the Nintendo DS hardware that they can emulate. Currently there's no single emulator that will do everything and perfectly run every program. So for best results with my programs I recommend running them on actual DS hardware. However this is obviously no good for people without a DS. The emulator I use to test is DeSmuME, of which there are several "branches" of different versions and people working on them, but you can find the exact version I use here:

DeSmuME Sourceforge

As of writing, version 0.8 is the latest version for both Windows and Mac.

You are free to try other emulators, however I've not tested my programs with them and they're not guaranteed to work as they should.

Via Nintendo DS

For best results I recommend running my programs on an actual Nintendo DS. For this you'll need a DS (either regular or DS Lite) and a way to get programs onto it via a storage device. I use the R4DS and a MicroSD card, but there are many other different devices that basically accomplish the same thing. The R4DS is probably the easiest and most straightforward solution as it's as simple as putting the program on the MicroSD card, putting that into the R4 card and then putting that into the top slot of your Nintendo DS. I bought my R4 from Games4Play where they sell an R4 (now known as a DSTT) and 1Gb MicroSD card for £19.99.

Obviously there's many things you can do besides play my games on the DS, so here's a few pages with some information:

Wikipedia Article

This is the most informative video I could find, but please don't download commercial games like the video shows, as this is stealing and is illegal! There are hundreds of legal, "homebrew" projects created by individual programmers like myself to enjoy, games such as Need For Speed should be bought through a retailer so the games developers can make a living. The method for putting Blackjack DS onto the R4 is virtually identical as shown.




Title screen with altered logo and new "Help" section.

The help section - the grey is semi-transparant on DS hardware so the background shows behind.

Options screen showing the 2 new options. Again, the grey is semi-transparant on a real DS.

Main game screen with the new card graphics, which are now in colour and have the 4 suits (clubs, diamonds, hearts, spades).

A player's winning hand with the dealer busting.

Showing the new option to split cards of value 10, which could be tens, jacks, queens or kings.

One of the new stats screens showing details of initial card dealt to the dealer.


Planned For Next Release



Title screen now featuring "Options".

The grey is transparant on DS hardware. Shows 4 options the user can change by tapping to change each.

Some will have standard "Yes" and "No" choices, whilst others give the user multiple choices to cycle through.

Stats section now has multiple pages and new stats are gathered such as the frequency of betting at each amount.

In-game screen shows the player can double the 16 due to the option previously set by the user.


Planned For Next Release



The new title screen graphic.




The main menu.

Initial deal - options are to hit or stand.

Player has stuck on 20 and dealer has bust.

Player has a "soft" 19.

Player has two 8's with the option to split them.

Player has already split, and has the option to double on the first hand.

The first hand was doubled (making bets of 20 & 10). Results of both hands are shown.

The stats screen - the background is transparant on DS hardware.

The initial betting screen before the hands are dealt.

Player has Blackjack - dealer takes a second card after the ace to confirm the game is not a push.




The main menu.

Background now split over both screens.

White lines are semi-transparant on actual DS.

Player can double here as they have 11.




The main menu.

The betting screen.

Player can double as they have 9.

Showing a split hand, the green text indicating which is currently being played.