Saturday 17 November 2012

GAME DEMONSTRATION

Regrettably I failed to upload this at the stated time.

The process by which the "dealer" estimates the value of the players hand is at follows:

X = the value of a card (ace = 1, all face cards = 10)

A = total number of with value X not in the dealer's hand

B = initial values for A OR int(20/X) (whichever is smallest)

N = number of cards in my hand

C = total number of cards not in dealers hand = (size of remaining deck + N)

Z = probability that I have a card of value X = (N*B)/C

                                                               X = 10
T = (estimated total value of my hand) = Σ(ZX)
                                                               X = 1

I may amend this so that the "dealer" assumes that I have a high value if I have not drawn a card for several turns.

here is the video:


Wednesday 14 November 2012

watch this space:

By the end of today, I shall (all going according to plan) have a video walk-through of a single player blackjack game against the dealer, with one standard (no-joker) deck, and no additional players. Of course, there is still much to be done with regards to a graphical user interface, as the picture box feature can only (to the besticle of my knowledge) hold one picture at a time. Thus I face the dilemma: should the users "hand" be represented by a large number of picture boxes -most of which will not be used-, or is there a more innovative solution possible? if anyone knows (keep in mind I am using visual basic 2008 please use the commenty bit. also here is a cute thing:

Monday 29 October 2012

code analysis!

this should clear some things up.......

Sunday 21 October 2012

dealer algorithm test

hopefully the .avi file I have made can be uploaded to blogspot.
the dealers algorithm for a draw is as follows:
1. generate random number from one to 21
2. add to this number the sum value of the cards in your hand (all face cards are equal to ten)
3. if the resulting number is less than 22 draw a new card.



(sorry about the sound, my voice is awful on microphone)

Wednesday 17 October 2012

Important choice.

I have decided to focus primarily upon the Windows version of the program. If possible I will go on to adapt it for perl, but the visual basic version is the most logical choice for my focus. Not only will it be far easier to use (I have been using VB for the longest) but it is also ideally suited to the creation of a graphical user interface, which most people likley to use the program I intend to create would prefer.

Saturday 6 October 2012

new blog started

very well..... It has begun.