BusinessRx Community

Dedicated to the advancement of software, technology and the people who devote their lives to it.

Welcome to BusinessRx Community Sign in | Join | Help
in Search

BusinessRx Reading List

These blog entries are written by industry experts and leaders. We consider this content to be a good read for any software developer or web technologist.

An ASP.NET 2.0 BlackJack Game

Every now and then I like to give myself a fun little programming challenge. I'll randomly pick some enjoyable task, like programming a game or blogging engine or what not, and impose a time limit, anywhere from an hour to an afternoon. Such little challenges keep the fun in programming and help me mentally recharge. After spending a week of programming boring data entry forms, such toy projects help remind me why I enjoy computer science and programming!

Anyway, a few months ago I decided to see if I couldn't create a simple online Blackjack game that would allow a single person to come to the site, enter their name and starting bank role, and play Blackjack against a dealer. If you're interested in checking out this little toy application, the result of an afternoon of enjoyable coding, you can download the complete source code from here. There's also a light 4Guys article that provides some light details on the code, Creating a Quick and Dirty Online Blackjack Game.

If you decide to download and poke through this application, please do bear in mind that it was purposefully rushed, as I was racing against the clock to complete the project. Consequently, the code may be rather tattered in places, there are likely many spots where it should be refactored, and there are next to no comments. Let's just say that it's not a showcase of 'best practices', unless you're MacGyver and need to program a blackjack game in under four hours or a nuclear missle is going to explode.

See the Blackjack Wikipedia entry for rules and basic strategy.

Published Friday, December 22, 2006 9:57 AM by Scott on Writing

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

No Comments

Leave a Comment

(required) 
(optional)
(required) 
Submit
Powered by Community Server, by Telligent Systems
'