Portfolio

XNABlackjack

posted on July 22, 2010

This blackjack game, created using XNA was produced for the Network Programming module of the final year. It allows multiple players on the same network (sorry, no Internet play at the moment) to create or connect to a server. Once connected to a server players are able to chat to each other and challenge up to five other players to a game of (simplified) blackjack.

Game rules are simple, closest score to 21 without going over wins, blackjack beats anything, no five-card-trick etc. (Part of the assignement spec was that the game is secondary to the actual networking implementation). The first player to win 5 rounds wins the game.

The GUI is made with the Neoforce Controls library, a brilliant and free GUI library for XNA that supports both PC and 360 applications.

The networking code doesn’t use XNAs’ built-in networking code, as that was banned (for obvious reasons) but rather the sockets implementation for C#.

Both the Source and Executable are available.

Media