Microsoft Developer Network > Forums Home > Archived Forums Forums > XNA Game Studio Express > Simple BlackJack game in XNA (zipped up project files)
Ask a questionAsk a question
 

General DiscussionSimple BlackJack game in XNA (zipped up project files)

  • Wednesday, November 22, 2006 5:00 PMWQP Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hey all, just been trying to learn GSE, and I made a VERY basic BlackJack game, which hopefully may help someone else get started.  I tried to comment the code, and I know there's a LOT of room for improvement.  Input on how to make some of my classes more generic (maybe even make the components) would be appreciated.

    Such as:

    Card class (uses tiles in a texture to build the card, so each face value and suite symbol is listed in the texture)
    Deck class (actually a class to hold a deck and several hands or piles of cards)
    BMPFont class (a very rough and dirty, but functional tile based rendering engine)


    You can get it here: http://www.preik.net/xna/cardgame.html

All Replies

  • Wednesday, November 22, 2006 5:45 PMMarlun Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    Hello Wqp!

    Thanks for taking time to upload it and sharing it with us, I'll take a look later when I've got some more time :)

    -Marlun

  • Wednesday, November 22, 2006 6:24 PMJim PerryMVPUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Cool. I've been hoping to see some card games. I thought about starting one myself, but I've too much going on as is.  A card game starter kit would be cool.
  • Wednesday, November 22, 2006 11:54 PMKurt Jaegers Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    Jason and I started working on a card game, but we wanted to do multiple players, and since the status of multiple players on the Xbox is currently unknown we haven't persued it very far.

     

  • Thursday, November 23, 2006 1:14 AMJim PerryMVPUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Why not just do the multiple players for the PC version and AI for the 360?
  • Thursday, November 23, 2006 1:15 AMJim PerryMVPUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

     WQP wrote:
    Hey all, just been trying to learn GSE, and I made a VERY basic BlackJack game, which hopefully may help someone else get started.  I tried to comment the code, and I know there's a LOT of room for improvement.  Input on how to make some of my classes more generic (maybe even make the components) would be appreciated.

    Such as:

    Card class (uses tiles in a texture to build the card, so each face value and suite symbol is listed in the texture)
    Deck class (actually a class to hold a deck and several hands or piles of cards)
    BMPFont class (a very rough and dirty, but functional tile based rendering engine)


    You can get it here: http://www.preik.net/xna/cardgame.html

    Pretty good. I believe I ran into a problem where I stood and the dealer didn't hit. It locked up. I'll have to try it again though.