Thought for the Dazed

I've had to give up that Distance Learning course as I was having trouble seeing the teacher.

Flickr
www.flickr.com
RobMiles' items Go to RobMiles' photostream
Twitter
C# Yellow Book

Search entire site
« Overlapping Display Elements in Silverlight | Main | Creating Windows Phone apps on a Netbook »
Wednesday
Aug042010

Silverlight Blackjack for Windows Phone 7

Silverlight Blackjack for Windows Phone
Well, what would you do?

For no particular reason (perhaps because I’ve got lots of other, more important, things to do) I’ve been working on a version of Blackjack for Windows Phone 7. I’ve come across an interesting philosophical/moral problem.

At the moment my display has room for only five cards. If a player gets a lot of low cards then they can fall off the end of the screen. I can think of two ways to fix this.

  1. Spend some time re-arranging the display so that cards can overlap and I can fit up to 21 cards (the absolute limit given that you are playing with six decks in the shoe) on the screen.
  2. Make the fifth card you get always a king.

Reader Comments (4)

overlap the cards as they are dealt. when you get to the edge of the screen, increase the overlap and show less of the cards.
since you are tracking the score, it won't matter even if you get to 10+ cards in a deal and the overlap gets more and more intrusive on viewing the card.
August 4, 2010 | Unregistered CommenterDave
You could place the cards inside a "view" that can scroll horizontally?
I don't know if WP7 gives you scrolling views for free, but if it does that would be worth a shot, and something (as a user) I would consider clever on my shiny touchscreen device.
August 4, 2010 | Unregistered CommenterCameron Wilby
Could you not make the game only playable in a landscape view?
August 4, 2010 | Unregistered CommenterDavid Waslin
Where did you get your cards?
August 19, 2010 | Unregistered CommenterDave R

PostPost a New Comment

Enter your information below to add a new comment.
Author Email (optional):
Author URL (optional):
Post:
 
All HTML will be escaped. Hyperlinks will be created for URLs automatically.