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.
Blackjack is a popular casino game where players are playing
against the House, which has a pre-defined set of rules. See the Blackjack
Wikipedia entry for rules and basic strategy.
I was able to complete the task during an afternoon and thought I'd share it here for a more fun article during this holiday
season. The application is created as an ASP.NET 2.0 web application and the complete code can be downloaded from the
end of this article. Do keep in mind it was written in about three hours, so there may be some rough edges, but it does allow
you to "create" multiple players, allows for doubling down, and so on. Read on to learn more about the code and technology used
to create this game.
Read More >