Davs Rants and Random Thoughts

August 15, 2006

More fun with the YUI

Filed under: yui, ajax, javascript, code, Yahoo! — Dav Glass @ 8:49 am

I got this crazy idea over the weekend & thought it would be kewl to write a game with the YUI libraries.

First I started by trying to write a Solitaire game, but then I decided that it would be better to start smaller 8-)

So I threw together this simple version of BlackJack.

The important part of this set of code is not the code logic, but the DeckOfCards JS Object that I create & use.

The logic is “OK”, I didn’t put in the rule for an Ace being worth either 1 point or 11 points.

Next I want to try Poker 8-)

Add to:
| Digg it | Slashdot | Y! MyWeb

Leave a Reply

© 2008 Dav Glass - All content is mine, except comments. Comments are the property of the poster. I speak for no person or company.
Can you tell me what this says? 01000100 01100001 01110110 01101001 01100100 00100000 01000111 01101100 01100001 01110011 01110011