
11-07-2005, 07:13 PM
|
 |
Sinecure Expert
Super Moderator * Guru *
|
|
Join Date: Jun 2003
Location: Upstate New York, usa
Posts: 7,714
|
|
You could probably calculate if from the index.
The Mod function will give you a remainder, so assuming your suits follow one another and run Ace to King in each group then
Code:
PointValue = Index Mod 13 + 1 'Should return 1 for Ace, 2 for 2, 3 for 3, etc.
If PointValue > 10 then PointValue = 10 'set 11, 12, 13 (J,Q,K) back to 10
Then you just need a way to decide if 1 (Ace) should be 11.
|
__________________
There Is An Island Of Opportunity In The Middle of Every Difficulty.
Miss That, Though, And You're Pretty Much Doomed.
|