|
If the
hand logging
option is selected (default is off), log data is written to the CFSPoker.LOG
file in the same directory where the
CFSPoker INI file,
or user specified INI file, exists.
The CFSPoker.LOG file contains ASCII data. You can edit or delete the
file so long as the game is not active.
Each line of the file represents one hand. Each line consists of three
groups of five numeric fields. These fields are preceded by a + or - sign.
The 15 fields are optionally followed by the name of the
rank
of the hand if the hand was a winner. Non-paying hand lines contain just the
15 fields. The following is an example of a line in the CFSPoker.LOG file
for a hand which is a Full House:
+43 +38 +46 +20 +48 +01 +40 +35 +12 +14 +01 +40 +46 +20 +14 Full House
*-----------------* *-----------------* *-----------------* *--------*
Dealt hand Draw cards Final hand Winning rank
The absolute value of each numeric field is an index into a string of card
values and suits. A leading plus sign indicates the card was not a wild card
and a leading minus sign is used to represent a wild card for the game that
was selected at the time the hand was played.
The following REXX code fragment can be used to convert a log file
value to its respective face and suit value.
face_list = COPIES( '23456789TJQKA', 4 ) || '0' /* Joker */
suit_list = COPIES( 'c', 13 ) ||,
COPIES( 'd', 13 ) ||,
COPIES( 'h', 13 ) ||,
COPIES( 's', 13 ) ||,
'0' /* Joker */
card_index = ABS( log_file_value )
face = SUBSTR( face_list, card_index, 1 )
suit = SUBSTR( suit_list, card_index, 1 )
- Notes:
-
The character T is used as a single character designation of a 10
card in the face list.
The
Joker
is represented by the 53rd character in each of the above strings.
|