Ian Paris-Salb
Poker Dealing Program

Description:
This Program impliments a simple card dealing program for an eight handed table. The user must change the angle of the hand and the speed that it will throw at to attempt to make the card into the circle at the current position. Once a card is thrown the program checks to see if the card was dealt into the circle, then it updates the counters for number of attempts and number that have made it in. The program also contains an autodeal button which deals a card into the center of each circle, however it does not increment the counters for attempts and successes. The user may also change the camera angles and zoom.

The hand in the program is articulated such that when the card is thrown the joints for the thumb as well as the index and middle fingers move in the directions needed to throw the card. The hand then returns back to the position that they began in.

The card flies as if the only force acting on the initial velocity is gravity. However, once the card is detected to have hit the table it begins gliding across the table until it stops. The equation that I used for this is:
F = m*a, where F is the force, m is mass, and a is acceleration. F is then:
F = Fr = Mu*n, where Fr is the frictional force, Mu is the coefficient of friction, and n is the normal force. 'n' is calculated as:
n = m*g, where m is the mass, and g is gravity. substituting back we then have:
a = ( Mu*m*g)/m , so the masses cancel out leaving:
a = Mu*g

User Guide:
When the program begins the position is set to be directly to the dealers left, and then proceeds clockwise around the table. The user simply changes the angle of the hand and the speed of the card values and clicks the animate button. After clicking this the card will animate and the counters will be updated. As soon as the user changes any values on the sliders, the window is redrawn with the card back in the hand and the position redrawn to be the next position. The user may zoom in or rotate the scene using the appropriate sliders. Upon clicking the autodeal button the program animates throwing the card beginning with the first position and ending on the eighth position.

Sample Output:

This clip is of the first two cards being dealt using the autodeal button.

This shot is the of the hand about to deal to the first position.

This screenshot is taken during the animation of the hand dealing to the second position.