ÿþ/ / 
 / /     F e r a l   C o w   P o k e r   H a n d   H i s t o r y   C o n v e r t e r 
 / / 
 / /     b y   v b n a u t i l u s   &   q y a y q i 
 / / 
 / /     C o p y r i g h t   2 0 1 0 .     A l l   r i g h t s   r e s e r v e d .   
 / /     Y o u   a r e   n o t   p e r m i t t e d   t o   d i s t r i b u t e ,   c o p y ,   o r   o t h e r w i s e   u s e   t h i s   c o d e   w i t h o u t 
 / /     t h e   e x p r e s s e d   p e r m i s s i o n   o f   i t s   a u t h o r s .     
 / / 
 v a r   v e r s i o n   =   " 1 . 2 7 " ; 
 
 v a r   d e b u g   =   0 ; 
 
 v a r   P S T A R S   =   0 ; 
 v a r   F T P   =   1 ; 
 v a r   C E R E U S   =   2 ; 
 v a r   H E M   =   3 ; 
 v a r   R P M   =   4 ; 
 v a r   T I T A N   =   5 ; 
 
 f u n c t i o n   f c p _ c o n v e r t _ h h ( m _ u n f o r m a t t e d ,   m _ o u t p u t T y p e , m _ s h o w N a m e s , m _ s h o w R e s u l t s , m _ c a r d T y p e , m _ d e b u g O p t i o n )   { 
 
 	 v a r   s e p a r a t e _ h a n d s   =   n e w   A r r a y ( ) ; 
 	 v a r   m u l t i p l e h a n d s   =   n e w   A r r a y ( ) ; 
 	 v a r   m y R e g E x p   =   n e w   R e g E x p ( " \ \ n { 3 , } " ,   " i g " ) ; 
 	 u n f o r m a t t e d _ t e m p   =   m _ u n f o r m a t t e d . r e p l a c e ( m y R e g E x p ,   " \ n \ n " ) ; 
 	 
 	 s e p a r a t e _ h a n d s   =   u n f o r m a t t e d _ t e m p . s p l i t ( " \ n \ n " ) ; 
 	 u n f o r m a t t e d _ t e m p   =   " " ; 
 	 f o r   ( m a c r o _ i   =   0 ;   m a c r o _ i   <   s e p a r a t e _ h a n d s . l e n g t h ;   m a c r o _ i + + )   { 
 	 	 m u l t i p l e h a n d s [ m a c r o _ i ]   =   f c p _ c o n v e r t _ h h _ s u b ( s e p a r a t e _ h a n d s [ m a c r o _ i ] , m _ o u t p u t T y p e , m _ s h o w N a m e s , m _ s h o w R e s u l t s , m _ c a r d T y p e , m _ d e b u g O p t i o n ) ; 
 	 } 
 	 r e t u r n   m u l t i p l e h a n d s ; 
 } 
 
 v a r   r e B l i n d s   =   n e w   A r r a y ( ) ; 
 r e B l i n d s [ P S T A R S ]   =   / [ \ $ | \ ( ] ? ( [ \ d | , | \ . ] + ) \ / [ \ $ ] ? ( [ \ d | , | \ . ] + ) [ \ ) ] ? / ; 
 r e B l i n d s [ F T P ]   =   / [ \ $ ] ? ( [ \ d | , | \ . ] + ) \ / [ \ $ ] ? ( [ \ d | , | \ . ] + ) / ; 
 r e B l i n d s [ C E R E U S ]   =   / [ \ $ ] ? ( [ \ d | , | \ . ] + ) \ / [ \ $ ] ? ( [ \ d | , | \ . ] + ) / ; 
 r e B l i n d s [ H E M ]   =   / [ \ $ ] ? ( [ \ d | , | \ . ] + ) \ / [ \ $ ] ? ( [ \ d | , | \ . ] + ) / ; 
 r e B l i n d s [ R P M ]   =   / [ \ $ ] ? ( [ \ d | , | \ . ] + ) \ / [ \ $ ] ? ( [ \ d | , | \ . ] + ) / ; 
 r e B l i n d s [ T I T A N ]   =   / < g a m e t y p e > . * ? ( [ \ d | , | \ . ] + ) \ / . * ? ( [ \ d | , | \ . ] + ) < \ / g a m e t y p e > / ; 
 
 v a r   r e G a m e S i z e   =   n e w   A r r a y ( ) ; 
 r e G a m e S i z e [ P S T A R S ]   =   / ( \ d + ) - m a x / ; 
 r e G a m e S i z e [ F T P ]   =   / ( \ d + )   m a x / ; 
 r e G a m e S i z e [ C E R E U S ]   =   / ( \ d + ) - m a x / ; 
 r e G a m e S i z e [ H E M ]   =   / ( \ d + ) - m a x / ; 
 
 v a r   r e A n t e T e x t   =   n e w   A r r a y ( ) ; 
 r e A n t e T e x t [ P S T A R S ]   =   / ( . * ? ) \ * \ * \ * / ; 
 r e A n t e T e x t [ F T P ]   =   / ( . * ? ) \ * \ * \ * / ; 
 r e A n t e T e x t [ C E R E U S ]   =   / ( . * ? ) \ * \ * \ *   3 r d / ; 
 r e A n t e T e x t [ H E M ]   =   / ( . * ? ) \ * \ *   D e a l i n g   d o w n / ; 
 r e A n t e T e x t [ R P M ]   =   / ( . * ? ) < r o u n d   i d = \ " P R E F L O P \ " / ; 
 
 v a r   r e A n t e L i n e s   =   n e w   A r r a y ( ) ; 
 r e A n t e L i n e s [ P S T A R S ]   =   / p o s t s   t h e   a n t e   [ \ $ ] ? ( [ \ d | , | \ . ] + ) / ; 
 r e A n t e L i n e s [ F T P ]   =   /   a n t e s   [ \ $ ] ? ( [ \ d | , | \ . ] + ) / ; 
 r e A n t e L i n e s [ C E R E U S ]   =   /   -   A n t e   [ \ $ ] ? ( [ \ d | , | \ . ] + ) / ; 
 r e A n t e L i n e s [ H E M ]   =   /   p o s t s   a n t e   o f   \ [ [ \ $ ] ? ( [ \ d | , | \ . ] + ) / ; 
 
 v a r   r e S e a t i n g T e x t   =   n e w   A r r a y ( ) ; 
 r e S e a t i n g T e x t [ P S T A R S ]   =   / ( . * ? ) \ * \ * \ *   / ; 
 r e S e a t i n g T e x t [ F T P ]   =   / ( . * ? ) \ * \ * \ *   / ; 
 r e S e a t i n g T e x t [ C E R E U S ]   =   / ( . * ? ) \ * \ * \ *   / ; 
 r e S e a t i n g T e x t [ H E M ]   =   / \  %( . * ) \ * \ *   D e a l i n g   d o w n / i ; 
 r e S e a t i n g T e x t [ T I T A N ]   =   / < p l a y e r s > ( . * ) < \ / p l a y e r s > / ; 
 r e A n t e T e x t [ R P M ]   =   / ( . * ? ) < r o u n d   i d = \ " B L I N D S \ " / ; 
 
 v a r   r e G a m e T y p e   =   n e w   A r r a y ( ) ; 
 r e G a m e T y p e [ P S T A R S ]   =   / T o u r n a m e n t / ; 
 r e G a m e T y p e [ F T P ]   =   / S e a t . * \ ( \ d / ; 
 r e G a m e T y p e [ C E R E U S ]   =   / T o u r n a m e n t / ; 
 r e G a m e T y p e [ H E M ]   =   / T o u r n a m e n t / ; 
 r e G a m e T y p e [ R P M ]   =   / T o u r n a m e n t / ; 
 r e G a m e T y p e [ T I T A N ]   =   / T o u r n a m e n t / ; 
 
 v a r   r e F i n d S e a t s   =   n e w   A r r a y ( ) ; 
 r e F i n d S e a t s [ P S T A R S ]   =   / ( S e a t   \ d + ) \ :   . * c h i p s \ ) / g ; 
 r e F i n d S e a t s [ F T P ]   =   / ( S e a t   \ d + ) \ :   . * / g ; 
 r e F i n d S e a t s [ C E R E U S ]   =   / ( S e a t   \ d + )   - . * c h i p s \ ) / g ; 
 r e F i n d S e a t s [ H E M ]   =   / ( S e a t   \ d + ) \ :   . *   \ (   [ \ $ ] ? ( [ \ d | , | \ . ] + ) / g ; 
 r e F i n d S e a t s [ R P M ]   =   / < ( p l a y e r   s e a t = \ " \ d + \ " ) / g ; 
 r e F i n d S e a t s [ T I T A N ]   =   / < ( p l a y e r   s e a t . * ? ) \ / > / g ; 
 
 v a r   r e F i n d I n f o   =   n e w   A r r a y ( ) ; 
 r e F i n d I n f o [ P S T A R S ]   =   / S e a t   \ d + \ : . * / g ; 
 r e F i n d I n f o [ F T P ]   =   / S e a t   \ d + \ :   . * / g ; 
 r e F i n d I n f o [ C E R E U S ]   =   / S e a t   \ d +   -   . * / g ; 
 r e F i n d I n f o [ H E M ]   =   / S e a t   \ d + \ :   . * / g ; 
 r e F i n d I n f o [ R P M ]   =   / < p l a y e r   s e a t = \ " \ d + \ "   . * / g ; 
 r e F i n d I n f o [ T I T A N ]   =   / < p l a y e r   s e a t = . * ? \ / > / g ; 
 
 v a r   r e P l a y e r I n f o   =   n e w   A r r a y ( ) ; 
 r e P l a y e r I n f o [ P S T A R S ]   =   / S e a t   ( \ d + ) \ :   ( . * )   \ ( [ \ $ ] ? ( [ \ d | , | \ . ] + )   i n   c h i p s \ ) / ; 
 r e P l a y e r I n f o [ F T P ]   =   / S e a t   ( \ d + ) \ :   ( . * )   \ ( [ \ $ ] ? ( [ \ d | , | \ . ] + ) \ ) / ; 
 r e P l a y e r I n f o [ C E R E U S ]   =   / S e a t   ( \ d + )   -   ( . * )   \ ( [ \ $ ] ? ( [ \ d | , | \ . ] + )   i n   c h i p s \ ) / ; 
 r e P l a y e r I n f o [ H E M ]   =   / S e a t   ( \ d + ) \ :   ( . * )   \ (   [ \ $ ] ? ( [ \ d | , | \ . ] + )   \ S *   \ ) / ; 
 r e P l a y e r I n f o [ R P M ]   =   / < p l a y e r   s e a t = \ " ( \ d + ) \ "   n i c k n a m e = \ " ( . * ) \ "   b a l a n c e = \ " [ \ $ ] ? ( [ \ d | , | . ] ) \ " / ; 
 r e P l a y e r I n f o [ T I T A N ]   =   / < p l a y e r   s e a t = \ " ( \ d + ) \ "   n a m e = \ " ( \ S * ? ) \ "   c h i p s = \ " . * ? ( [ \ d | , | \ . ] + ) \ " / ; 
 
 v a r   r e B u t t o n   =   n e w   A r r a y ( ) ; 
 r e B u t t o n [ P S T A R S ]   =   / S e a t   \ # ( \ d + )   i s   t h e   b u t t o n / ; 
 r e B u t t o n [ F T P ]   =   / T h e   b u t t o n   i s   i n   s e a t   \ # ( \ d ) / ; 
 r e B u t t o n [ C E R E U S ]   =   / S e a t   \ # ( \ d + )   i s   t h e   d e a l e r / ; 
 r e B u t t o n [ H E M ]   =   / S e a t   ( \ d + )   i s   t h e   b u t t o n / ; 
 r e B u t t o n [ R P M ]   =   / < p l a y e r s   d e a l e r = \ " ( \ d + ) \ " / ; 
 r e B u t t o n [ T I T A N ]   =   / < p l a y e r   s e a t = \ " ( \ d + ) \ "   n a m e = \ " \ S * ? \ "   c h i p s = \ " \ S * ? \ "   d e a l e r = \ " 1 \ " . * ? \ / > / ; 
 
 v a r   r e G e t H a n d P r e   =   n e w   A r r a y ( ) ; 
 v a r   r e G e t H a n d P o s t   =   n e w   A r r a y ( ) ; 
 v a r   r e G e t H a n d P o s t 2   =   n e w   A r r a y ( ) ; 
 
 r e G e t H a n d P r e [ P S T A R S ]   =   " ( ? : D e a l t   t o | S e a t   \ \ d + : )   " ; 
 r e G e t H a n d P r e [ F T P ]   =   " ( ? : D e a l t   t o | S e a t   \ \ d + : )   " ; 
 r e G e t H a n d P r e [ C E R E U S ]   =   " ( ? : S e a t   \ \ d + :   ) ? " ; 
 r e G e t H a n d P r e [ H E M ]   =   " ( ? : D e a l t   t o | S e a t   \ \ d + : )   " ; 
 r e G e t H a n d P r e [ R P M ]   =   " < c a r d s   t y p e " 
 
 r e G e t H a n d P o s t [ P S T A R S ]   =   "   ( \ \ [ [ 2 - 9 T J Q K A ] [ h d s c ]   [ 2 - 9 T J Q K A ] [ h d s c ]   [ 2 - 9 T J Q K A ] [ h d s c ] \ \ ]  %) " ; 
 r e G e t H a n d P o s t [ F T P ]   =   "   ( \ \ [ [ 2 - 9 T J Q K A ] [ h d s c ]   [ 2 - 9 T J Q K A ] [ h d s c ] \ \ ]   \ \ [ [ 2 - 9 T J Q K A ] [ h d s c ] \ \ ]  %) " ; 
 r e G e t H a n d P o s t [ C E R E U S ]   =   "   -   ( ? : P o c k e t )   ( \ \ [ [ 2 - 9 T J Q K A ] [ h d s c ]   [ 2 - 9 T J Q K A ] [ h d s c ]   [ 2 - 9 T J Q K A ] [ h d s c ] \ \ ]  %) " ; 
 
 r e G e t H a n d P o s t 2 [ P S T A R S ]   =   "   ( ? : m u c k e d   | s h o w e d   ) ? ( \ \ [ ( . * ) \ \ ] ) " ; 
 r e G e t H a n d P o s t 2 [ F T P ]   =   "   ( ? : m u c k e d   | s h o w e d   ) ? ( \ \ [ ( . * ) \ \ ] ) " ; 
 r e G e t H a n d P o s t 2 [ C E R E U S ]   =   "   -   ( ? : P o c k e t   | S h o w s   ) ? ( \ \ [ ( . * ) \ \ ] ) " ; 
 
 v a r   r e T D G e t H a n d P o s t   =   n e w   A r r a y ( ) ; 
 r e T D G e t H a n d P o s t [ P S T A R S ]   =   " (   \ \ [ [ 2 - 9 T J Q K A ] [ h d s c ]   [ 2 - 9 T J Q K A ] [ h d s c ]   [ 2 - 9 T J Q K A ] [ h d s c ]   [ 2 - 9 T J Q K A ] [ h d s c ]   [ 2 - 9 T J Q K A ] [ h d s c ] \ \ ]  %) " ; 
 r e T D G e t H a n d P o s t [ F T P ]   =   " (   \ \ [ [ 2 - 9 T J Q K A ] [ h d s c ]   [ 2 - 9 T J Q K A ] [ h d s c ]   [ 2 - 9 T J Q K A ] [ h d s c ]   [ 2 - 9 T J Q K A ] [ h d s c ]   [ 2 - 9 T J Q K A ] [ h d s c ] \ \ ]  %) " ; 
 
 v a r   r e B a d u g i G e t H a n d P o s t   =   n e w   A r r a y ( ) ; 
 r e B a d u g i G e t H a n d P o s t [ P S T A R S ]   =   " (   \ \ [ [ 2 - 9 T J Q K A ] [ h d s c ]   [ 2 - 9 T J Q K A ] [ h d s c ]   [ 2 - 9 T J Q K A ] [ h d s c ]   [ 2 - 9 T J Q K A ] [ h d s c ] \ \ ]  %) " ; 
 r e B a d u g i G e t H a n d P o s t [ F T P ]   =   " (   \ \ [ [ 2 - 9 T J Q K A ] [ h d s c ]   [ 2 - 9 T J Q K A ] [ h d s c ]   [ 2 - 9 T J Q K A ] [ h d s c ]   [ 2 - 9 T J Q K A ] [ h d s c ] \ \ ]  %) " ; 
 
 v a r   r e M a t c h C a r d   =   n e w   A r r a y ( ) ; 
 r e M a t c h C a r d [ P S T A R S ]   =   / ( [ 2 - 9 T J Q K A ] [ h d s c ] ) / g ; 
 r e M a t c h C a r d [ F T P ]   =   / ( [ 2 - 9 T J Q K A ] [ h d s c ] ) / g ; 
 r e M a t c h C a r d [ C E R E U S ]   =   / ( [ 2 - 9 T J Q K A ] [ h d s c ] ) / g ; 
 
 v a r   r e S t r e e t M a t c h   =   n e w   A r r a y ( ) ; 
 v a r   r e S t r e e t M a t c h A l t   =   n e w   A r r a y ( ) ; 
 r e S t r e e t M a t c h [ P S T A R S ]   =   n e w   A r r a y ( / 3 r d   S T R E E T   \ * \ * \ *  %( . * ) \ * \ * \ *   4 t h / i ,   / 4 t h   S T R E E T   \ * \ * \ *  %( . * ) \ * \ * \ *   5 t h / i ,   / 5 t h   S T R E E T   \ * \ * \ *  %( . * ) \ * \ * \ *   6 t h / i ,   / 6 t h   S T R E E T   \ * \ * \ *  %( . * ) \ * \ * \ *   R I V E R / i ,   / R I V E R   \ * \ * \ *  %( . * ) \ * \ * \ *   s h o w / i ) ; 
 r e S t r e e t M a t c h [ F T P ]   =   n e w   A r r a y ( / 3 r d   S T R E E T   \ * \ * \ *  %( . * ) \ * \ * \ *   4 t h / i ,   / 4 t h   S T R E E T   \ * \ * \ *  %( . * ) \ * \ * \ *   5 t h / i ,   / 5 t h   S T R E E T   \ * \ * \ *  %( . * ) \ * \ * \ *   6 t h / i ,   / 6 t h   S T R E E T   \ * \ * \ *  %( . * ) \ * \ * \ *   7 t h   S T R E E T / i ,   / 7 t h   S T R E E T   \ * \ * \ *  %( . * ) \ * \ * \ *   s h o w / i ) ; 
 r e S t r e e t M a t c h [ C E R E U S ]   =   n e w   A r r a y ( / 3 r d   S T R E E T   \ * \ * \ *  %( . * ) \ * \ * \ *   4 t h / i ,   / 4 t h   S T R E E T   \ * \ * \ *  %( . * ) \ * \ * \ *   5 t h / i ,   / 5 t h   S T R E E T   \ * \ * \ *  %( . * ) \ * \ * \ *   6 t h / i ,   / 6 t h   S T R E E T   \ * \ * \ *  %( . * ) \ * \ * \ *   R I V E R / i ,   / R I V E R   \ * \ * \ *  %( . * ) \ * \ * \ *   s h o w / i ) ; 
 r e S t r e e t M a t c h A l t [ P S T A R S ]   =   n e w   A r r a y ( / 3 r d   S T R E E T   \ * \ * \ *  %( . * ) \ * \ * \ *   s u m / i ,   / 4 t h   S T R E E T   \ * \ * \ *  %( . * ) \ * \ * \ *   s u m / i ,   / 5 t h   S T R E E T   \ * \ * \ *  %( . * ) \ * \ * \ *   s u m / i ,   / 6 t h   S T R E E T   \ * \ * \ *  %( . * ) \ * \ * \ *   s u m / i ,   / R I V E R   \ * \ * \ *  %( . * ) \ * \ * \ *   s u m / i ) ; 
 r e S t r e e t M a t c h A l t [ F T P ]   =   n e w   A r r a y ( / 3 R D   S T R E E T   \ * \ * \ *  %( . * ) \ * \ * \ *   S U M / i ,   / 4 t h   S T R E E T   \ * \ * \ *  %( . * ) \ * \ * \ *   s u m / i ,   / 5 t h   S T R E E T   \ * \ * \ *  %( . * ) \ * \ * \ *   s u m / i ,   / 6 t h   S T R E E T   \ * \ * \ *  %( . * ) \ * \ * \ *   s u m / i ,   / 7 t h   S T R E E T   \ * \ * \ *  %( . * ) \ * \ * \ *   s u m / i ) ; 
 r e S t r e e t M a t c h A l t [ C E R E U S ]   =   n e w   A r r a y ( / 3 r d   S T R E E T   \ * \ * \ *  %( . * ) \ * \ * \ *   s u m / i ,   / 4 t h   S T R E E T   \ * \ * \ *  %( . * ) \ * \ * \ *   s u m / i ,   / 5 t h   S T R E E T   \ * \ * \ *  %( . * ) \ * \ * \ *   s u m / i ,   / 6 t h   S T R E E T   \ * \ * \ *  %( . * ) \ * \ * \ *   s u m / i ,   / R I V E R   \ * \ * \ *  %( . * ) \ * \ * \ *   s u m / i ) ; 
 
 v a r   r e T D S t r e e t M a t c h   =   n e w   A r r a y ( ) ; 
 v a r   r e T D S t r e e t M a t c h A l t   =   n e w   A r r a y ( ) ; 
 r e T D S t r e e t M a t c h [ P S T A R S ]   =   n e w   A r r a y ( / D E A L I N G   H A N D S   \ * \ * \ *  %( . * ) \ * \ * \ *   F I R S T / i ,   / F I R S T   D R A W   \ * \ * \ *  %( . * ) \ * \ * \ *   S E C O N D / i ,   / S E C O N D   D R A W   \ * \ * \ *  %( . * ) \ * \ * \ *   T H I R D / i ,   / T H I R D   D R A W   \ * \ * \ *  %( . * ) \ * \ * \ *   S H O W / i ) ; 
 r e T D S t r e e t M a t c h A l t [ P S T A R S ]   =   n e w   A r r a y ( / D E A L I N G   H A N D S   \ * \ * \ *  %( . * ) \ * \ * \ *   s u m / i ,   / F I R S T   D R A W   \ * \ * \ *  %( . * ) \ * \ * \ *   s u m / i ,   / S E C O N D   D R A W   \ * \ * \ *  %( . * ) \ * \ * \ *   s u m / i ,   / T H I R D   D R A W   \ * \ * \ *  %( . * ) \ * \ * \ *   s u m / i ) ; 
 r e T D S t r e e t M a t c h [ F T P ]   =   n e w   A r r a y ( / H O L E   C A R D S   \ * \ * \ *  %( . * ) \ * \ * \ *   F I R S T / i ,   / F I R S T   D R A W   \ * \ * \ *   \ ( P o t \ :   [ \ $ ] ? ( ? : [ \ d | , | \ . ] + ) \ )  %( . * ) \ * \ * \ *   S E C O N D / i ,   / S E C O N D   D R A W   \ * \ * \ *   \ ( P o t \ :   [ \ $ ] ? ( ? : [ \ d | , | \ . ] + ) \ )  %( . * ) \ * \ * \ *   T H I R D / i ,   / T H I R D   D R A W   \ * \ * \ *   \ ( P o t \ :   [ \ $ ] ? ( ? : [ \ d | , | \ . ] + ) \ )  %( . * ) \ * \ * \ *   S H O W / i ) ; 
 r e T D S t r e e t M a t c h A l t [ F T P ]   =   n e w   A r r a y ( / H O L E   C A R D S   \ * \ * \ *  %( . * ) \ * \ * \ *   s u m / i ,   / F I R S T   D R A W   \ * \ * \ *   \ ( P o t \ :   [ \ $ ] ? ( ? : [ \ d | , | \ . ] + ) \ )  %( . * ) \ * \ * \ *   s u m / i ,   / S E C O N D   D R A W   \ * \ * \ *   \ ( P o t \ :   [ \ $ ] ? ( ? : [ \ d | , | \ . ] + ) \ )  %( . * ) \ * \ * \ *   s u m / i ,   / T H I R D   D R A W   \ * \ * \ *   \ ( P o t \ :   [ \ $ ] ? ( ? : [ \ d | , | \ . ] + ) \ )  %( . * ) \ * \ * \ *   s u m / i ) ; 
 
 v a r   r e S D S t r e e t M a t c h   =   n e w   A r r a y ( ) ; 
 v a r   r e S D S t r e e t M a t c h A l t   =   n e w   A r r a y ( ) ; 
 / /   o r i g i n a l :   r e S D S t r e e t M a t c h [ P S T A R S ]   =   n e w   A r r a y ( / D E A L I N G   H A N D S   \ * \ * \ *  %( . * ? )  %( . * ? ) \ :   ( s t a n d s | d i s c a r d s ) / i ,   / D E A L I N G   H A N D S   \ * \ * \ *  %. * ?  %( . * ? \ :   ( s t a n d s | d i s c a r d s )   . * )  %\ * \ * \ *   S H O W / i ) ; 
 r e S D S t r e e t M a t c h [ P S T A R S ]   =   / D E A L I N G   H A N D S   \ * \ * \ *  %( . * ? ) \ :   ( ? : s t a n d s | d i s c a r d s ) / i ; 
 r e S D S t r e e t M a t c h A l t [ P S T A R S ]   =   / D E A L I N G   H A N D S   \ * \ * \ *  %( . * ? )  %\ * \ * \ *   s u m / i ; 
 / / r e S D S t r e e t M a t c h A l t [ P S T A R S ]   =   n e w   A r r a y ( / D E A L I N G   H A N D S   \ * \ * \ *  %( . * ? )  %\ * \ * \ *   s u m / i ,   / . * ?  %( ( . * ? ) \ :   ( s t a n d s | d i s c a r d s )   . * )  %\ * \ * \ *   s u m / i ) ; 
 r e S D S t r e e t M a t c h [ F T P ]   =   / H O L E   C A R D S   \ * \ * \ *  %( . * ? )  %\ * \ * \ *   D R A W / i ; 
 r e S D S t r e e t M a t c h A l t [ F T P ]   =   / H O L E   C A R D S   \ * \ * \ *  %( . * ? )  %\ * \ * \ *   s u m / i ; 
 
 v a r   r e 5 C D S t r e e t M a t c h   =   n e w   A r r a y ( ) ; 
 v a r   r e 5 C D S t r e e t M a t c h A l t   =   n e w   A r r a y ( ) ; 
 r e 5 C D S t r e e t M a t c h [ P S T A R S ]   =   n e w   A r r a y ( / D E A L I N G   H A N D S   \ * \ * \ *  %( . * ? )  %( . * ? ) \ :   ( s t a n d s | d i s c a r d s ) / i ,   / D E A L I N G   H A N D S   \ * \ * \ *  %. * ?  %( . * ? \ :   ( s t a n d s | d i s c a r d s )   . * )  %\ * \ * \ *   S H O W / i ) ; 
 r e 5 C D S t r e e t M a t c h A l t [ P S T A R S ]   =   n e w   A r r a y ( / D E A L I N G   H A N D S   \ * \ * \ *  %( . * ? )  %\ * \ * \ *   s u m / i ,   / . * ?  %( ( . * ? ) \ :   ( s t a n d s | d i s c a r d s )   . * )  %\ * \ * \ *   s u m / i ) ; 
 r e 5 C D S t r e e t M a t c h [ F T P ]   =   n e w   A r r a y ( / H O L E   C A R D S   \ * \ * \ *  %( . * ? )  %( . * ? ) \ :   ( s t a n d s | d i s c a r d s ) / i ,   / D R A W   \ * \ * \ * . * ?  %( . * ? \ :   ( s t a n d s | d i s c a r d s )   . * )  %\ * \ * \ *   S H O W / i ) ; 
 r e 5 C D S t r e e t M a t c h A l t [ F T P ]   =   n e w   A r r a y ( / H O L E   C A R D S   \ * \ * \ *  %( . * ? )  %\ * \ * \ *   s u m / i ,   / . * ?  %( ( . * ? ) \ :   ( s t a n d s | d i s c a r d s )   . * )  %\ * \ * \ *   s u m / i ) ; 
 
 v a r   r e S e c o n d S t r e e t   =   n e w   A r r a y ( ) ; 
 v a r   r e S e c o n d S t r e e t A l t   =   n e w   A r r a y ( ) ; 
 r e S e c o n d S t r e e t [ P S T A R S ]   =   ' ( . * )  %\ \ * \ \ * \ \ *   S H O W   D O W N ' ; 
 r e S e c o n d S t r e e t A l t [ P S T A R S ]   =   ' ( . * )  %\ \ * \ \ * \ \ *   S U M M A R Y ' ; 
 r e S e c o n d S t r e e t [ F T P ]   =   ' \ \ * \ \ * \ \ *   D R A W   \ \ * \ \ * \ \ *   \ ( P o t \ :   [ \ $ ] ? ( ? : [ \ d | , | \ . ] + ) \ )  %( . * )  %\ \ * \ \ * \ \ *   S H O W   D O W N ' ; 
 r e S e c o n d S t r e e t A l t [ F T P ]   =   ' ( . * )  %\ \ * \ \ * \ \ *   S U M M A R Y ' ; 
 
 
 v a r   r e M a t c h S u m m a r y   =   n e w   A r r a y ( ) ; 
 r e M a t c h S u m m a r y [ P S T A R S ]   =   / S U M M A R Y   \ * \ * \ * | ( . * ) / ; 
 r e M a t c h S u m m a r y [ F T P ]   =   / S U M M A R Y   \ * \ * \ * | ( . * ) / ; 
 r e M a t c h S u m m a r y [ C E R E U S ]   =   / S U M M A R Y   \ * \ * \ * | ( . * ) / ; 
 r e M a t c h S u m m a r y [ H E M ]   =   / D e a l i n g   R i v e r   \ * \ *   \ [   [ 2 - 9 T J Q K A ] [ h d s c ]   \ ]  %( . * ) / ; 
 
 v a r   r e S u m m a r y E x t r a c t i o n 1   =   n e w   A r r a y ( ) ; 
 r e S u m m a r y E x t r a c t i o n 1 [ P S T A R S ]   =   / S e a t   \ d + :   ( . * ? )   ( ? : \ ( s m a l l   b l i n d \ )   | \ ( b i g   b l i n d \ )   | \ ( b u t t o n \ )   | \ ( d e a l e r \ )   | ) + ( s h o w e d | m u c k e d ) ( . * ) / ; 
 r e S u m m a r y E x t r a c t i o n 1 [ F T P ]   =   / S e a t   \ d + :   ( . * ? )   ( ? : \ ( s m a l l   b l i n d \ )   | \ ( b i g   b l i n d \ )   | \ ( b u t t o n \ )   | \ ( d e a l e r \ )   | ) + ( s h o w e d | m u c k e d | c o l l e c t e d ) ( . * ) / ; 
 r e S u m m a r y E x t r a c t i o n 1 [ C E R E U S ]   =   / S e a t   \ d + :   ( . * ? )   ( ? : \ ( s m a l l   b l i n d \ )   | \ ( b i g   b l i n d \ )   | \ ( b u t t o n \ )   | \ ( d e a l e r \ )   | ) + ( s h o w e d | m u c k e d | c o l l e c t e d | w o n | ( ? : [ A - Z ] * : ) l o s t ) ( . * ) / ; 
 r e S u m m a r y E x t r a c t i o n 1 [ H E M ]   =   / ( . * )   w i n s   ( . * )   f r o m   m a i n   p o t / ; 
 
 v a r   r e H E S u m m a r y E x t r a c t i o n 2   =   n e w   A r r a y ( ) ; 
 r e H E S u m m a r y E x t r a c t i o n 2 [ P S T A R S ]   =   / \ [ ( [ 2 - 9 T J Q K A ] [ h d s c ] )   ( [ 2 - 9 T J Q K A ] [ h d s c ] ) \ ] ( . * ? ) ? ( ? :   w i t h   ) ? ( . * ) ? / ; 
 r e H E S u m m a r y E x t r a c t i o n 2 [ F T P ]   =   / \ [ ( [ 2 - 9 T J Q K A ] [ h d s c ] )   ( [ 2 - 9 T J Q K A ] [ h d s c ] ) \ ] ( . * ? ) ? ( ? :   w i t h   ) ? ( . * ) ? / ; 
 r e H E S u m m a r y E x t r a c t i o n 2 [ C E R E U S ]   =   / ( . * ? ) ( ? : [ : |   ] w i t h   ) ( . * ? ) \ [ ( [ 2 - 9 T J Q K A ] [ h d s c ] )   ( [ 2 - 9 T J Q K A ] [ h d s c ] )   / ; 
 r e H E S u m m a r y E x t r a c t i o n 2 [ H E M ]   =   / ( . * )   ( ? : s h o w s | d o e s n \ ' t   s h o w )   \ [ ( [ 2 - 9 T J Q K A ] [ h d s c ] ) ,   ( [ 2 - 9 T J Q K A ] [ h d s c ] )   \ ] / ; 
 
 v a r   r e O S u m m a r y E x t r a c t i o n 2   =   n e w   A r r a y ( ) ; 
 r e O S u m m a r y E x t r a c t i o n 2 [ P S T A R S ]   =   / \ [ ( [ 2 - 9 T J Q K A ] [ h d s c ] )   ( [ 2 - 9 T J Q K A ] [ h d s c ] )   ( [ 2 - 9 T J Q K A ] [ h d s c ] )   ( [ 2 - 9 T J Q K A ] [ h d s c ] ) \ ] ( . * ? ) ? ( ? :   w i t h   ) ? ( . * ) ? / ; 
 / / r e O S u m m a r y E x t r a c t i o n 2 [ P S T A R S ]   =   / \ [ ( [ 2 - 9 T J Q K A ] [ h d s c ] )   ( [ 2 - 9 T J Q K A ] [ h d s c ] )   ( [ 2 - 9 T J Q K A ] [ h d s c ] )   ( [ 2 - 9 T J Q K A ] [ h d s c ] ) \ ] ( . * ? ) ? ( ? :   w i t h   ) ? ( . * ) ? / ; 
 r e O S u m m a r y E x t r a c t i o n 2 [ F T P ]   =   / \ [ ( [ 2 - 9 T J Q K A ] [ h d s c ] )   ( [ 2 - 9 T J Q K A ] [ h d s c ] )   ( [ 2 - 9 T J Q K A ] [ h d s c ] )   ( [ 2 - 9 T J Q K A ] [ h d s c ] ) \ ] ( . * ? ) ? ( ? :   w i t h   ) ? ( . * ) ? / ; 
 r e O S u m m a r y E x t r a c t i o n 2 [ C E R E U S ]   =   / ( . * ? ) ( ? : [ : |   ] w i t h   ) ( . * ? ) \ [ ( [ 2 - 9 T J Q K A ] [ h d s c ] )   ( [ 2 - 9 T J Q K A ] [ h d s c ] )   ( [ 2 - 9 T J Q K A ] [ h d s c ] )   ( [ 2 - 9 T J Q K A ] [ h d s c ] )   / ; 
 r e O S u m m a r y E x t r a c t i o n 2 [ H E M ]   =   / ( . * )   ( ? : s h o w s | d o e s n \ ' t   s h o w )   \ [ ( [ 2 - 9 T J Q K A ] [ h d s c ] ) ,   ( [ 2 - 9 T J Q K A ] [ h d s c ] )   ( [ 2 - 9 T J Q K A ] [ h d s c ] )   ( [ 2 - 9 T J Q K A ] [ h d s c ] )   \ ] / ; 
 
 v a r   r e T D S u m m a r y E x t r a c t i o n 2   =   n e w   A r r a y ( ) ; 
 r e T D S u m m a r y E x t r a c t i o n 2 [ P S T A R S ]   =   / \ [ ( [ 2 - 9 T J Q K A ] [ h d s c ] )   ( [ 2 - 9 T J Q K A ] [ h d s c ] )   ( [ 2 - 9 T J Q K A ] [ h d s c ] )   ( [ 2 - 9 T J Q K A ] [ h d s c ] )   ( [ 2 - 9 T J Q K A ] [ h d s c ] ) \ ] ( . * ? ) ? ( ? :   w i t h   ) ( . * ) ? / ; 
 r e T D S u m m a r y E x t r a c t i o n 2 [ F T P ]   =   / \ [ ( [ 2 - 9 T J Q K A ] [ h d s c ] )   ( [ 2 - 9 T J Q K A ] [ h d s c ] )   ( [ 2 - 9 T J Q K A ] [ h d s c ] )   ( [ 2 - 9 T J Q K A ] [ h d s c ] )   ( [ 2 - 9 T J Q K A ] [ h d s c ] ) \ ] ( . * ? ) ? ( ? :   w i t h   ) ( . * ) ? / ; 
 
 v a r   r e B a d u g i S u m m a r y E x t r a c t i o n 2   =   n e w   A r r a y ( ) ; 
 r e B a d u g i S u m m a r y E x t r a c t i o n 2 [ P S T A R S ]   =   / \ [ ( [ 2 - 9 T J Q K A ] [ h d s c ] )   ( [ 2 - 9 T J Q K A ] [ h d s c ] )   ( [ 2 - 9 T J Q K A ] [ h d s c ] )   ( [ 2 - 9 T J Q K A ] [ h d s c ] ) \ ] ( . * ? ) ? ( ? :   w i t h   ) ( . * ) ? / ; 
 r e B a d u g i S u m m a r y E x t r a c t i o n 2 [ F T P ]   =   / \ [ ( [ 2 - 9 T J Q K A ] [ h d s c ] )   ( [ 2 - 9 T J Q K A ] [ h d s c ] )   ( [ 2 - 9 T J Q K A ] [ h d s c ] )   ( [ 2 - 9 T J Q K A ] [ h d s c ] ) \ ] ( . * ? ) ? ( ? :   w i t h   ) ( . * ) ? / ; 
 
 v a r   r e S t u d S u m m a r y E x t r a c t i o n 2   =   n e w   A r r a y ( ) ; 
 r e S t u d S u m m a r y E x t r a c t i o n 2 [ P S T A R S ]   =   / \ [ ( [ 2 - 9 T J Q K A ] [ h d s c ] )   ( [ 2 - 9 T J Q K A ] [ h d s c ] )   ( [ 2 - 9 T J Q K A ] [ h d s c ] )   ( [ 2 - 9 T J Q K A ] [ h d s c ] )   ( [ 2 - 9 T J Q K A ] [ h d s c ] )   ( [ 2 - 9 T J Q K A ] [ h d s c ] )   ( [ 2 - 9 T J Q K A ] [ h d s c ] ) \ ] ( . * ? ) ( ? :   w i t h   ) ( . * ) / ; 
 r e S t u d S u m m a r y E x t r a c t i o n 2 [ F T P ]   =   / \ [ ( [ 2 - 9 T J Q K A ] [ h d s c ] )   ( [ 2 - 9 T J Q K A ] [ h d s c ] )   ( [ 2 - 9 T J Q K A ] [ h d s c ] )   ( [ 2 - 9 T J Q K A ] [ h d s c ] )   ( [ 2 - 9 T J Q K A ] [ h d s c ] )   ( [ 2 - 9 T J Q K A ] [ h d s c ] )   ( [ 2 - 9 T J Q K A ] [ h d s c ] ) \ ] ( . * ? ) ( ? : w i t h | \ - ) ( . * ) / ; 
 r e S t u d S u m m a r y E x t r a c t i o n 2 [ C E R E U S ]   =   / ( . * ? ) ( ? : [ : |   ] w i t h   ) ( . * ) \ [ ( [ 2 - 9 T J Q K A ] [ h d s c ] )   ( [ 2 - 9 T J Q K A ] [ h d s c ] )   ( [ 2 - 9 T J Q K A ] [ h d s c ] )   ( [ 2 - 9 T J Q K A ] [ h d s c ] )   ( [ 2 - 9 T J Q K A ] [ h d s c ] )   ( [ 2 - 9 T J Q K A ] [ h d s c ] )   ( [ 2 - 9 T J Q K A ] [ h d s c ] )   / ; 
 r e S t u d S u m m a r y E x t r a c t i o n 2 [ H E M ] =   /   / ; 
 
 v a r   r e T h e M o n e y   =   n e w   A r r a y ( ) ; 
 r e T h e M o n e y [ P S T A R S ]   =   / \ ( [ \ $ ] ? ( [ \ d | , | \ . ] + ) \ ) / ; 
 r e T h e M o n e y [ F T P ]   =   / \ ( [ \ $ ] ? ( [ \ d | , | \ . ] + ) \ ) / ; 
 r e T h e M o n e y [ C E R E U S ]   =   / \ ( [ \ $ ] ? ( [ \ d | , | \ . ] + ) \ ) / ; 
 r e T h e M o n e y [ H E M ]   =   /   [ \ $ ] ? ( [ \ d | , | \ . ] + )   / ; 
 
 v a r   r e R a k e   =   n e w   A r r a y ( ) ; 
 r e R a k e [ P S T A R S ]   =   / R a k e   [ \ $ ] ? ( [ \ d | , | \ . ] + ) / ; 
 r e R a k e [ F T P ]   =   / R a k e   [ \ $ ] ? ( [ \ d | , | \ . ] + ) / ; 
 r e R a k e [ C E R E U S ]   =   / R a k e   \ ( [ \ $ ] ? ( [ \ d | , | \ . ] + ) \ ) / ; 
 
 v a r   r e S m a l l B l i n d   =   n e w   A r r a y ( ) ; 
 r e S m a l l B l i n d [ P S T A R S ]   =   / ( . * ) \ :   p o s t s   s m a l l   b l i n d   [ \ $ ] ? ( [ \ d | , | \ . ] + ) / ; 
 r e S m a l l B l i n d [ F T P ]   =   / ( . * )   p o s t s   t h e   s m a l l   b l i n d   o f   [ \ $ ] ? ( [ \ d | , | \ . ] + ) / ; 
 r e S m a l l B l i n d [ C E R E U S ]   =   / ( . * )   -   P o s t s   s m a l l   b l i n d   [ \ $ ] ? ( [ \ d | , | \ . ] + ) / ; 
 r e S m a l l B l i n d [ H E M ]   =   / ( . * )   p o s t s   s m a l l   b l i n d   \ [ [ \ $ ] ? ( [ \ d | , | \ . ] + ) / ; 
 r e S m a l l B l i n d [ T I T A N ]   =   / p l a y e r = \ " ( \ S + ? ) \ "   t y p e = \ " 1 \ "   s u m = \ " \ S + ? ( [ \ d | , | \ . ] + ) \ " / ; 
 
 v a r   r e B i g B l i n d   =   n e w   A r r a y ( ) ; 
 r e B i g B l i n d [ P S T A R S ]   =   / ( . * ) \ :   p o s t s   b i g   b l i n d   [ \ $ ] ? ( [ \ d | , | \ . ] + ) / ; 
 r e B i g B l i n d [ F T P ]   =   / ( . * )   p o s t s   t h e   b i g   b l i n d   o f   [ \ $ ] ? ( [ \ d | , | \ . ] + ) / ; 
 r e B i g B l i n d [ C E R E U S ]   =   / ( . * )   -   P o s t s   b i g   b l i n d   [ \ $ ] ? ( [ \ d | , | \ . ] + ) / ; 
 r e B i g B l i n d [ H E M ]   =   / ( . * )   p o s t s   b i g   b l i n d   \ [ [ \ $ ] ? ( [ \ d | , | \ . ] + ) / ; 
 r e B i g B l i n d [ T I T A N ]   =   / p l a y e r = \ " ( \ S + ? ) \ "   t y p e = \ " 2 \ "   s u m = \ " \ S + ? ( [ \ d | , | \ . ] + ) \ " / ; 
 
 v a r   r e O H o l e C a r d s   =   n e w   A r r a y ( ) ; 
 r e O H o l e C a r d s [ P S T A R S ]   =   / D e a l t   t o   ( . * )   \ [ ( [ 2 - 9 T J Q K A ] [ h d s c ] )   ( [ 2 - 9 T J Q K A ] [ h d s c ] )   ( [ 2 - 9 T J Q K A ] [ h d s c ] )   ( [ 2 - 9 T J Q K A ] [ h d s c ] ) \ ] / ; 
 r e O H o l e C a r d s [ F T P ]   =   / D e a l t   t o   ( . * )   \ [ ( [ 2 - 9 T J Q K A ] [ h d s c ] )   ( [ 2 - 9 T J Q K A ] [ h d s c ] )   ( [ 2 - 9 T J Q K A ] [ h d s c ] )   ( [ 2 - 9 T J Q K A ] [ h d s c ] ) \ ] / ; 
 r e O H o l e C a r d s [ C E R E U S ]   =   / D e a l t   t o   ( . * )   \ [ ( [ 2 - 9 T J Q K A ] [ h d s c ] )   ( [ 2 - 9 T J Q K A ] [ h d s c ] )   ( [ 2 - 9 T J Q K A ] [ h d s c ] )   ( [ 2 - 9 T J Q K A ] [ h d s c ] ) \ ] / ; 
 r e O H o l e C a r d s [ H E M ]   =   / D e a l t   t o   ( . * )   \ [   ( [ 2 - 9 T J Q K A ] [ h d s c ] )   ( [ 2 - 9 T J Q K A ] [ h d s c ] )   ( [ 2 - 9 T J Q K A ] [ h d s c ] )   ( [ 2 - 9 T J Q K A ] [ h d s c ] )   \ ] / ; 
 
 v a r   r e H E H o l e C a r d s   =   n e w   A r r a y ( ) ; 
 r e H E H o l e C a r d s [ P S T A R S ]   =   / D e a l t   t o   ( . * )   \ [ ( [ 2 - 9 T J Q K A ] [ h d s c ] )   ( [ 2 - 9 T J Q K A ] [ h d s c ] ) \ ] / ; 
 r e H E H o l e C a r d s [ F T P ]   =   / D e a l t   t o   ( . * )   \ [ ( [ 2 - 9 T J Q K A ] [ h d s c ] )   ( [ 2 - 9 T J Q K A ] [ h d s c ] ) \ ] / ; 
 r e H E H o l e C a r d s [ C E R E U S ]   =   / D e a l t   t o   ( . * )   \ [ ( [ 2 - 9 T J Q K A ] [ h d s c ] )   ( [ 2 - 9 T J Q K A ] [ h d s c ] ) \ ] / ; 
 r e H E H o l e C a r d s [ H E M ]   =   / D e a l t   t o   ( . * )   \ [   [   ] ? ( [ 2 - 9 T J Q K A ] [ h d s c ] )   ( [ 2 - 9 T J Q K A ] [ h d s c ] )   \ ] / ; 
 r e H E H o l e C a r d s [ T I T A N ]   =   / c a r d s   t y p e = \ " P o c k e t \ "   p l a y e r = \ " ( \ S + ? ) \ " > ( [ H D S C ] [ 2 - 9 T J Q K A ] )   ( [ H D S C ] [ 2 - 9 T J Q K A ] ) / ; 
 
 v a r   r e H e r o   =   n e w   A r r a y ( ) ; 
 r e H e r o [ T I T A N ]   =   / < n i c k n a m e > ( . * ? ) < \ / n i c k n a m e > / ; 
 
 v a r   r e P r e f l o p A c t i o n   =   n e w   A r r a y ( ) ; 
 r e P r e f l o p A c t i o n [ P S T A R S ]   =   / H O L E   C A R D S   \ * \ * \ *  %( . * ) \ * \ * \ *   F L O P / ; 
 r e P r e f l o p A c t i o n [ F T P ]   =   / H O L E   C A R D S   \ * \ * \ *  %( . * ) \ * \ * \ *   F L O P / ; 
 r e P r e f l o p A c t i o n [ C E R E U S ]   =   / P O C K E T   C A R D S   \ * \ * \ *  %( . * ) \ * \ * \ *   F L O P / ; 
 r e P r e f l o p A c t i o n [ H E M ]   =   / D e a l i n g   d o w n   c a r d s   \ * \ *  %( . * ) \ * \ *   D e a l i n g   F l o p / ; 
 r e P r e f l o p A c t i o n [ T I T A N ]   =   / < r o u n d   n o = \ " 1 \ " > . * ? < \ / c a r d s > ( . * ? ) < \ / r o u n d > / ; 
 
 v a r   r e P r e f l o p A c t i o n A l t   =   n e w   A r r a y ( ) ; 
 r e P r e f l o p A c t i o n A l t [ P S T A R S ]   =   / H O L E   C A R D S   \ * \ * \ *  %( . * ) \ * \ * \ *   ( ? : S U M ) / ; 
 r e P r e f l o p A c t i o n A l t [ F T P ]   =   / H O L E   C A R D S   \ * \ * \ *  %( . * ) \ * \ * \ *   ( ? : S U M ) / ; 
 r e P r e f l o p A c t i o n A l t [ C E R E U S ]   =   / P O C K E T   C A R D S   \ * \ * \ *  %( . * ) \ * \ * \ *   ( ? : S U M ) / ; 
 r e P r e f l o p A c t i o n A l t [ H E M ]   =   / D e a l i n g   d o w n   c a r d s   \ * \ *  %( . * )  %( ? : . * ? )   w i n s   / ; 
 r e P r e f l o p A c t i o n A l t [ T I T A N ]   =   / < r o u n d   n o = \ " 1 \ " > . * ? < \ / c a r d s > ( . * ? ) < \ / r o u n d > / ; 
 
 
 v a r   r e F l o p   =   n e w   A r r a y ( ) ; 
 r e F l o p [ P S T A R S ]   =   / F L O P   \ * \ * \ *   \ [ ( [ 2 - 9 T J Q K A ] [ h d s c ] )   ( [ 2 - 9 T J Q K A ] [ h d s c ] )   ( [ 2 - 9 T J Q K A ] [ h d s c ] ) \ ] / ; 
 r e F l o p [ F T P ]   =   / F L O P   \ * \ * \ *   \ [ ( [ 2 - 9 T J Q K A ] [ h d s c ] )   ( [ 2 - 9 T J Q K A ] [ h d s c ] )   ( [ 2 - 9 T J Q K A ] [ h d s c ] ) \ ] / ; 
 r e F l o p [ C E R E U S ]   =   / F L O P   \ * \ * \ *   \ [ ( [ 2 - 9 T J Q K A ] [ h d s c ] )   ( [ 2 - 9 T J Q K A ] [ h d s c ] )   ( [ 2 - 9 T J Q K A ] [ h d s c ] ) \ ] / ; 
 r e F l o p [ H E M ]   =   / D e a l i n g   F l o p   \ * \ * \   \ [   ( [ 2 - 9 T J Q K A ] [ h d s c ] ) ,   ( [ 2 - 9 T J Q K A ] [ h d s c ] ) ,   ( [ 2 - 9 T J Q K A ] [ h d s c ] )   \ ] / ; 
 r e F l o p [ T I T A N ]   =   / < c a r d s   t y p e = \ " F l o p \ "   p l a y e r = \ " \ " > ( [ H D S C ] [ 2 - 9 T J Q K A ] )   ( [ H D S C ] [ 2 - 9 T J Q K A ] )   ( [ H D S C ] [ 2 - 9 T J Q K A ] ) / ; 
 
 v a r   r e F l o p R u n I t   =   n e w   A r r a y ( ) ; 
 r e F l o p R u n I t [ P S T A R S ]   =   " F L O P   ( \ \ d )   \ \ * \ \ * \ \ *   \ \ [ ( [ 2 - 9 T J Q K A ] [ h d s c ] )   ( [ 2 - 9 T J Q K A ] [ h d s c ] )   ( [ 2 - 9 T J Q K A ] [ h d s c ] ) \ \ ] " ; 
 r e F l o p R u n I t [ F T P ]   =   " F L O P   ( \ \ d )   \ \ * \ \ * \ \ *   \ \ [ ( [ 2 - 9 T J Q K A ] [ h d s c ] )   ( [ 2 - 9 T J Q K A ] [ h d s c ] )   ( [ 2 - 9 T J Q K A ] [ h d s c ] ) \ \ ] " ; 
 r e F l o p R u n I t [ C E R E U S ]   =   " F L O P   ( \ \ d )   \ \ * \ \ * \ \ *   \ \ [ ( [ 2 - 9 T J Q K A ] [ h d s c ] )   ( [ 2 - 9 T J Q K A ] [ h d s c ] )   ( [ 2 - 9 T J Q K A ] [ h d s c ] ) \ \ ] " ; 
 r e F l o p R u n I t [ H E M ]   =   " D e a l i n g   F l o p   ( \ \ d )   \ \ * \ \ *   \ \ [   ( [ 2 - 9 T J Q K A ] [ h d s c ] ) ,   ( [ 2 - 9 T J Q K A ] [ h d s c ] ) ,   ( [ 2 - 9 T J Q K A ] [ h d s c ] )   \ \ ] " ; 
 
 v a r   r e F l o p A c t i o n   =   n e w   A r r a y ( ) ; 
 r e F l o p A c t i o n [ P S T A R S ]   =   / F L O P   \ * \ * \ *   \ [ [ 2 - 9 T J Q K A ] [ h d s c ]   [ 2 - 9 T J Q K A ] [ h d s c ]   [ 2 - 9 T J Q K A ] [ h d s c ] \ ]  %( . * ) \ * \ * \ *   ( ? : T U R N ) / ; 
 r e F l o p A c t i o n [ F T P ]   =   / F L O P   \ * \ * \ *   \ [ [ 2 - 9 T J Q K A ] [ h d s c ]   [ 2 - 9 T J Q K A ] [ h d s c ]   [ 2 - 9 T J Q K A ] [ h d s c ] \ ]  %( . * ) \ * \ * \ *   ( ? : T U R N ) / ; 
 r e F l o p A c t i o n [ C E R E U S ]   =   / F L O P   \ * \ * \ *   \ [ [ 2 - 9 T J Q K A ] [ h d s c ]   [ 2 - 9 T J Q K A ] [ h d s c ]   [ 2 - 9 T J Q K A ] [ h d s c ] \ ]  %( . * ) \ * \ * \ *   ( ? : T U R N ) / ; 
 r e F l o p A c t i o n [ H E M ]   =   / D e a l i n g   F l o p   \ * \ * \   \ [   [ 2 - 9 T J Q K A ] [ h d s c ] ,   [ 2 - 9 T J Q K A ] [ h d s c ] ,   [ 2 - 9 T J Q K A ] [ h d s c ]   \ ]  %( . * ) \ * \ *   D e a l i n g   T u r n / ; 
 r e F l o p A c t i o n [ T I T A N ]   =   / < r o u n d   n o = \ " 2 \ " > . * ? < \ / c a r d s > ( . * ? ) < \ / r o u n d > / ; 
 
 v a r   r e F l o p A c t i o n A l t   =   n e w   A r r a y ( ) ; 
 r e F l o p A c t i o n A l t [ P S T A R S ]   =   / F L O P   \ * \ * \ *   \ [ [ 2 - 9 T J Q K A ] [ h d s c ]   [ 2 - 9 T J Q K A ] [ h d s c ]   [ 2 - 9 T J Q K A ] [ h d s c ] \ ]  %( . * ) \ * \ * \ *   ( ? : S U M ) / ; 
 r e F l o p A c t i o n A l t [ F T P ]   =   / F L O P   \ * \ * \ *   \ [ [ 2 - 9 T J Q K A ] [ h d s c ]   [ 2 - 9 T J Q K A ] [ h d s c ]   [ 2 - 9 T J Q K A ] [ h d s c ] \ ]  %( . * ) \ * \ * \ *   ( ? : S U M ) / ; 
 r e F l o p A c t i o n A l t [ C E R E U S ]   =   / F L O P   \ * \ * \ *   \ [ [ 2 - 9 T J Q K A ] [ h d s c ]   [ 2 - 9 T J Q K A ] [ h d s c ]   [ 2 - 9 T J Q K A ] [ h d s c ] \ ]  %( . * ) \ * \ * \ *   ( ? : S U M ) / ; 
 r e F l o p A c t i o n A l t [ H E M ]   =   / D e a l i n g   F l o p   \ * \ * \   \ [   [ 2 - 9 T J Q K A ] [ h d s c ] ,   [ 2 - 9 T J Q K A ] [ h d s c ] ,   [ 2 - 9 T J Q K A ] [ h d s c ]   \ ]  %( . * ) / ; 
 r e F l o p A c t i o n A l t [ T I T A N ]   =   / < r o u n d   n o = \ " 2 \ " > . * ? < \ / c a r d s > ( . * ? ) < \ / r o u n d > / ; 
 
 v a r   r e T u r n   =   n e w   A r r a y ( ) ; 
 r e T u r n [ P S T A R S ]   =   / T U R N   \ * \ * \ *   \ [ [ 2 - 9 T J Q K A ] [ h d s c ]   [ 2 - 9 T J Q K A ] [ h d s c ]   [ 2 - 9 T J Q K A ] [ h d s c ] \ ]   \ [ ( [ 2 - 9 T J Q K A ] [ h d s c ] ) \ ] / ; 
 r e T u r n [ F T P ]   =   / T U R N   \ * \ * \ *   \ [ [ 2 - 9 T J Q K A ] [ h d s c ]   [ 2 - 9 T J Q K A ] [ h d s c ]   [ 2 - 9 T J Q K A ] [ h d s c ] \ ]   \ [ ( [ 2 - 9 T J Q K A ] [ h d s c ] ) \ ] / ; 
 r e T u r n [ C E R E U S ]   =   / T U R N   \ * \ * \ *   \ [ [ 2 - 9 T J Q K A ] [ h d s c ]   [ 2 - 9 T J Q K A ] [ h d s c ]   [ 2 - 9 T J Q K A ] [ h d s c ] \ ]   \ [ ( [ 2 - 9 T J Q K A ] [ h d s c ] ) \ ] / ; 
 r e T u r n [ H E M ]   =   / D e a l i n g   T u r n   \ * \ *   \ [   ( [ 2 - 9 T J Q K A ] [ h d s c ] )   \ ] / ; 
 r e T u r n [ T I T A N ]   =   / < c a r d s   t y p e = \ " T u r n \ "   p l a y e r = \ " \ " > ( [ H D S C ] [ 2 - 9 T J Q K A ] ) / ; 
 
 v a r   r e T u r n R u n I t   =   n e w   A r r a y ( ) ; 
 r e T u r n R u n I t [ P S T A R S ]   =   " T U R N   ( \ \ d )   \ \ * \ \ * \ \ *   \ \ [ [ 2 - 9 T J Q K A ] [ h d s c ]   [ 2 - 9 T J Q K A ] [ h d s c ]   [ 2 - 9 T J Q K A ] [ h d s c ] \ \ ]   \ \ [ ( [ 2 - 9 T J Q K A ] [ h d s c ] ) \ \ ] " ; 
 r e T u r n R u n I t [ F T P ]   =   " T U R N   ( \ \ d )   \ \ * \ \ * \ \ *   \ \ [ [ 2 - 9 T J Q K A ] [ h d s c ]   [ 2 - 9 T J Q K A ] [ h d s c ]   [ 2 - 9 T J Q K A ] [ h d s c ] \ \ ]   \ \ [ ( [ 2 - 9 T J Q K A ] [ h d s c ] ) \ \ ] " ; 
 r e T u r n R u n I t [ C E R E U S ]   =   " T U R N   ( \ \ d )   \ \ * \ \ * \ \ *   \ \ [ [ 2 - 9 T J Q K A ] [ h d s c ]   [ 2 - 9 T J Q K A ] [ h d s c ]   [ 2 - 9 T J Q K A ] [ h d s c ] \ \ ]   \ \ [ ( [ 2 - 9 T J Q K A ] [ h d s c ] ) \ \ ] " ; 
 r e T u r n R u n I t [ H E M ]   =   " D e a l i n g   T u r n   ( \ \ d )   \ \ * \ \ *   \ \ [   ( [ 2 - 9 T J Q K A ] [ h d s c ] )   \ \ ] " ; 
 
 v a r   r e T u r n A c t i o n   =   n e w   A r r a y ( ) ; 
 r e T u r n A c t i o n [ P S T A R S ]   =   / T U R N   \ * \ * \ *   \ [ [ 2 - 9 T J Q K A ] [ h d s c ]   [ 2 - 9 T J Q K A ] [ h d s c ]   [ 2 - 9 T J Q K A ] [ h d s c ] \ ]   \ [ [ 2 - 9 T J Q K A ] [ h d s c ] \ ]  %( . * ) \ * \ * \ *   ( ? : R I V E R ) / ; 
 r e T u r n A c t i o n [ F T P ]   =   / T U R N   \ * \ * \ *   \ [ [ 2 - 9 T J Q K A ] [ h d s c ]   [ 2 - 9 T J Q K A ] [ h d s c ]   [ 2 - 9 T J Q K A ] [ h d s c ] \ ]   \ [ [ 2 - 9 T J Q K A ] [ h d s c ] \ ]  %( . * ) \ * \ * \ *   ( ? : R I V E R ) / ; 
 r e T u r n A c t i o n [ C E R E U S ]   =   / T U R N   \ * \ * \ *   \ [ [ 2 - 9 T J Q K A ] [ h d s c ]   [ 2 - 9 T J Q K A ] [ h d s c ]   [ 2 - 9 T J Q K A ] [ h d s c ] \ ]   \ [ [ 2 - 9 T J Q K A ] [ h d s c ] \ ]  %( . * ) \ * \ * \ *   ( ? : R I V E R ) / ; 
 r e T u r n A c t i o n [ H E M ]   =   / D e a l i n g   T u r n   \ * \ *   \ [   [ 2 - 9 T J Q K A ] [ h d s c ]   \ ]  %( . * ) \ * \ *   ( ? : D e a l i n g   R i v e r ) / ; 
 r e T u r n A c t i o n [ T I T A N ]   =   / < r o u n d   n o = \ " 3 \ " > . * ? < \ / c a r d s > ( . * ? ) < \ / r o u n d > / ; 
 
 v a r   r e T u r n A c t i o n A l t   =   n e w   A r r a y ( ) ; 
 r e T u r n A c t i o n A l t [ P S T A R S ]   =   / T U R N   \ * \ * \ *   \ [ [ 2 - 9 T J Q K A ] [ h d s c ]   [ 2 - 9 T J Q K A ] [ h d s c ]   [ 2 - 9 T J Q K A ] [ h d s c ] \ ]   \ [ [ 2 - 9 T J Q K A ] [ h d s c ] \ ]  %( . * ) \ * \ * \ *   ( ? : S U M ) / ; 
 r e T u r n A c t i o n A l t [ F T P ]   =   / T U R N   \ * \ * \ *   \ [ [ 2 - 9 T J Q K A ] [ h d s c ]   [ 2 - 9 T J Q K A ] [ h d s c ]   [ 2 - 9 T J Q K A ] [ h d s c ] \ ]   \ [ [ 2 - 9 T J Q K A ] [ h d s c ] \ ]  %( . * ) \ * \ * \ *   ( ? : S U M ) / ; 
 r e T u r n A c t i o n A l t [ C E R E U S ]   =   / T U R N   \ * \ * \ *   \ [ [ 2 - 9 T J Q K A ] [ h d s c ]   [ 2 - 9 T J Q K A ] [ h d s c ]   [ 2 - 9 T J Q K A ] [ h d s c ] \ ]   \ [ [ 2 - 9 T J Q K A ] [ h d s c ] \ ]  %( . * ) \ * \ * \ *   ( ? : S U M ) / ; 
 r e T u r n A c t i o n A l t [ H E M ]   =   / D e a l i n g   T u r n   \ * \ *   \ [   [ 2 - 9 T J Q K A ] [ h d s c ]   \ ]  %( . * ) / ; 
 r e T u r n A c t i o n A l t [ T I T A N ]   =   / < r o u n d   n o  %= \ " 3 \ " > . * ? < \ / c a r d s > ( . * ? ) < \ / r o u n d > / ; 
 
 v a r   r e R i v e r   =   n e w   A r r a y ( ) ; 
 r e R i v e r [ P S T A R S ]   =   / R I V E R   \ * \ * \ *   \ [ [ 2 - 9 T J Q K A ] [ h d s c ]   [ 2 - 9 T J Q K A ] [ h d s c ]   [ 2 - 9 T J Q K A ] [ h d s c ]   [ 2 - 9 T J Q K A ] [ h d s c ] \ ]   \ [ ( [ 2 - 9 T J Q K A ] [ h d s c ] ) \ ] / ; 
 r e R i v e r [ F T P ]   =   / R I V E R   \ * \ * \ *   \ [ [ 2 - 9 T J Q K A ] [ h d s c ]   [ 2 - 9 T J Q K A ] [ h d s c ]   [ 2 - 9 T J Q K A ] [ h d s c ]   [ 2 - 9 T J Q K A ] [ h d s c ] \ ]   \ [ ( [ 2 - 9 T J Q K A ] [ h d s c ] ) \ ] / ; 
 r e R i v e r [ C E R E U S ]   =   / R I V E R   \ * \ * \ *   \ [ [ 2 - 9 T J Q K A ] [ h d s c ]   [ 2 - 9 T J Q K A ] [ h d s c ]   [ 2 - 9 T J Q K A ] [ h d s c ]   [ 2 - 9 T J Q K A ] [ h d s c ] \ ]   \ [ ( [ 2 - 9 T J Q K A ] [ h d s c ] ) \ ] / ; 
 r e R i v e r [ H E M ]   =   / D e a l i n g   R i v e r   \ * \ *   \ [   ( [ 2 - 9 T J Q K A ] [ h d s c ] )   \ ] / ; 
 r e R i v e r [ T I T A N ]   =   / < c a r d s   t y p e = \ " R i v e r \ "   p l a y e r = \ " \ " > ( [ H D S C ] [ 2 - 9 T J Q K A ] ) / ; 
 
 v a r   r e R i v e r R u n I t   =   n e w   A r r a y ( ) ; 
 r e R i v e r R u n I t [ P S T A R S ]   =   " R I V E R   ( \ \ d )   \ \ * \ \ * \ \ *   \ \ [ [ 2 - 9 T J Q K A ] [ h d s c ]   [ 2 - 9 T J Q K A ] [ h d s c ]   [ 2 - 9 T J Q K A ] [ h d s c ]   [ 2 - 9 T J Q K A ] [ h d s c ] \ \ ]   \ \ [ ( [ 2 - 9 T J Q K A ] [ h d s c ] ) \ \ ] " ; 
 r e R i v e r R u n I t [ F T P ]   =   " R I V E R   ( \ \ d )   \ \ * \ \ * \ \ *   \ \ [ [ 2 - 9 T J Q K A ] [ h d s c ]   [ 2 - 9 T J Q K A ] [ h d s c ]   [ 2 - 9 T J Q K A ] [ h d s c ]   [ 2 - 9 T J Q K A ] [ h d s c ] \ \ ]   \ \ [ ( [ 2 - 9 T J Q K A ] [ h d s c ] ) \ \ ] " ; 
 r e R i v e r R u n I t [ C E R E U S ]   =   " R I V E R   ( \ \ d )   \ \ * \ \ * \ \ *   \ \ [ [ 2 - 9 T J Q K A ] [ h d s c ]   [ 2 - 9 T J Q K A ] [ h d s c ]   [ 2 - 9 T J Q K A ] [ h d s c ]   [ 2 - 9 T J Q K A ] [ h d s c ] \ \ ]   \ \ [ ( [ 2 - 9 T J Q K A ] [ h d s c ] ) \ \ ] " ; 
 r e R i v e r R u n I t [ H E M ]   =   " D e a l i n g   R i v e r   ( \ \ d )   \ \ * \ \ *   \ \ [   ( [ 2 - 9 T J Q K A ] [ h d s c ] )   \ \ ] " ; 
 
 v a r   r e R i v e r A c t i o n   =   n e w   A r r a y ( ) ; 
 r e R i v e r A c t i o n [ P S T A R S ]   =   / R I V E R   \ * \ * \ *   \ [ [ 2 - 9 T J Q K A ] [ h d s c ]   [ 2 - 9 T J Q K A ] [ h d s c ]   [ 2 - 9 T J Q K A ] [ h d s c ]   [ 2 - 9 T J Q K A ] [ h d s c ] \ ]   \ [ [ 2 - 9 T J Q K A ] [ h d s c ] \ ]  %( . * ) \ * \ * \ *   ( ? : S H O W ) / ; 
 r e R i v e r A c t i o n [ F T P ]   =   / R I V E R   \ * \ * \ *   \ [ [ 2 - 9 T J Q K A ] [ h d s c ]   [ 2 - 9 T J Q K A ] [ h d s c ]   [ 2 - 9 T J Q K A ] [ h d s c ]   [ 2 - 9 T J Q K A ] [ h d s c ] \ ]   \ [ [ 2 - 9 T J Q K A ] [ h d s c ] \ ]  %( . * ) \ * \ * \ *   ( ? : S H O W ) / ; 
 r e R i v e r A c t i o n [ C E R E U S ]   =   / R I V E R   \ * \ * \ *   \ [ [ 2 - 9 T J Q K A ] [ h d s c ]   [ 2 - 9 T J Q K A ] [ h d s c ]   [ 2 - 9 T J Q K A ] [ h d s c ]   [ 2 - 9 T J Q K A ] [ h d s c ] \ ]   \ [ [ 2 - 9 T J Q K A ] [ h d s c ] \ ]  %( . * ) \ * \ * \ *   ( ? : S H O W ) / ; 
 r e R i v e r A c t i o n [ H E M ]   =   / D e a l i n g   R i v e r   \ * \ *   \ [   [ 2 - 9 T J Q K A ] [ h d s c ]   \ ]  %( . * ? )   w i n s   / ; 
 r e R i v e r A c t i o n [ T I T A N ]   =   / < r o u n d   n o = \ " 4 \ " > . * ? < \ / c a r d s > ( . * ? ) < \ / r o u n d > / ; 
 
 v a r   r e R i v e r A c t i o n A l t   =   n e w   A r r a y ( ) ; 
 r e R i v e r A c t i o n A l t [ P S T A R S ]   =   / R I V E R   \ * \ * \ *   \ [ [ 2 - 9 T J Q K A ] [ h d s c ]   [ 2 - 9 T J Q K A ] [ h d s c ]   [ 2 - 9 T J Q K A ] [ h d s c ]   [ 2 - 9 T J Q K A ] [ h d s c ] \ ]   \ [ [ 2 - 9 T J Q K A ] [ h d s c ] \ ]  %( . * ) \ * \ * \ *   ( ? : S U M ) / ; 
 r e R i v e r A c t i o n A l t [ F T P ]   =   / R I V E R   \ * \ * \ *   \ [ [ 2 - 9 T J Q K A ] [ h d s c ]   [ 2 - 9 T J Q K A ] [ h d s c ]   [ 2 - 9 T J Q K A ] [ h d s c ]   [ 2 - 9 T J Q K A ] [ h d s c ] \ ]   \ [ [ 2 - 9 T J Q K A ] [ h d s c ] \ ]  %( . * ) \ * \ * \ *   ( ? : S U M ) / ; 
 r e R i v e r A c t i o n A l t [ C E R E U S ]   =   / R I V E R   \ * \ * \ *   \ [ [ 2 - 9 T J Q K A ] [ h d s c ]   [ 2 - 9 T J Q K A ] [ h d s c ]   [ 2 - 9 T J Q K A ] [ h d s c ]   [ 2 - 9 T J Q K A ] [ h d s c ] \ ]   \ [ [ 2 - 9 T J Q K A ] [ h d s c ] \ ]  %( . * ) \ * \ * \ *   ( ? : S U M ) / ; 
 r e R i v e r A c t i o n A l t [ H E M ]   =   / D e a l i n g   R i v e r   \ * \ *   \ [   [ 2 - 9 T J Q K A ] [ h d s c ]   \ ]  %( ? : . * ? )   w i n s   / ; 
 r e R i v e r A c t i o n A l t [ T I T A N ]   =   / < r o u n d   n o = \ " 4 \ " > . * ? < \ / c a r d s > ( . * ? ) < \ / r o u n d > / ; 
 
 v a r   r e S h o w d o w n P l a y e r s   =   n e w   A r r a y ( ) ; 
 r e S h o w d o w n P l a y e r s [ P S T A R S ]   =   / ( . * ) :   / ; 
 r e S h o w d o w n P l a y e r s [ F T P ]   =   / ( . * ) :   / ; 
 r e S h o w d o w n P l a y e r s [ C E R E U S ]   =   / ( . * )   -   / ; 
 
 v a r   r e S h o w d o w n C a r d s   =   n e w   A r r a y ( ) ; 
 r e S h o w d o w n C a r d s [ P S T A R S ]   =   / \ [ ( [ 2 - 9 T J Q K A ] [ h d s c ] )   ( [ 2 - 9 T J Q K A ] [ h d s c ] )   ( [ 2 - 9 T J Q K A ] [ h d s c ] )   ( [ 2 - 9 T J Q K A ] [ h d s c ] ) \ ] / ; 
 r e S h o w d o w n C a r d s [ F T P ]   =   / \ [ ( [ 2 - 9 T J Q K A ] [ h d s c ] )   ( [ 2 - 9 T J Q K A ] [ h d s c ] )   ( [ 2 - 9 T J Q K A ] [ h d s c ] )   ( [ 2 - 9 T J Q K A ] [ h d s c ] ) \ ] / ; 
 r e S h o w d o w n C a r d s [ C E R E U S ]   =   / \ [ ( [ 2 - 9 T J Q K A ] [ h d s c ] )   ( [ 2 - 9 T J Q K A ] [ h d s c ] )   ( [ 2 - 9 T J Q K A ] [ h d s c ] )   ( [ 2 - 9 T J Q K A ] [ h d s c ] ) \ ] / ; 
 
 v a r   r e M u c k s   =   n e w   A r r a y ( ) ; 
 r e M u c k s [ P S T A R S ]   =   / m u c k s / ; 
 r e M u c k s [ F T P ]   =   / m u c k s / ; 
 r e M u c k s [ C E R E U S ]   =   / M u c k s / ; 
 
 v a r   r e H E M u c k e d P r e   =   n e w   A r r a y ( ) ; 
 r e H E M u c k e d P r e [ P S T A R S ]   =   " " ; 
 r e H E M u c k e d P r e [ F T P ]   =   " " ; 
 r e H E M u c k e d P r e [ C E R E U S ]   =   " " ; 
 v a r   r e H E M u c k e d P o s t   =   n e w   A r r a y ( ) ; 
 r e H E M u c k e d P o s t [ P S T A R S ]   =   '   m u c k e d   \ \ [ ( [ 2 - 9 T J Q K A ] [ h d s c ] )   ( [ 2 - 9 T J Q K A ] [ h d s c ] ) \ \ ] ' ; 
 r e H E M u c k e d P o s t [ F T P ]   =   '   m u c k e d   \ \ [ ( [ 2 - 9 T J Q K A ] [ h d s c ] )   ( [ 2 - 9 T J Q K A ] [ h d s c ] ) \ \ ] ' ; 
 r e H E M u c k e d P o s t [ C E R E U S ]   =   '   . *   [ M u c k e d ]   \ \ [ ( [ 2 - 9 T J Q K A ] [ h d s c ] )   ( [ 2 - 9 T J Q K A ] [ h d s c ] ) \ \ ] ' ; 
 
 v a r   r e G e t S h o w d o w n H a n d s   =   n e w   A r r a y ( ) ; 
 r e G e t S h o w d o w n H a n d s [ P S T A R S ]   =   / \ ]   \ ( ( . * ) \ ) / ; 
 r e G e t S h o w d o w n H a n d s [ F T P ]   =   / \ ]   \ ( ( . * ) \ ) / ; 
 r e G e t S h o w d o w n H a n d s [ C E R E U S ]   =   / \ ]   \ ( ( . * ) \ ) / ; 
 
 v a r   r e G e t R e s u l t s   =   n e w   A r r a y ( ) ; 
 r e G e t R e s u l t s [ P S T A R S ]   =   /   c o l l e c t e d   / ; 
 r e G e t R e s u l t s [ F T P ]   =   /   c o l l e c t e d   / ; 
 r e G e t R e s u l t s [ C E R E U S ]   =   /   C o l l e c t s   / ; 
 
 f u n c t i o n   p a r s e _ s i n g l e d r a w ( h a n d i n ,   s i t e )   { 
 
 
 	 / / C a s h   o r   t o u r n a m e n t ? 
 	 i f   ( h a n d i n . f i r s t L i n e . m a t c h ( / T o u r n a m e n t / ) )   { 
 	 	 h a n d i n . g a m e T y p e   =   " T " ; 
 	 }   e l s e   { 
 	 	 h a n d i n . g a m e T y p e   =   " C " ; 
 	 } 
 
 	 / / f i n d   b l i n d s 
 	 i f   ( h a n d i n . f i r s t L i n e . m a t c h ( r e B l i n d s [ s i t e ] ) )   { 
 	 	 h a n d i n . s m a l l B l i n d   =   R e g E x p . $ 1 ; 
 	 	 h a n d i n . b i g B l i n d   =   R e g E x p . $ 2 ; 
 	 } 
 
 	 h a n d i n . s m a l l B l i n d P o s t e d A m o u n t   =   0 ; 
 	 h a n d i n . b i g B l i n d P o s t e d A m o u n t   =   0 ; 
 
 	 / / f i n d   g a m e   s i z e 
 	 i f   ( h a n d i n . u n f o r m a t t e d . m a t c h ( r e G a m e S i z e [ s i t e ] ) )   { 
 	 	 h a n d i n . g a m e S i z e   =   R e g E x p . $ 1   +   ' - m a x ' ; 
 	 } 
 	 e l s e   { 
 	 	 h a n d i n . g a m e S i z e   =   " " ; 
 	 } 
 
 	 h a n d i n . a n t e s T o t a l   =   0 ; 
 	 a n t e L i n e s   =   n e w   A r r a y ; 
 	 / / f i n d   a n t e s 
 	 a n t e T e x t   =   h a n d i n . u n f o r m a t t e d N o B r e a k s . m a t c h ( r e A n t e T e x t [ s i t e ] ) ; 
       i f   ( a n t e T e x t )   { 
 	 	 a n t e L i n e s   =   a n t e T e x t [ 1 ] . s p l i t ( /  %/ ) ; 
 	 	 n u m A n t e L i n e s   =   a n t e L i n e s . l e n g t h ; 
 	 	 f o r   ( j = 0 ; j < n u m A n t e L i n e s ; j + + )   { 
 	 	 	 i f   ( a n t e L i n e s [ j ] . m a t c h ( r e A n t e L i n e s [ s i t e ] ) )   { 
 	 	 	 	 h a n d i n . a n t e   =   R e g E x p . $ 1 ; 
 	 	 	 	 h a n d i n . a n t e s T o t a l   =   p a r s e F l o a t ( h a n d i n . a n t e s T o t a l )   +   p a r s e F l o a t ( R e g E x p . $ 1 ) ; 
 	 	 	 } 
 	 	 } 
 	 } 
 	 
 	 
 	 r e s u l t   =   h a n d i n . u n f o r m a t t e d N o B r e a k s . m a t c h ( r e S e a t i n g T e x t [ s i t e ] ) ; 
 	 i f   ( r e s u l t )   { h a n d i n . s e a t T e x t   =   r e s u l t [ 1 ] ; } 
 	 e l s e   { h a n d i n . s e a t T e x t   =   "   " ; } 
 
 	 h a n d i n . s e a t L i n e s   =   h a n d i n . s e a t T e x t . r e p l a c e ( /  %/ g ,   " \ n " ) ; 
 	 
 	 / / f i n d   n u m b e r   o f   s e a t s 
 	 s e a t s   =   h a n d i n . s e a t L i n e s . m a t c h ( r e F i n d S e a t s [ s i t e ] ) ; 
 	 h a n d i n . n u m P l a y e r s   =   s e a t s . l e n g t h ; 
 	 
 	 / /   f i n d   b u t t o n / b r i n g - i n ? 
 	 i f   ( h a n d i n . u n f o r m a t t e d . m a t c h ( r e B u t t o n [ s i t e ] ) )   { 
 	 	 h a n d i n . b u t t o n   =   R e g E x p . $ 1 ; 
 	 } 
 	 
 	 / / f i n d   p l a y e r   n a m e s   a n d   s t a c k   s i z e s 
 	 p l a y e r L i n e s   =   h a n d i n . s e a t L i n e s . m a t c h ( r e F i n d I n f o [ s i t e ] ) ; 
 	 h a n d i n . p l a y e r s   =   n e w   A r r a y ; 
 	 h a n d i n . s t a c k s   =   n e w   A r r a y ; 
 	 h a n d i n . s e a t N u m b e r s   =   n e w   A r r a y ; 
 
 	 j   =   0 ; 
 	 f o r   ( i   =   0 ;   i   <   h a n d i n . n u m P l a y e r s ;   i   =   i   +   1 )   { 
 	 	 
 	 	 i f   ( p l a y e r L i n e s [ i ] . m a t c h ( r e P l a y e r I n f o [ s i t e ] ) )   { 
 	 	 	 t h e S e a t   =   R e g E x p . $ 1 ; 
 	 	 	 t h e P l a y e r   =   R e g E x p . $ 2 ; 
 	 	 	 t h e S t a c k   =   R e g E x p . $ 3 ; 
 	 	 	 i f   ( ! ( ( p l a y e r L i n e s [ i ] . m a t c h ( / s i t t i n g   o u t / i )   & &   ( h a n d i n . g a m e T y p e   = =   " C " )   & &   ( t h e S e a t   ! =   h a n d i n . b u t t o n ) ) ) ) { 
 	 	 	 	 h a n d i n . s e a t N u m b e r s [ j ]   =   t h e S e a t ; 
 	 	 	 	 h a n d i n . p l a y e r s [ j ]   =   t h e P l a y e r ; 
 	 	 	 	 h a n d i n . s t a c k s [ j ]   =   t h e S t a c k ; 
 	 	 	 	 j + + ; 
 	 	 	 } 
 	 	 } 
 	 } 
 	 i f   ( j   >   0 )   {   h a n d i n . n u m P l a y e r s   =   j ;   } 
 
 	 / / f i n d   c a r d s 
 	 h a n d i n . h o l e C a r d s   =   n e w   A r r a y ; 
 
 	 / / g e t   h e r o 
 	 f o r   ( x   =   0 ;   x   <   h a n d i n . n u m P l a y e r s ;   x + + )   { 
 	 	 h a n d i n . h o l e C a r d s [ x ]   =   n e w   A r r a y ; 
 	 	 v a r   m y R e g E x   =   n e w   R e g E x p ; 
 	 	 m y R e g E x . c o m p i l e ( r e G e t H a n d P r e [ s i t e ]   +   h a n d i n . p l a y e r s [ x ]   +   r e T D G e t H a n d P o s t [ s i t e ] ,   " g " ) ; 
 	 	 r e s u l t   =   h a n d i n . u n f o r m a t t e d N o B r e a k s . m a t c h ( m y R e g E x ) ; 
 	 	 i f   ( r e s u l t )   { 
 	 	 	 h a n d i n . h e r o   =   h a n d i n . p l a y e r s [ x ] ; 
 	 	 	 h e r o p o s   =   x ; 
 	 	 	 x   =   h a n d i n . n u m p l a y e r s ; 
 	 	 } 
 	 } 
 
 	 / / i n i t i a l i z e   2 D   a r r a y s 
 	 h a n d i n . a c t i o n _ t y p e s   =   n e w   A r r a y ; 
 	 h a n d i n . a c t i o n _ p l a y e r s   =   n e w   A r r a y ; 
 	 h a n d i n . a c t i o n _ v a l u e s   =   n e w   A r r a y ; 
 	 h a n d i n . s h o w d o w n _ t y p e s   =   n e w   A r r a y ; 
 	 h a n d i n . a c t i o n _ a d d e d T o P o t   =   n e w   A r r a y ; 
 	 h a n d i n . a c t i o n _ p l a y e r s P o t   =   n e w   A r r a y ; 
 
 	 f o r   ( r   = 0 ;   r < h a n d i n . p l a y e r s . l e n g t h ; r + + )   { 
 	 	 h a n d i n . a c t i o n _ p l a y e r s P o t [ r ]   =   0 ; 
 	 } 
 	 
 	 / / g e t   p o s t e d     b l i n d s 
 	 r e s u l t   =   h a n d i n . u n f o r m a t t e d . m a t c h ( / ( . + ) \ :   p o s t s   s m a l l   b l i n d   [ \ $ ] ? ( \ d + \ . \ d + | \ d + ) / i ) ; 
 	 i f   ( r e s u l t )   { 
 	 	 h a n d i n . s m a l l B l i n d P o s t e d B y   =   r e s u l t [ 1 ] ; 
 	 	 h a n d i n . s m a l l B l i n d P o s t e d A m o u n t   =   r e s u l t [ 2 ] ; 
 	 	 p l a y e r I n d e x   =   f i n d I n d e x ( h a n d i n . p l a y e r s ,   h a n d i n . s m a l l B l i n d P o s t e d B y ) ; 
 	 	 h a n d i n . a c t i o n _ p l a y e r s P o t [ p l a y e r I n d e x ]   =   h a n d i n . s m a l l B l i n d P o s t e d A m o u n t ; 
 	 	 / / h a n d i n . a c t i o n _ a d d e d T o P o t [ 0 ]   =   h a n d i n . s m a l l B l i n d P o s t e d A m o u n t ; 
 	 } 
 
 	 
 	 r e s u l t   =   h a n d i n . u n f o r m a t t e d . m a t c h ( / ( . + ) \ :   p o s t s   b i g   b l i n d   [ \ $ ] ? ( \ d + \ . \ d + | \ d + ) / i ) ; 
 	 i f   ( r e s u l t )   { 
 	 	 h a n d i n . b i g B l i n d P o s t e d B y   =   r e s u l t [ 1 ] ; 
 	 	 h a n d i n . b i g B l i n d P o s t e d A m o u n t   =   r e s u l t [ 2 ] ; 
 	 	 p l a y e r I n d e x   =   f i n d I n d e x ( h a n d i n . p l a y e r s ,   h a n d i n . b i g B l i n d P o s t e d B y ) ; 
 	 	 h a n d i n . a c t i o n _ p l a y e r s P o t [ p l a y e r I n d e x ]   =   h a n d i n . b i g B l i n d P o s t e d A m o u n t ; 
 	 	 / / h a n d i n . a c t i o n _ a d d e d T o P o t [ 0 ]   + =   h a n d i n . b i g B l i n d P o s t e d A m o u n t ; 
 	 } 
 
 	 / / g e t   s t r e e t   c a r d s   n a m e d   d e s i r e 
 	 h a n d i n . c o m m u n i t y C a r d s   =   n e w   A r r a y ; 
 	 h a n d i n . c o m m u n i t y C a r d s [ 1 ]   =   n e w   A r r a y ; 
 	 c a r d C o u n t   =   0 ; 
 	 
 	 / / - - - f i r s t   s t r e e t   -   p r e d r a w 
 	 x   =   0 ; 
 	 v a r   t h i s R e g E x   =   n e w   R e g E x p ; 
 	 t h i s R e g E x . c o m p i l e ( r e S D S t r e e t M a t c h [ s i t e ] ) ; 
 	 o u t e r r e s u l t   =   t h i s R e g E x . e x e c ( h a n d i n . u n f o r m a t t e d N o B r e a k s ) ; 
 	 
 	 i f   ( ! o u t e r r e s u l t )   { 
 	 	 v a r   t h i s R e g E x   =   n e w   R e g E x p ; 
 	 	 t h i s R e g E x . c o m p i l e ( r e S D S t r e e t M a t c h A l t [ s i t e ] ) ; 
 	 	 o u t e r r e s u l t   =   t h i s R e g E x . e x e c ( h a n d i n . u n f o r m a t t e d N o B r e a k s ) ; 
 	 } 
 	 i f   ( o u t e r r e s u l t )   { 
 	 	 
 	 	 / / t r i m   o f f   f i n a l   l i n e 
 	 	 v a r   n e w R e g E x   =   n e w   R e g E x p ; 
 	 	 n e w R e g E x . c o m p i l e ( / ( . * )  %. * ? $ / ) ; 
 	 	 t r i m m e d r e s u l t   =   n e w R e g E x . e x e c ( o u t e r r e s u l t [ 1 ] ) ; 
 	 	 a l e r t ( t r i m m e d r e s u l t ) ; 
 	 	 / /   h a n d i n   =   p o k e r S t a r s P a r s e A c t i o n ( h a n d i n ,   t r i m m e d r e s u l t [ 1 ] ,   x ) ; 
 	 	 i f   ( s i t e   = =   P S T A R S )   {   h a n d i n   =   p o k e r S t a r s P a r s e A c t i o n ( h a n d i n ,   t r i m m e d r e s u l t [ 1 ] ,   x ) ;   } 
 	 	 e l s e   i f   ( s i t e   = =   F T P )   {   h a n d i n   =   f t p P a r s e A c t i o n ( h a n d i n ,   t r i m m e d r e s u l t [ 1 ] ,   x ) ;   } 
 	 	 e l s e   i f   ( s i t e   = =   C E R E U S )   {   h a n d i n   =   c e r e u s P a r s e A c t i o n ( h a n d i n ,   t r i m m e d r e s u l t [ 1 ] ,   x ) ;   } 
 	 	 e l s e   i f   ( s i t e   = =   H E M )   { h a n d i n   =   H E M P a r s e A c t i o n ( h a n d i n , t r i m m e d r e s u l t [ 1 ] , x ) ; } 
 	 	 e l s e   i f   ( s i t e   = =   T I T A N )   { h a n d i n   =   t i t a n P a r s e A c t i o n ( h a n d i n , t r i m m e d r e s u l t [ 1 ] , x ) ; } 
 	 	 v a r   m y R e g E x   =   n e w   R e g E x p ; 
 	 	 m y R e g E x . c o m p i l e ( " D e a l t   t o   "   +   h a n d i n . h e r o   +   " (   \ \ [ ( . * ) \ \ ] ) " ) ; 
 	 	 o u t e r L i n e s   =   o u t e r r e s u l t [ 1 ] . s p l i t ( /  %/ ) ; 
 	 	 r e s u l t   =   o u t e r r e s u l t [ 1 ] . m a t c h ( m y R e g E x ) ; 
 	 	 i f   ( ! r e s u l t )   { 
 	 	 	 v a r   m y R e g E x   =   n e w   R e g E x p ; 
 	 	 	 m y R e g E x . c o m p i l e ( h a n d i n . h e r o   +   " :   s t a n d s   p a t   o n   ( \ \ [ ( . * ) \ \ ] ) " ) ; 
 	 	 	 r e s u l t   =   o u t e r r e s u l t [ 1 ] . m a t c h ( m y R e g E x ) ; 
 	 	 } 
 	 	 i f   ( r e s u l t )   { 
 	 	 	 s u b r e s u l t   =   r e s u l t [ 1 ] . m a t c h ( / ( [ 2 - 9 T J Q K A ] [ h d s c ] ) / g ) ; 
 	 	 	 n u m R e s u l t s   = s u b r e s u l t . l e n g t h ; 
 	 	 	 f o r   ( y   = 0 ;   y < n u m R e s u l t s ;   + + y )   { 
 	 	 	 	 h a n d i n . h o l e C a r d s [ h e r o p o s ] [ h a n d i n . h o l e C a r d s [ h e r o p o s ] . l e n g t h ]   =   s u b r e s u l t [ y ] ; 
 	 	 	 } 
 	 	 } 
 	 } 
 	 / / z e r o   o u t   p l a y e r   c o n t r i b u t i o n s   t o   p o t   f o r   n e x t   s t r e e t 
 	 f o r   ( r = 0 ; r <   h a n d i n . p l a y e r s . l e n g t h ; r + + )   { 
 	 	 h a n d i n . a c t i o n _ p l a y e r s P o t [ r ]   =   0 ; 
 	 } 
 	 / / s t r e e t   m a t c h   l o o p   e n d e d   h e r e 
 
 	 / / - - - s e c o n d   s t r e e t   -   p o s t d r a w 
 	 x   =   1 ; 
 	 v a r   r e S e c o n d S t r e e t   =   a d d s l a s h e s ( t r i m m e d r e s u l t [ 1 ] )   +   ' ( . * )  %\ \ * \ \ * \ \ *   S H O W   D O W N ' ; 
 	 v a r   r e S e c o n d S t r e e t A l t   =   a d d s l a s h e s ( t r i m m e d r e s u l t [ 1 ] )   +   ' ( . * )  %\ \ * \ \ * \ \ *   S U M M A R Y ' ; 
 	 v a r   t h i s R e g E x   =   n e w   R e g E x p ; 
 	 t h i s R e g E x . c o m p i l e ( r e S e c o n d S t r e e t ) ; 
 	 
 	 o u t e r r e s u l t   =   t h i s R e g E x . e x e c ( h a n d i n . u n f o r m a t t e d N o B r e a k s ) ; 
 	 
 	 i f   ( ! o u t e r r e s u l t )   { 
 	 	 v a r   t h i s R e g E x   =   n e w   R e g E x p ; 
 	 	 t h i s R e g E x . c o m p i l e ( r e S e c o n d S t r e e t A l t ) ; 
 	 	 o u t e r r e s u l t   =   t h i s R e g E x . e x e c ( h a n d i n . u n f o r m a t t e d N o B r e a k s ) ; 
 	 } 
 	 i f   ( o u t e r r e s u l t )   { 
 	 	 / /   h a n d i n   =   p o k e r S t a r s P a r s e A c t i o n ( h a n d i n ,   o u t e r r e s u l t [ 1 ] ,   x ) ; 
 	 	 a l e r t ( o u t e r r e s u l t ) ; 
 	 	 i f   ( s i t e   = =   P S T A R S )   {   h a n d i n   =   p o k e r S t a r s P a r s e A c t i o n ( h a n d i n ,   o u t e r r e s u l t [ 1 ] ,   x ) ;   } 
 	 	 e l s e   i f   ( s i t e   = =   F T P )   {   h a n d i n   =   f t p P a r s e A c t i o n ( h a n d i n ,   o u t e r r e s u l t [ 1 ] ,   x ) ;   } 
 	 	 e l s e   i f   ( s i t e   = =   C E R E U S )   {   h a n d i n   =   c e r e u s P a r s e A c t i o n ( h a n d i n ,   o u t e r r e s u l t [ 1 ] ,   x ) ;   } 
 	 	 e l s e   i f   ( s i t e   = =   H E M )   { h a n d i n   =   H E M P a r s e A c t i o n ( h a n d i n , o u t e r r e s u l t [ 1 ] , x ) ; } 
 	 	 e l s e   i f   ( s i t e   = =   T I T A N )   { h a n d i n   =   t i t a n P a r s e A c t i o n ( h a n d i n , o u t e r r e s u l t [ 1 ] , x ) ; } 
 	 	 m y R e g E x . c o m p i l e ( " D e a l t   t o   "   +   h a n d i n . h e r o   +   " (   \ \ [ ( . * ) \ \ ] ) " ) ; 
 	 	 o u t e r L i n e s   =   o u t e r r e s u l t [ 1 ] . s p l i t ( /  %/ ) ; 
 	 	 r e s u l t   =   o u t e r r e s u l t [ 1 ] . m a t c h ( m y R e g E x ) ; 
 	 	 i f   ( ! r e s u l t )   { 
 	 	 	 v a r   m y R e g E x   =   n e w   R e g E x p ; 
 	 	 	 m y R e g E x . c o m p i l e ( h a n d i n . h e r o   +   " :   s t a n d s   p a t   o n   ( \ \ [ ( . * ) \ \ ] ) " ) ; 
 	 	 	 r e s u l t   =   o u t e r r e s u l t [ 1 ] . m a t c h ( m y R e g E x ) ; 
 	 	 } 
 	 	 i f   ( r e s u l t )   { 
 	 	 	 s u b r e s u l t   =   r e s u l t [ 1 ] . m a t c h ( / ( [ 2 - 9 T J Q K A ] [ h d s c ] ) / g ) ; 
 	 	 	 n u m R e s u l t s   = s u b r e s u l t . l e n g t h ; 
 	 	 	 f o r   ( y   = 0 ;   y < n u m R e s u l t s ;   + + y )   { 
 	 	 	 	 h a n d i n . h o l e C a r d s [ h e r o p o s ] [ h a n d i n . h o l e C a r d s [ h e r o p o s ] . l e n g t h ]   =   s u b r e s u l t [ y ] ; 
 	 	 	 } 
 	 	 } 
 	 } 
 	 / / z e r o   o u t   p l a y e r   c o n t r i b u t i o n s   t o   p o t   f o r   n e x t   s t r e e t 
 	 f o r   ( r   = 0 ; r <   h a n d i n . p l a y e r s . l e n g t h ; r + + )   { 
 	 	 h a n d i n . a c t i o n _ p l a y e r s P o t [ r ]   =   0 ; 
 	 } 
 	 
 	 / / s u m m a r y 
 	 i f   ( h a n d i n . u n f o r m a t t e d N o B r e a k s . m a t c h ( r e M a t c h S u m m a r y [ s i t e ] ) )   { 
 	 	 h a n d i n . s h o w d o w n T e x t   =   R e g E x p . $ 1 ; 
 
 	 	 / / i f   ( h a n d i n . s h o w d o w n T e x t . m a t c h ( r e M a t c h S u m m a r y [ s i t e ] ) )   { 
 	 	 / / 	 h a n d i n . s h o w d o w n T e x t   =   R e g E x p . $ 1 ; 
 	 	 / / } 
 	 	 h a n d i n . s h o w d o w n L i n e s   =   h a n d i n . s h o w d o w n T e x t . s p l i t ( /  %/ ) ; 
 
 	 	 / / i n i t i a l i z e   2 D   a r r a y s 
 	 	 h a n d i n . s h o w d o w n _ h a n d s   =   n e w   A r r a y ;       / /   t w o   p a i r ,   F i v e s   a n d   F o u r s 
 	 	 h a n d i n . s h o w d o w n _ p l a y e r s   =   n e w   A r r a y ;   / /   < n i c k > 
 	 	 h a n d i n . s h o w d o w n _ c a r d s   =   n e w   A r r a y ;       / /     J h   Q s   e t c 
 	 	 h a n d i n . s h o w d o w n _ t y p e s   =   n e w   A r r a y ;       / /   w o n ,   l o s t ,   m u c k e d ,   c o l l e c t e d 
 	 	 h a n d i n . r e s u l t _ p l a y e r s   =   n e w   A r r a y ; 
 	 	 h a n d i n . r e s u l t _ v a l u e s   =   n e w   A r r a y ; 
 
 	 	 / / l o o p   t h r o u g h   s h o w d o w n   l i n e s 
 	 	 p l a y e r C o u n t   =   - 1 ; 
 	 	 r e s u l t C o u n t   =   - 1 ; 
 	 	 f o r   ( i   =   0 ;   i   <   h a n d i n . s h o w d o w n L i n e s . l e n g t h ;   i   =   i   +   1 )   { 
 	 	 	 i f   ( s i t e   = =   H E M )   { 
 	 	 	 	 i f   ( h a n d i n . s h o w d o w n L i n e s [ i ] . m a t c h ( r e S u m m a r y E x t r a c t i o n 1 [ s i t e ] ) )   { 
 	 	 	 	 	 m   =   f i n d I n d e x ( h a n d i n . s h o w d o w n _ p l a y e r s , R e g E x p . $ 1 ) ; 
 	 	 	 	 	 i f   ( m   = =   - 1 )   {   m   =   + + p l a y e r c o u n t ;   } 
 	 	 	 	 	 / / p l a y e r C o u n t + + ; 
 	 	 	 	 	 h a n d i n . s h o w d o w n _ p l a y e r s [ m ]   =   R e g E x p . $ 1 ; 
 	 	 	 	 	 h a n d i n . s h o w d o w n _ t y p e s [ m ]   =   " w o n " ; 
 	 	 	 	 	 i f   ( h a n d i n . s h o w d o w n L i n e s [ i ] . m a t c h ( r e T h e M o n e y [ s i t e ] ) )   { 
 	 	 	 	 	 	 r e s u l t C o u n t + + ; 
 	 	 	 	 	 	 h a n d i n . r e s u l t _ p l a y e r s [ r e s u l t C o u n t ]   =   h a n d i n . s h o w d o w n _ p l a y e r s [ m ] ; 
 	 	 	 	 	 	 h a n d i n . r e s u l t _ v a l u e s [ r e s u l t C o u n t ]   =   R e g E x p . $ 1 ; 
 	 	 	 	 	 } 
 	 	 	 	 } 
 	 	 	 	 e l s e   i f   ( r e s u l t   =   h a n d i n . s h o w d o w n L i n e s [ i ] . m a t c h ( r e T D S u m m a r y E x t r a c t i o n 2 [ s i t e ] ) )   { 
 	 	 	 	 	 m   =   f i n d I n d e x ( h a n d i n . s h o w d o w n _ p l a y e r s , r e s u l t [ 1 ] ) ; 
 	 	 	 	 	 i f   ( m   >   - 1 )   { 
 	 	 	 	 	 	 h a n d i n . s h o w d o w n _ c a r d s [ m ]   =   n e w   A r r a y ; 
 	 	 	 	 	 	 h a n d i n . s h o w d o w n _ c a r d s [ m ] [ 0 ]   =   r e s u l t [ 2 ] ; 
 	 	 	 	 	 	 h a n d i n . s h o w d o w n _ c a r d s [ m ] [ 1 ]   =   r e s u l t [ 3 ] ; 
 	 	 	 	 	 	 h a n d i n . s h o w d o w n _ c a r d s [ m ] [ 2 ]   =   r e s u l t [ 4 ] ; 
 	 	 	 	 	 	 h a n d i n . s h o w d o w n _ c a r d s [ m ] [ 3 ]   =   r e s u l t [ 5 ] ; 
 	 	 	 	 	 	 h a n d i n . s h o w d o w n _ c a r d s [ m ] [ 4 ]   =   r e s u l t [ 6 ] ; 
 	 	 	 	 	 	 h a n d i n . s h o w d o w n _ h a n d s [ m ]   =   "   " ; 
 	 	 	 	 	 } 
 	 	 	 	 	 e l s e   { 
 	 	 	 	 	 	 p l a y e r C o u n t + + ; 
 	 	 	 	 	 	 h a n d i n . s h o w d o w n _ c a r d s [ p l a y e r C o u n t ]   =   n e w   A r r a y ; 
 	 	 	 	 	 	 h a n d i n . s h o w d o w n _ p l a y e r s [ p l a y e r C o u n t ]   =   r e s u l t [ 1 ] ; 
 	 	 	 	 	 	 h a n d i n . s h o w d o w n _ t y p e s [ p l a y e r C o u n t ]   =   " l o s t " ; 
 	 	 	 	 	 	 h a n d i n . s h o w d o w n _ c a r d s [ p l a y e r C o u n t ] [ 0 ]   =   r e s u l t [ 2 ] ; 
 	 	 	 	 	 	 h a n d i n . s h o w d o w n _ c a r d s [ p l a y e r C o u n t ] [ 1 ]   =   r e s u l t [ 3 ] ; 
 	 	 	 	 	 	 h a n d i n . s h o w d o w n _ c a r d s [ p l a y e r C o u n t ] [ 2 ]   =   r e s u l t [ 4 ] ; 
 	 	 	 	 	 	 h a n d i n . s h o w d o w n _ c a r d s [ p l a y e r C o u n t ] [ 3 ]   =   r e s u l t [ 5 ] ; 
 	 	 	 	 	 	 h a n d i n . s h o w d o w n _ c a r d s [ p l a y e r C o u n t ] [ 4 ]   =   r e s u l t [ 6 ] ; 
 	 	 	 	 	 	 h a n d i n . s h o w d o w n _ h a n d s [ p l a y e r C o u n t ]   =   "   " ; 
 	 	 	 	 	 } 
 	 	 	 	 } 
 	 	 	 } 
 	 	 	 e l s e   i f   ( h a n d i n . s h o w d o w n L i n e s [ i ] . m a t c h ( r e S u m m a r y E x t r a c t i o n 1 [ s i t e ] ) )   { 
 	 	 	 	 p l a y e r C o u n t + + ; 
 	 	 	 	 h a n d i n . s h o w d o w n _ p l a y e r s [ p l a y e r C o u n t ]   =   R e g E x p . $ 1 ; 
 	 	 	 	 h a n d i n . s h o w d o w n _ t y p e s [ p l a y e r C o u n t ]   =   R e g E x p . $ 2 ; 
 	 	 	 	 p a r t T e m p   =   R e g E x p . $ 3 ; 
 	 	 	 	 i f   ( s i t e   = =   C E R E U S )   {   p a r t T e m p   =   R e g E x p . $ 2   +   R e g E x p . $ 3 ;   } 
 	 	 	 	 i f   ( p a r t T e m p . m a t c h ( / (   w o n   |   c o l l e c t e d   |   w i n s   ) / ) )   { 
 	 	 	 	 	 h a n d i n . s h o w d o w n _ t y p e s [ p l a y e r C o u n t ]   =   " w o n " ; 
 	 	 	 	 } 
 	 	 	 	 / / e l s e   { 
 	 	 	 	 / / 	 h a n d i n . s h o w d o w n _ t y p e s [ p l a y e r C o u n t ]   =   " l o s t " ; 
 	 	 	 	 / / } 
 	 	 	 	 h a n d i n . s h o w d o w n _ c a r d s [ p l a y e r C o u n t ]   =   n e w   A r r a y ; 
 	 	 	 	 i f   ( p a r t T e m p )   { 
 	 	 	 	 	 i f   ( p a r t T e m p . m a t c h ( r e T h e M o n e y [ s i t e ] ) )   { 
 	 	 	 	 	 	 r e s u l t C o u n t + + ; 
 	 	 	 	 	 	 h a n d i n . r e s u l t _ p l a y e r s [ r e s u l t C o u n t ]   =   h a n d i n . s h o w d o w n _ p l a y e r s [ p l a y e r C o u n t ] ; 
 	 	 	 	 	 	 h a n d i n . r e s u l t _ v a l u e s [ r e s u l t C o u n t ]   =   R e g E x p . $ 1 ; 
 	 	 	 	 	 } 
 	 	 	 	 	 i f   ( p a r t T e m p . m a t c h ( r e T D S u m m a r y E x t r a c t i o n 2 [ s i t e ] ) )   { 
 	 	 	 	 	 	 s w i t c h ( s i t e )   { 
 	 	 	 	 	 	 c a s e   P S T A R S : 
 	 	 	 	 	 	 c a s e   F T P : 
 	 	 	 	 	 	 	 i f   ( R e g E x p . $ 7 )   { 
 	 	 	 	 	 	 	 	 h a n d i n . s h o w d o w n _ h a n d s [ p l a y e r C o u n t ]   =   R e g E x p . $ 7 ; 
 	 	 	 	 	 	 	 } 
 	 	 	 	 	 	 	 h a n d i n . s h o w d o w n _ c a r d s [ p l a y e r C o u n t ] [ 0 ]   =   R e g E x p . $ 1 ; 
 	 	 	 	 	 	 	 h a n d i n . s h o w d o w n _ c a r d s [ p l a y e r C o u n t ] [ 1 ]   =   R e g E x p . $ 2 ; 
 	 	 	 	 	 	 	 h a n d i n . s h o w d o w n _ c a r d s [ p l a y e r C o u n t ] [ 2 ]   =   R e g E x p . $ 3 ; 
 	 	 	 	 	 	 	 h a n d i n . s h o w d o w n _ c a r d s [ p l a y e r C o u n t ] [ 3 ]   =   R e g E x p . $ 4 ; 
 	 	 	 	 	 	 	 h a n d i n . s h o w d o w n _ c a r d s [ p l a y e r C o u n t ] [ 4 ]   =   R e g E x p . $ 5 ; 
 	 	 	 	 	 	 	 b r e a k ; 
 	 	 	 	 	 	 c a s e   C E R E U S : 
 	 	 	 	 	 	 	 h a n d i n . s h o w d o w n _ c a r d s [ p l a y e r C o u n t ] [ 0 ]   =   R e g E x p . $ 3 ; 
 	 	 	 	 	 	 	 h a n d i n . s h o w d o w n _ c a r d s [ p l a y e r C o u n t ] [ 1 ]   =   R e g E x p . $ 4 ; 
 	 	 	 	 	 	 	 h a n d i n . s h o w d o w n _ c a r d s [ p l a y e r C o u n t ] [ 2 ]   =   R e g E x p . $ 5 ; 
 	 	 	 	 	 	 	 h a n d i n . s h o w d o w n _ c a r d s [ p l a y e r C o u n t ] [ 3 ]   =   R e g E x p . $ 6 ; 
 	 	 	 	 	 	 	 h a n d i n . s h o w d o w n _ c a r d s [ p l a y e r C o u n t ] [ 4 ]   =   R e g E x p . $ 7 ; 
 	 	 	 	 	 	 	 h a n d i n . s h o w d o w n _ h a n d s [ p l a y e r C o u n t ]   =   R e g E x p . $ 2 ; 
 	 	 	 	 	 	 	 b r e a k ; 
 	 	 	 	 	 	 } 
 	 	 	 	 	 } 
 	 	 	 	 } 
 	 	 	 	 e l s e   {   h a n d i n . s h o w d o w n _ c a r d s [ p l a y e r C o u n t ] [ 0 ]   =   ' m u c k s ' ;   } 
 	 	 	 } 
 	 	 } 
 
 	 	 / / r a k e 
 	 	 i f   ( h a n d i n . u n f o r m a t t e d . m a t c h ( r e R a k e [ s i t e ] ) )   { 
 	 	 	 h a n d i n . r a k e   =   R e g E x p . $ 1 ; 
 	 	 } 
 	 } 
 
 	 r e t u r n   h a n d i n ; 
 
 } 
 
 
 f u n c t i o n   p a r s e _ f i v e c a r d d r a w ( h a n d i n ,   s i t e )   { 
 / / C a s h   o r   t o u r n a m e n t ? 
 	 i f   ( h a n d i n . f i r s t L i n e . m a t c h ( / T o u r n a m e n t / ) )   { 
 	 	 h a n d i n . g a m e T y p e   =   " T " ; 
 	 	 / / h a n d i n . e r r o r   =   " T o u r n a m e n t   h a n d s   n o t   y e t   s u p p o r t e d . " ; 
 	 }   e l s e   { 
 	 	 h a n d i n . g a m e T y p e   =   " C " ; 
 	 } 
 
 	 / / f i n d   b l i n d s 
 	 i f   ( h a n d i n . f i r s t L i n e . m a t c h ( r e B l i n d s [ s i t e ] ) )   { 
 	 	 h a n d i n . s m a l l B l i n d   =   R e g E x p . $ 1 ; 
 	 	 h a n d i n . b i g B l i n d   =   R e g E x p . $ 2 ; 
 	 } 
 
 	 h a n d i n . s m a l l B l i n d P o s t e d A m o u n t   =   0 ; 
 	 h a n d i n . b i g B l i n d P o s t e d A m o u n t   =   0 ; 
 
 	 / / f i n d   g a m e   s i z e 
 	 i f   ( h a n d i n . u n f o r m a t t e d . m a t c h ( r e G a m e S i z e [ s i t e ] ) )   { 
 	 	 h a n d i n . g a m e S i z e   =   R e g E x p . $ 1   +   ' - m a x ' ; 
 	 } 
 	 e l s e   { 
 	 	 h a n d i n . g a m e S i z e   =   " " ; 
 	 } 
 
 	 h a n d i n . a n t e s T o t a l   =   0 ; 
 	 a n t e L i n e s   =   n e w   A r r a y ; 
 	 / / f i n d   a n t e s 
 	 a n t e T e x t   =   h a n d i n . u n f o r m a t t e d N o B r e a k s . m a t c h ( r e A n t e T e x t [ s i t e ] ) ; 
       i f   ( a n t e T e x t )   { 
 	 	 a n t e L i n e s   =   a n t e T e x t [ 1 ] . s p l i t ( /  %/ ) ; 
 	 	 n u m A n t e L i n e s   =   a n t e L i n e s . l e n g t h ; 
 	 	 f o r   ( j = 0 ; j < n u m A n t e L i n e s ; j + + )   { 
 	 	 	 i f   ( a n t e L i n e s [ j ] . m a t c h ( r e A n t e L i n e s [ s i t e ] ) )   { 
 	 	 	 	 h a n d i n . a n t e   =   R e g E x p . $ 1 ; 
 	 	 	 	 h a n d i n . a n t e s T o t a l   =   p a r s e F l o a t ( h a n d i n . a n t e s T o t a l )   +   p a r s e F l o a t ( R e g E x p . $ 1 ) ; 
 	 	 	 } 
 	 	 } 
 	 } 
 	 
 	 r e s u l t   =   h a n d i n . u n f o r m a t t e d N o B r e a k s . m a t c h ( r e S e a t i n g T e x t [ s i t e ] ) ; 
 	 i f   ( r e s u l t )   { h a n d i n . s e a t T e x t   =   r e s u l t [ 1 ] ; } 
 	 e l s e   { h a n d i n . s e a t T e x t   =   "   " ; } 
 
 	 h a n d i n . s e a t L i n e s   =   h a n d i n . s e a t T e x t . r e p l a c e ( /  %/ g ,   " \ n " ) ; 
 	 
 	 / / f i n d   n u m b e r   o f   s e a t s 
 	 s e a t s   =   h a n d i n . s e a t L i n e s . m a t c h ( r e F i n d S e a t s [ s i t e ] ) ; 
 	 h a n d i n . n u m P l a y e r s   =   s e a t s . l e n g t h ; 
 	 
 	 / /   f i n d   b u t t o n / b r i n g - i n ? 
 	 i f   ( h a n d i n . u n f o r m a t t e d . m a t c h ( r e B u t t o n [ s i t e ] ) )   { 
 	 	 h a n d i n . b u t t o n   =   R e g E x p . $ 1 ; 
 	 } 
 	 
 	 / / f i n d   p l a y e r   n a m e s   a n d   s t a c k   s i z e s 
 	 p l a y e r L i n e s   =   h a n d i n . s e a t L i n e s . m a t c h ( r e F i n d I n f o [ s i t e ] ) ; 
 	 h a n d i n . p l a y e r s   =   n e w   A r r a y ; 
 	 h a n d i n . s t a c k s   =   n e w   A r r a y ; 
 	 h a n d i n . s e a t N u m b e r s   =   n e w   A r r a y ; 
 
 	 j   =   0 ; 
 	 f o r   ( i   =   0 ;   i   <   h a n d i n . n u m P l a y e r s ;   i   =   i   +   1 )   { 
 	 	 
 	 	 i f   ( p l a y e r L i n e s [ i ] . m a t c h ( r e P l a y e r I n f o [ s i t e ] ) )   { 
 	 	 	 t h e S e a t   =   R e g E x p . $ 1 ; 
 	 	 	 t h e P l a y e r   =   R e g E x p . $ 2 ; 
 	 	 	 t h e S t a c k   =   R e g E x p . $ 3 ; 
 	 	 	 i f   ( ! ( ( p l a y e r L i n e s [ i ] . m a t c h ( / s i t t i n g   o u t / i )   & &   ( h a n d i n . g a m e T y p e   = =   " C " )   & &   ( t h e S e a t   ! =   h a n d i n . b u t t o n ) ) ) ) { 
 	 	 	 	 h a n d i n . s e a t N u m b e r s [ j ]   =   t h e S e a t ; 
 	 	 	 	 h a n d i n . p l a y e r s [ j ]   =   t h e P l a y e r ; 
 	 	 	 	 h a n d i n . s t a c k s [ j ]   =   t h e S t a c k ; 
 	 	 	 	 j + + ; 
 	 	 	 } 
 	 	 } 
 	 } 
 	 i f   ( j   >   0 )   {   h a n d i n . n u m P l a y e r s   =   j ;   } 
 
 	 / / f i n d   c a r d s 
 	 h a n d i n . h o l e C a r d s   =   n e w   A r r a y ; 
 	 v a r   m y R e g E x   =   n e w   R e g E x p ; 
 
 	 / / g e t   h e r o 
 	 f o r   ( x   =   0 ;   x   <   h a n d i n . n u m P l a y e r s ;   x + + )   { 
 	 	 h a n d i n . h o l e C a r d s [ x ]   =   n e w   A r r a y ; 
 	 	 v a r   m y R e g E x   =   n e w   R e g E x p ; 
 	 	 m y R e g E x . c o m p i l e ( r e G e t H a n d P r e [ s i t e ]   +   a d d s l a s h e s ( h a n d i n . p l a y e r s [ x ] )   +   r e T D G e t H a n d P o s t [ s i t e ] ,   " g " ) ; 
 	 	 r e s u l t   =   h a n d i n . u n f o r m a t t e d N o B r e a k s . m a t c h ( m y R e g E x ) ; 
 	 	 i f   ( r e s u l t )   { 
 	 	 	 h a n d i n . h e r o   =   h a n d i n . p l a y e r s [ x ] ; 
 	 	 	 h e r o p o s   =   x ; 
 	 	 	 x   =   h a n d i n . n u m p l a y e r s ; 
 	 	 } 
 	 } 
 
 	 / / i n i t i a l i z e   2 D   a r r a y s 
 	 h a n d i n . a c t i o n _ t y p e s   =   n e w   A r r a y ; 
 	 h a n d i n . a c t i o n _ p l a y e r s   =   n e w   A r r a y ; 
 	 h a n d i n . a c t i o n _ v a l u e s   =   n e w   A r r a y ; 
 	 h a n d i n . s h o w d o w n _ t y p e s   =   n e w   A r r a y ; 
 	 h a n d i n . a c t i o n _ a d d e d T o P o t   =   n e w   A r r a y ; 
 	 h a n d i n . a c t i o n _ p l a y e r s P o t   =   n e w   A r r a y ; 
 
 	 f o r   ( r   = 0 ; r < h a n d i n . p l a y e r s . l e n g t h ; r + + )   { 
 	 	 h a n d i n . a c t i o n _ p l a y e r s P o t [ r ]   =   0 ; 
 	 } 
 
 	 / / b u t   a d d   i n   S B 
 	 i f   ( h a n d i n . u n f o r m a t t e d . m a t c h ( r e S m a l l B l i n d [ s i t e ] ) )   { 
 	 	 h a n d i n . s m a l l B l i n d P o s t e d B y   =   R e g E x p . $ 1 ; 
 	 	 h a n d i n . s m a l l B l i n d P o s t e d A m o u n t   =   R e g E x p . $ 2 ; ; 
 	 	 / / p l a y e r I n d e x   =   h a n d i n . p l a y e r s . i n d e x O f ( h a n d i n . s m a l l B l i n d P o s t e d B y ) ; 
 	 	 p l a y e r I n d e x   =   f i n d I n d e x ( h a n d i n . p l a y e r s ,   h a n d i n . s m a l l B l i n d P o s t e d B y ) ; 
 	 	 h a n d i n . a c t i o n _ p l a y e r s P o t [ p l a y e r I n d e x ]   =   h a n d i n . s m a l l B l i n d P o s t e d A m o u n t ; 
 	 } 
 	 / / a n d   B B 
 	 i f   ( h a n d i n . u n f o r m a t t e d . m a t c h ( r e B i g B l i n d [ s i t e ] ) )   { 
 	 	 h a n d i n . b i g B l i n d P o s t e d B y   =   R e g E x p . $ 1 ; 
 	 	 h a n d i n . b i g B l i n d P o s t e d A m o u n t   =   R e g E x p . $ 2 ; 
 	 	 p l a y e r I n d e x   =   f i n d I n d e x ( h a n d i n . p l a y e r s ,   h a n d i n . b i g B l i n d P o s t e d B y ) ; 
 	 	 h a n d i n . a c t i o n _ p l a y e r s P o t [ p l a y e r I n d e x ]   =   h a n d i n . b i g B l i n d P o s t e d A m o u n t ; 
 	 	 / / f o r   t i t a n ,   f i n d   a c t i o n   n u m b e r   o f   B i g   B l i n d 
 	 	 i f   ( s i t e = = T I T A N )   { 
 	 	 	 
 	 	 	 r e B B a c t i o n   =   ' < a c t i o n   n o = \ " ( \ \ d ) \ "   p l a y e r = \ " '   + h a n d i n . b i g B l i n d P o s t e d B y + ' \ "   t y p e = \ " 2 \ " ' ; 
 	 	 	 i f   ( h a n d i n . u n f o r m a t t e d . m a t c h ( r e B B a c t i o n ) )   { 
 	 	 	 	 h a n d i n . c u r r e n t A c t i o n   =   c l e a n N u m ( R e g E x p . $ 1 ) ; 
 	 	 	 	 
 	 	 	 }     
 	 	 
 	 	 } 
 	 } 
 	 
 	 i f   ( ! h a n d i n . s m a l l B l i n d )   { 
 	 	 h a n d i n . s m a l l B l i n d   =   h a n d i n . s m a l l B l i n d P o s t e d A m o u n t ; 
 	 	 h a n d i n . b i g B l i n d   =   h a n d i n . b i g B l i n d P o s t e d A m o u n t ; 
 	 } 	 
 
 
 	 / / g e t   s t r e e t   c a r d s   n a m e d   d e s i r e 
 	 h a n d i n . c o m m u n i t y C a r d s   =   n e w   A r r a y ; 
 	 h a n d i n . c o m m u n i t y C a r d s [ 1 ]   =   n e w   A r r a y ; 
 	 c a r d C o u n t   =   0 ; 
 	 
 	 / / - - - f i r s t   s t r e e t   -   p r e d r a w 
 	 x   =   0 ; 
 	 v a r   t h i s R e g E x   =   n e w   R e g E x p ; 
 	 t h i s R e g E x . c o m p i l e ( r e S D S t r e e t M a t c h [ s i t e ] ) ; 
 	 o u t e r r e s u l t   =   t h i s R e g E x . e x e c ( h a n d i n . u n f o r m a t t e d N o B r e a k s ) ; 
 	 	 	 
 	 i f   ( ! o u t e r r e s u l t )   { 
 	 	 v a r   t h i s R e g E x   =   n e w   R e g E x p ; 
 	 	 t h i s R e g E x . c o m p i l e ( r e T D S t r e e t M a t c h A l t [ s i t e ] [ x ] ) ; 
 	 	 o u t e r r e s u l t   =   t h i s R e g E x . e x e c ( h a n d i n . u n f o r m a t t e d N o B r e a k s ) ; 
 	 } 
 	 i f   ( o u t e r r e s u l t )   { 
 	 	 
 	 	 / / t r i m   o f f   f i n a l   l i n e 
 	 	 v a r   n e w R e g E x   =   n e w   R e g E x p ; 
 	 	 n e w R e g E x . c o m p i l e ( / ( . * )  %. * ? $ / ) ; 
 	 	 t r i m m e d r e s u l t   =   n e w R e g E x . e x e c ( o u t e r r e s u l t [ 1 ] ) ; 
 	 	 
 	 	 / /   h a n d i n   =   p o k e r S t a r s P a r s e A c t i o n ( h a n d i n ,   t r i m m e d r e s u l t [ 1 ] ,   x ) ; 
 	 	 i f   ( s i t e   = =   P S T A R S )   {   h a n d i n   =   p o k e r S t a r s P a r s e A c t i o n ( h a n d i n ,   t r i m m e d r e s u l t [ 1 ] ,   x ) ;   } 
 	 	 e l s e   i f   ( s i t e   = =   F T P )   {   h a n d i n   =   f t p P a r s e A c t i o n ( h a n d i n ,   t r i m m e d r e s u l t [ 1 ] ,   x ) ;   } 
 	 	 e l s e   i f   ( s i t e   = =   C E R E U S )   {   h a n d i n   =   c e r e u s P a r s e A c t i o n ( h a n d i n ,   t r i m m e d r e s u l t [ 1 ] ,   x ) ;   } 
 	 	 e l s e   i f   ( s i t e   = =   H E M )   { h a n d i n   =   H E M P a r s e A c t i o n ( h a n d i n , t r i m m e d r e s u l t [ 1 ] , x ) ; } 
 	 	 e l s e   i f   ( s i t e   = =   T I T A N )   { h a n d i n   =   t i t a n P a r s e A c t i o n ( h a n d i n , t r i m m e d r e s u l t [ 1 ] , x ) ; } 
 	 	 v a r   m y R e g E x   =   n e w   R e g E x p ; 
 	 	 m y R e g E x . c o m p i l e ( " D e a l t   t o   "   +   a d d s l a s h e s ( h a n d i n . h e r o )   +   " (   \ \ [ ( . * ) \ \ ] ) " ) ; 
 	 	 o u t e r L i n e s   =   o u t e r r e s u l t [ 1 ] . s p l i t ( /  %/ ) ; 
 	 	 r e s u l t   =   o u t e r r e s u l t [ 1 ] . m a t c h ( m y R e g E x ) ; 
 	 	 / /   c o n s o l e . l o g ( ' r e g e x :   % s ' , m y R e g E x ) ; 
 	 	 i f   ( ! r e s u l t )   { 
 	 	 	 v a r   m y R e g E x   =   n e w   R e g E x p ; 
 	 	 	 m y R e g E x . c o m p i l e ( a d d s l a s h e s ( h a n d i n . h e r o )   +   " :   s t a n d s   p a t   o n   ( \ \ [ ( . * ) \ \ ] ) " ) ; 
 	 	 	 r e s u l t   =   o u t e r r e s u l t [ 1 ] . m a t c h ( m y R e g E x ) ; 
 	 	 } 
 	 	 i f   ( r e s u l t )   { 
 	 	 	 / /   c o n s o l e . l o g ( ' m a t c h e d ' ) ; 
 	 	 	 s u b r e s u l t   =   r e s u l t [ 1 ] . m a t c h ( / ( [ 2 - 9 T J Q K A ] [ h d s c ] ) / g ) ; 
 	 	 	 n u m R e s u l t s   = s u b r e s u l t . l e n g t h ; 
 	 	 	 f o r   ( y   = 0 ;   y < n u m R e s u l t s ;   + + y )   { 
 	 	 	 	 h a n d i n . h o l e C a r d s [ h e r o p o s ] [ h a n d i n . h o l e C a r d s [ h e r o p o s ] . l e n g t h ]   =   s u b r e s u l t [ y ] ; 
 	 	 	 } 
 	 	 } 
 	 } 
 	 / / z e r o   o u t   p l a y e r   c o n t r i b u t i o n s   t o   p o t   f o r   n e x t   s t r e e t 
 	 f o r   ( r = 0 ;   r < h a n d i n . p l a y e r s . l e n g t h ; r + + )   { 
 	 	 h a n d i n . a c t i o n _ p l a y e r s P o t [ r ]   =   0 ; 
 	 } 
 	 / / s t r e e t   m a t c h   l o o p e   e n d e d   h e r e 
 
 	 / / - - - s e c o n d   s t r e e t   -   p o s t d r a w 
 	 x   =   1 ; 
 	 / /   v a r   r e S e c o n d S t r e e t   =   a d d s l a s h e s ( t r i m m e d r e s u l t [ 1 ] )   +   ' ( . * )  %\ \ * \ \ * \ \ *   S H O W   D O W N ' ; 
 	 / /   v a r   r e S e c o n d S t r e e t A l t   =   a d d s l a s h e s ( t r i m m e d r e s u l t [ 1 ] )   +   ' ( . * )  %\ \ * \ \ * \ \ *   S U M M A R Y ' ; 
 	 v a r   t h i s R e g E x   =   n e w   R e g E x p ; 
 	 t h i s R e g E x . c o m p i l e ( a d d s l a s h e s ( t r i m m e d r e s u l t [ 1 ] )   +   r e S e c o n d S t r e e t [ s i t e ] ) ; 
 	 o u t e r r e s u l t   =   t h i s R e g E x . e x e c ( h a n d i n . u n f o r m a t t e d N o B r e a k s ) ; 
 	 	 	 
 	 i f   ( ! o u t e r r e s u l t )   { 
 	 	 v a r   t h i s R e g E x   =   n e w   R e g E x p ; 
 	 	 t h i s R e g E x . c o m p i l e ( a d d s l a s h e s ( t r i m m e d r e s u l t [ 1 ] )   +   r e S e c o n d S t r e e t A l t [ s i t e ] ) ; 
 	 	 o u t e r r e s u l t   =   t h i s R e g E x . e x e c ( h a n d i n . u n f o r m a t t e d N o B r e a k s ) ; 
 	 } 
 	 i f   ( o u t e r r e s u l t )   { 
 	 	 / /   h a n d i n   =   p o k e r S t a r s P a r s e A c t i o n ( h a n d i n ,   o u t e r r e s u l t [ 1 ] ,   x ) ; 
 	 	 i f   ( s i t e   = =   P S T A R S )   {   h a n d i n   =   p o k e r S t a r s P a r s e A c t i o n ( h a n d i n ,   o u t e r r e s u l t [ 1 ] ,   x ) ;   } 
 	 	 e l s e   i f   ( s i t e   = =   F T P )   {   h a n d i n   =   f t p P a r s e A c t i o n ( h a n d i n ,   o u t e r r e s u l t [ 1 ] ,   x ) ;   } 
 	 	 e l s e   i f   ( s i t e   = =   C E R E U S )   {   h a n d i n   =   c e r e u s P a r s e A c t i o n ( h a n d i n ,   o u t e r r e s u l t [ 1 ] ,   x ) ;   } 
 	 	 e l s e   i f   ( s i t e   = =   H E M )   { h a n d i n   =   H E M P a r s e A c t i o n ( h a n d i n , o u t e r r e s u l t [ 1 ] , x ) ; } 
 	 	 e l s e   i f   ( s i t e   = =   T I T A N )   { h a n d i n   =   t i t a n P a r s e A c t i o n ( h a n d i n , o u t e r r e s u l t [ 1 ] , x ) ; } 
 	 	 v a r   m y R e g E x   =   n e w   R e g E x p ; 
 	 	 m y R e g E x . c o m p i l e ( " D e a l t   t o   "   +   a d d s l a s h e s ( h a n d i n . h e r o )   +   " (   \ \ [ ( . * ) \ \ ] ) " ) ; 
 	 	 o u t e r L i n e s   =   o u t e r r e s u l t [ 1 ] . s p l i t ( /  %/ ) ; 
 	 	 r e s u l t   =   o u t e r r e s u l t [ 1 ] . m a t c h ( m y R e g E x ) ; 
 	 	 i f   ( ! r e s u l t )   { 
 	 	 	 v a r   m y R e g E x   =   n e w   R e g E x p ; 
 	 	 	 m y R e g E x . c o m p i l e ( a d d s l a s h e s ( h a n d i n . h e r o )   +   " :   s t a n d s   p a t   o n   ( \ \ [ ( . * ) \ \ ] ) " ) ; 
 	 	 	 r e s u l t   =   o u t e r r e s u l t [ 1 ] . m a t c h ( m y R e g E x ) ; 
 	 	 } 
 	 	 i f   ( r e s u l t )   { 
 	 	 	 s u b r e s u l t   =   r e s u l t [ 1 ] . m a t c h ( / ( [ 2 - 9 T J Q K A ] [ h d s c ] ) / g ) ; 
 	 	 	 n u m R e s u l t s   = s u b r e s u l t . l e n g t h ; 
 	 	 	 f o r   ( y   = 0 ;   y < n u m R e s u l t s ;   + + y )   { 
 	 	 	 	 h a n d i n . h o l e C a r d s [ h e r o p o s ] [ h a n d i n . h o l e C a r d s [ h e r o p o s ] . l e n g t h ]   =   s u b r e s u l t [ y ] ; 
 	 	 	 } 
 	 	 } 
 	 } 
 	 / / z e r o   o u t   p l a y e r   c o n t r i b u t i o n s   t o   p o t   f o r   n e x t   s t r e e t 
 	 f o r   ( r = 0 ; r < h a n d i n . p l a y e r s . l e n g t h ; r + + )   { 
 	 	 h a n d i n . a c t i o n _ p l a y e r s P o t [ r ]   =   0 ; 
 	 } 
 	 
 	 / / s u m m a r y 
 	 i f   ( h a n d i n . u n f o r m a t t e d N o B r e a k s . m a t c h ( r e M a t c h S u m m a r y [ s i t e ] ) )   { 
 	 	 h a n d i n . s h o w d o w n T e x t   =   R e g E x p . $ 1 ; 
 
 	 	 / / i f   ( h a n d i n . s h o w d o w n T e x t . m a t c h ( r e M a t c h S u m m a r y [ s i t e ] ) )   { 
 	 	 / / 	 h a n d i n . s h o w d o w n T e x t   =   R e g E x p . $ 1 ; 
 	 	 / / } 
 	 	 h a n d i n . s h o w d o w n L i n e s   =   h a n d i n . s h o w d o w n T e x t . s p l i t ( /  %/ ) ; 
 
 	 	 / / i n i t i a l i z e   2 D   a r r a y s 
 	 	 h a n d i n . s h o w d o w n _ h a n d s   =   n e w   A r r a y ;       / /   t w o   p a i r ,   F i v e s   a n d   F o u r s 
 	 	 h a n d i n . s h o w d o w n _ p l a y e r s   =   n e w   A r r a y ;   / /   < n i c k > 
 	 	 h a n d i n . s h o w d o w n _ c a r d s   =   n e w   A r r a y ;       / /     J h   Q s   e t c 
 	 	 h a n d i n . s h o w d o w n _ t y p e s   =   n e w   A r r a y ;       / /   w o n ,   l o s t ,   m u c k e d ,   c o l l e c t e d 
 	 	 h a n d i n . r e s u l t _ p l a y e r s   =   n e w   A r r a y ; 
 	 	 h a n d i n . r e s u l t _ v a l u e s   =   n e w   A r r a y ; 
 
 	 	 / / l o o p   t h r o u g h   s h o w d o w n   l i n e s 
 	 	 p l a y e r C o u n t   =   - 1 ; 
 	 	 r e s u l t C o u n t   =   - 1 ; 
 	 	 f o r   ( i   =   0 ;   i   <   h a n d i n . s h o w d o w n L i n e s . l e n g t h ;   i   =   i   +   1 )   { 
 	 	 	 i f   ( s i t e   = =   H E M )   { 
 	 	 	 	 i f   ( h a n d i n . s h o w d o w n L i n e s [ i ] . m a t c h ( r e S u m m a r y E x t r a c t i o n 1 [ s i t e ] ) )   { 
 	 	 	 	 	 m   =   f i n d I n d e x ( h a n d i n . s h o w d o w n _ p l a y e r s , R e g E x p . $ 1 ) ; 
 	 	 	 	 	 i f   ( m   = =   - 1 )   {   m   =   + + p l a y e r c o u n t ;   } 
 	 	 	 	 	 / / p l a y e r C o u n t + + ; 
 	 	 	 	 	 h a n d i n . s h o w d o w n _ p l a y e r s [ m ]   =   R e g E x p . $ 1 ; 
 	 	 	 	 	 h a n d i n . s h o w d o w n _ t y p e s [ m ]   =   " w o n " ; 
 	 	 	 	 	 i f   ( h a n d i n . s h o w d o w n L i n e s [ i ] . m a t c h ( r e T h e M o n e y [ s i t e ] ) )   { 
 	 	 	 	 	 	 r e s u l t C o u n t + + ; 
 	 	 	 	 	 	 h a n d i n . r e s u l t _ p l a y e r s [ r e s u l t C o u n t ]   =   h a n d i n . s h o w d o w n _ p l a y e r s [ m ] ; 
 	 	 	 	 	 	 h a n d i n . r e s u l t _ v a l u e s [ r e s u l t C o u n t ]   =   R e g E x p . $ 1 ; 
 	 	 	 	 	 } 
 	 	 	 	 } 
 	 	 	 	 e l s e   i f   ( r e s u l t   =   h a n d i n . s h o w d o w n L i n e s [ i ] . m a t c h ( r e T D S u m m a r y E x t r a c t i o n 2 [ s i t e ] ) )   { 
 	 	 	 	 	 m   =   f i n d I n d e x ( h a n d i n . s h o w d o w n _ p l a y e r s , r e s u l t [ 1 ] ) ; 
 	 	 	 	 	 i f   ( m   >   - 1 )   { 
 	 	 	 	 	 	 h a n d i n . s h o w d o w n _ c a r d s [ m ]   =   n e w   A r r a y ; 
 	 	 	 	 	 	 h a n d i n . s h o w d o w n _ c a r d s [ m ] [ 0 ]   =   r e s u l t [ 2 ] ; 
 	 	 	 	 	 	 h a n d i n . s h o w d o w n _ c a r d s [ m ] [ 1 ]   =   r e s u l t [ 3 ] ; 
 	 	 	 	 	 	 h a n d i n . s h o w d o w n _ c a r d s [ m ] [ 2 ]   =   r e s u l t [ 4 ] ; 
 	 	 	 	 	 	 h a n d i n . s h o w d o w n _ c a r d s [ m ] [ 3 ]   =   r e s u l t [ 5 ] ; 
 	 	 	 	 	 	 h a n d i n . s h o w d o w n _ c a r d s [ m ] [ 4 ]   =   r e s u l t [ 6 ] ; 
 	 	 	 	 	 	 h a n d i n . s h o w d o w n _ h a n d s [ m ]   =   "   " ; 
 	 	 	 	 	 } 
 	 	 	 	 	 e l s e   { 
 	 	 	 	 	 	 p l a y e r C o u n t + + ; 
 	 	 	 	 	 	 h a n d i n . s h o w d o w n _ c a r d s [ p l a y e r C o u n t ]   =   n e w   A r r a y ; 
 	 	 	 	 	 	 h a n d i n . s h o w d o w n _ p l a y e r s [ p l a y e r C o u n t ]   =   r e s u l t [ 1 ] ; 
 	 	 	 	 	 	 h a n d i n . s h o w d o w n _ t y p e s [ p l a y e r C o u n t ]   =   " l o s t " ; 
 	 	 	 	 	 	 h a n d i n . s h o w d o w n _ c a r d s [ p l a y e r C o u n t ] [ 0 ]   =   r e s u l t [ 2 ] ; 
 	 	 	 	 	 	 h a n d i n . s h o w d o w n _ c a r d s [ p l a y e r C o u n t ] [ 1 ]   =   r e s u l t [ 3 ] ; 
 	 	 	 	 	 	 h a n d i n . s h o w d o w n _ c a r d s [ p l a y e r C o u n t ] [ 2 ]   =   r e s u l t [ 4 ] ; 
 	 	 	 	 	 	 h a n d i n . s h o w d o w n _ c a r d s [ p l a y e r C o u n t ] [ 3 ]   =   r e s u l t [ 5 ] ; 
 	 	 	 	 	 	 h a n d i n . s h o w d o w n _ c a r d s [ p l a y e r C o u n t ] [ 4 ]   =   r e s u l t [ 6 ] ; 
 	 	 	 	 	 	 h a n d i n . s h o w d o w n _ h a n d s [ p l a y e r C o u n t ]   =   "   " ; 
 	 	 	 	 	 } 
 	 	 	 	 } 
 	 	 	 } 
 	 	 	 e l s e   i f   ( h a n d i n . s h o w d o w n L i n e s [ i ] . m a t c h ( r e S u m m a r y E x t r a c t i o n 1 [ s i t e ] ) )   { 
 	 	 	 	 p l a y e r C o u n t + + ; 
 	 	 	 	 h a n d i n . s h o w d o w n _ p l a y e r s [ p l a y e r C o u n t ]   =   R e g E x p . $ 1 ; 
 	 	 	 	 h a n d i n . s h o w d o w n _ t y p e s [ p l a y e r C o u n t ]   =   R e g E x p . $ 2 ; 
 	 	 	 	 p a r t T e m p   =   R e g E x p . $ 3 ; 
 	 	 	 	 i f   ( s i t e   = =   C E R E U S )   {   p a r t T e m p   =   R e g E x p . $ 2   +   R e g E x p . $ 3 ;   } 
 	 	 	 	 i f   ( p a r t T e m p . m a t c h ( / (   w o n   |   c o l l e c t e d   |   w i n s   ) / ) )   { 
 	 	 	 	 	 h a n d i n . s h o w d o w n _ t y p e s [ p l a y e r C o u n t ]   =   " w o n " ; 
 	 	 	 	 } 
 	 	 	 	 / / e l s e   { 
 	 	 	 	 / / 	 h a n d i n . s h o w d o w n _ t y p e s [ p l a y e r C o u n t ]   =   " l o s t " ; 
 	 	 	 	 / / } 
 	 	 	 	 h a n d i n . s h o w d o w n _ c a r d s [ p l a y e r C o u n t ]   =   n e w   A r r a y ; 
 	 	 	 	 i f   ( p a r t T e m p )   { 
 	 	 	 	 	 i f   ( p a r t T e m p . m a t c h ( r e T h e M o n e y [ s i t e ] ) )   { 
 	 	 	 	 	 	 r e s u l t C o u n t + + ; 
 	 	 	 	 	 	 h a n d i n . r e s u l t _ p l a y e r s [ r e s u l t C o u n t ]   =   h a n d i n . s h o w d o w n _ p l a y e r s [ p l a y e r C o u n t ] ; 
 	 	 	 	 	 	 h a n d i n . r e s u l t _ v a l u e s [ r e s u l t C o u n t ]   =   R e g E x p . $ 1 ; 
 	 	 	 	 	 } 
 	 	 	 	 	 i f   ( p a r t T e m p . m a t c h ( r e T D S u m m a r y E x t r a c t i o n 2 [ s i t e ] ) )   { 
 	 	 	 	 	 	 s w i t c h ( s i t e )   { 
 	 	 	 	 	 	 c a s e   P S T A R S : 
 	 	 	 	 	 	 c a s e   F T P : 
 	 	 	 	 	 	 	 i f   ( R e g E x p . $ 7 )   { 
 	 	 	 	 	 	 	 	 h a n d i n . s h o w d o w n _ h a n d s [ p l a y e r C o u n t ]   =   R e g E x p . $ 7 ; 
 	 	 	 	 	 	 	 } 
 	 	 	 	 	 	 	 h a n d i n . s h o w d o w n _ c a r d s [ p l a y e r C o u n t ] [ 0 ]   =   R e g E x p . $ 1 ; 
 	 	 	 	 	 	 	 h a n d i n . s h o w d o w n _ c a r d s [ p l a y e r C o u n t ] [ 1 ]   =   R e g E x p . $ 2 ; 
 	 	 	 	 	 	 	 h a n d i n . s h o w d o w n _ c a r d s [ p l a y e r C o u n t ] [ 2 ]   =   R e g E x p . $ 3 ; 
 	 	 	 	 	 	 	 h a n d i n . s h o w d o w n _ c a r d s [ p l a y e r C o u n t ] [ 3 ]   =   R e g E x p . $ 4 ; 
 	 	 	 	 	 	 	 h a n d i n . s h o w d o w n _ c a r d s [ p l a y e r C o u n t ] [ 4 ]   =   R e g E x p . $ 5 ; 
 	 	 	 	 	 	 	 b r e a k ; 
 	 	 	 	 	 	 c a s e   C E R E U S : 
 	 	 	 	 	 	 	 h a n d i n . s h o w d o w n _ c a r d s [ p l a y e r C o u n t ] [ 0 ]   =   R e g E x p . $ 3 ; 
 	 	 	 	 	 	 	 h a n d i n . s h o w d o w n _ c a r d s [ p l a y e r C o u n t ] [ 1 ]   =   R e g E x p . $ 4 ; 
 	 	 	 	 	 	 	 h a n d i n . s h o w d o w n _ c a r d s [ p l a y e r C o u n t ] [ 2 ]   =   R e g E x p . $ 5 ; 
 	 	 	 	 	 	 	 h a n d i n . s h o w d o w n _ c a r d s [ p l a y e r C o u n t ] [ 3 ]   =   R e g E x p . $ 6 ; 
 	 	 	 	 	 	 	 h a n d i n . s h o w d o w n _ c a r d s [ p l a y e r C o u n t ] [ 4 ]   =   R e g E x p . $ 7 ; 
 	 	 	 	 	 	 	 h a n d i n . s h o w d o w n _ h a n d s [ p l a y e r C o u n t ]   =   R e g E x p . $ 2 ; 
 	 	 	 	 	 	 	 b r e a k ; 
 	 	 	 	 	 	 } 
 	 	 	 	 	 } 
 	 	 	 	 } 
 	 	 	 	 e l s e   {   h a n d i n . s h o w d o w n _ c a r d s [ p l a y e r C o u n t ] [ 0 ]   =   ' m u c k s ' ;   } 
 	 	 	 } 
 	 	 } 
 
 	 	 / / r a k e 
 	 	 i f   ( h a n d i n . u n f o r m a t t e d . m a t c h ( r e R a k e [ s i t e ] ) )   { 
 	 	 	 h a n d i n . r a k e   =   R e g E x p . $ 1 ; 
 	 	 } 
 	 } 
 
 	 r e t u r n   h a n d i n ; 
 
 } 
 
 
 f u n c t i o n   p a r s e _ b a d u g i ( h a n d i n ,   s i t e )   { 
 	 
 	 / / C a s h   o r   t o u r n a m e n t ? 
 	 i f   ( h a n d i n . f i r s t L i n e . m a t c h ( / T o u r n a m e n t / ) )   { 
 	 	 h a n d i n . g a m e T y p e   =   " T " ; 
 	 	 / / h a n d i n . e r r o r   =   " T o u r n a m e n t   h a n d s   n o t   y e t   s u p p o r t e d . " ; 
 	 }   e l s e   { 
 	 	 h a n d i n . g a m e T y p e   =   " C " ; 
 	 } 
 
 	 / / f i n d   b l i n d s 
 	 i f   ( h a n d i n . f i r s t L i n e . m a t c h ( r e B l i n d s [ s i t e ] ) )   { 
 	 	 h a n d i n . s m a l l B l i n d   =   R e g E x p . $ 1 ; 
 	 	 h a n d i n . b i g B l i n d   =   R e g E x p . $ 2 ; 
 	 } 
 
 	 h a n d i n . s m a l l B l i n d P o s t e d A m o u n t   =   0 ; 
 	 h a n d i n . b i g B l i n d P o s t e d A m o u n t   =   0 ; 
 
 	 / / f i n d   g a m e   s i z e 
 	 i f   ( h a n d i n . u n f o r m a t t e d . m a t c h ( r e G a m e S i z e [ s i t e ] ) )   { 
 	 	 h a n d i n . g a m e S i z e   =   R e g E x p . $ 1   +   ' - m a x ' ; 
 	 } 
 	 e l s e   { 
 	 	 h a n d i n . g a m e S i z e   =   " " ; 
 	 } 
 
 	 h a n d i n . a n t e s T o t a l   =   0 ; 
 	 a n t e L i n e s   =   n e w   A r r a y ; 
 	 / / f i n d   a n t e s 
 	 a n t e T e x t   =   h a n d i n . u n f o r m a t t e d N o B r e a k s . m a t c h ( r e A n t e T e x t [ s i t e ] ) ; 
 	 a n t e L i n e s   =   a n t e T e x t [ 1 ] . s p l i t ( /  %/ ) ; 
 	 n u m A n t e L i n e s   =   a n t e L i n e s . l e n g t h ; 
 	 	 f o r   ( j = 0 ; j < n u m A n t e L i n e s ; + + j )   { 
 	 	 i f   ( a n t e L i n e s [ j ] . m a t c h ( r e A n t e L i n e s [ s i t e ] ) )   { 
 	 	 	 h a n d i n . a n t e   =   R e g E x p . $ 1 ; 
 	 	 	 h a n d i n . a n t e s T o t a l   =   p a r s e F l o a t ( h a n d i n . a n t e s T o t a l )   +   p a r s e F l o a t ( R e g E x p . $ 1 ) ; 
 	 	 } 
 	 } 
 	 
 	 r e s u l t   =   h a n d i n . u n f o r m a t t e d N o B r e a k s . m a t c h ( r e S e a t i n g T e x t [ s i t e ] ) ; 
 	 i f   ( r e s u l t )   { h a n d i n . s e a t T e x t   =   r e s u l t [ 1 ] ; } 
 	 e l s e   { h a n d i n . s e a t T e x t   =   "   " ; } 
 
 	 h a n d i n . s e a t L i n e s   =   h a n d i n . s e a t T e x t . r e p l a c e ( /  %/ g ,   " \ n " ) ; 
 	 
 	 / / f i n d   n u m b e r   o f   s e a t s 
 	 s e a t s   =   h a n d i n . s e a t L i n e s . m a t c h ( r e F i n d S e a t s [ s i t e ] ) ; 
 	 h a n d i n . n u m P l a y e r s   =   s e a t s . l e n g t h ; 
 	 
 	 / /   f i n d   b u t t o n / b r i n g - i n ? 
 	 i f   ( h a n d i n . u n f o r m a t t e d . m a t c h ( r e B u t t o n [ s i t e ] ) )   { 
 	 	 h a n d i n . b u t t o n   =   R e g E x p . $ 1 ; 
 	 } 
 	 
 	 / / f i n d   p l a y e r   n a m e s   a n d   s t a c k   s i z e s 
 	 p l a y e r L i n e s   =   h a n d i n . s e a t L i n e s . m a t c h ( r e F i n d I n f o [ s i t e ] ) ; 
 	 h a n d i n . p l a y e r s   =   n e w   A r r a y ; 
 	 h a n d i n . s t a c k s   =   n e w   A r r a y ; 
 	 h a n d i n . s e a t N u m b e r s   =   n e w   A r r a y ; 
 
 	 j   =   0 ; 
 	 f o r   ( i   =   0 ;   i   <   h a n d i n . n u m P l a y e r s ;   i   =   i   +   1 )   { 
 	 	 
 	 	 i f   ( p l a y e r L i n e s [ i ] . m a t c h ( r e P l a y e r I n f o [ s i t e ] ) )   { 
 	 	 	 t h e S e a t   =   R e g E x p . $ 1 ; 
 	 	 	 t h e P l a y e r   =   R e g E x p . $ 2 ; 
 	 	 	 t h e S t a c k   =   R e g E x p . $ 3 ; 
 	 	 	 i f   ( ! ( ( p l a y e r L i n e s [ i ] . m a t c h ( / s i t t i n g   o u t / i )   & &   ( h a n d i n . g a m e T y p e   = =   " C " )   & &   ( t h e S e a t   ! =   h a n d i n . b u t t o n ) ) ) ) { 
 	 	 	 	 h a n d i n . s e a t N u m b e r s [ j ]   =   t h e S e a t ; 
 	 	 	 	 h a n d i n . p l a y e r s [ j ]   =   t h e P l a y e r ; 
 	 	 	 	 h a n d i n . s t a c k s [ j ]   =   t h e S t a c k ; 
 	 	 	 	 j + + ; 
 	 	 	 } 
 	 	 } 
 	 } 
 	 i f   ( j   >   0 )   {   h a n d i n . n u m P l a y e r s   =   j ;   } 
 
 	 / / f i n d   c a r d s 
 	 h a n d i n . h o l e C a r d s   =   n e w   A r r a y ; 
 
 	 / / g e t   h e r o 
 	 f o r   ( x   =   0 ;   x   <   h a n d i n . n u m P l a y e r s ;   x + + )   { 
 	 	 h a n d i n . h o l e C a r d s [ x ]   =   n e w   A r r a y ; 
 	 	 v a r   m y R e g E x   =   n e w   R e g E x p ; 
 	 	 m y R e g E x . c o m p i l e ( r e G e t H a n d P r e [ s i t e ]   +   h a n d i n . p l a y e r s [ x ]   +   r e B a d u g i G e t H a n d P o s t [ s i t e ] ,   " g " ) ; 
 	 	 r e s u l t   =   h a n d i n . u n f o r m a t t e d N o B r e a k s . m a t c h ( m y R e g E x ) ; 
 	 	 i f   ( r e s u l t )   { 
 	 	 	 h a n d i n . h e r o   =   h a n d i n . p l a y e r s [ x ] ; 
 	 	 	 h e r o p o s   =   x ; 
 	 	 	 x   =   h a n d i n . n u m p l a y e r s ; 
 	 	 } 
 	 } 
 
 	 / / i n i t i a l i z e   2 D   a r r a y s 
 	 h a n d i n . a c t i o n _ t y p e s   =   n e w   A r r a y ; 
 	 h a n d i n . a c t i o n _ p l a y e r s   =   n e w   A r r a y ; 
 	 h a n d i n . a c t i o n _ v a l u e s   =   n e w   A r r a y ; 
 	 h a n d i n . s h o w d o w n _ t y p e s   =   n e w   A r r a y ; 
 	 h a n d i n . a c t i o n _ a d d e d T o P o t   =   n e w   A r r a y ; 
 	 h a n d i n . a c t i o n _ p l a y e r s P o t   =   n e w   A r r a y ; 
 
 	 f o r   ( r = 0 ;   r < h a n d i n . p l a y e r s . l e n g t h ; r + + )   { 
 	 	 h a n d i n . a c t i o n _ p l a y e r s P o t [ r ]   =   0 ; 
 	 } 
 
 	 / / b u t   a d d   i n   S B 
 	 i f   ( h a n d i n . u n f o r m a t t e d . m a t c h ( r e S m a l l B l i n d [ s i t e ] ) )   { 
 	 	 h a n d i n . s m a l l B l i n d P o s t e d B y   =   R e g E x p . $ 1 ; 
 	 	 h a n d i n . s m a l l B l i n d P o s t e d A m o u n t   =   R e g E x p . $ 2 ; ; 
 	 	 / / p l a y e r I n d e x   =   h a n d i n . p l a y e r s . i n d e x O f ( h a n d i n . s m a l l B l i n d P o s t e d B y ) ; 
 	 	 p l a y e r I n d e x   =   f i n d I n d e x ( h a n d i n . p l a y e r s ,   h a n d i n . s m a l l B l i n d P o s t e d B y ) ; 
 	 	 h a n d i n . a c t i o n _ p l a y e r s P o t [ p l a y e r I n d e x ]   =   h a n d i n . s m a l l B l i n d P o s t e d A m o u n t ; 
 	 } 
 	 / / a n d   B B 
 	 i f   ( h a n d i n . u n f o r m a t t e d . m a t c h ( r e B i g B l i n d [ s i t e ] ) )   { 
 	 	 h a n d i n . b i g B l i n d P o s t e d B y   =   R e g E x p . $ 1 ; 
 	 	 h a n d i n . b i g B l i n d P o s t e d A m o u n t   =   R e g E x p . $ 2 ; 
 	 	 p l a y e r I n d e x   =   f i n d I n d e x ( h a n d i n . p l a y e r s ,   h a n d i n . b i g B l i n d P o s t e d B y ) ; 
 	 	 h a n d i n . a c t i o n _ p l a y e r s P o t [ p l a y e r I n d e x ]   =   h a n d i n . b i g B l i n d P o s t e d A m o u n t ; 
 	 	 / / f o r   t i t a n ,   f i n d   a c t i o n   n u m b e r   o f   B i g   B l i n d 
 	 	 i f   ( s i t e = = T I T A N )   { 
 	 	 	 
 	 	 	 r e B B a c t i o n   =   ' < a c t i o n   n o = \ " ( \ \ d ) \ "   p l a y e r = \ " '   + h a n d i n . b i g B l i n d P o s t e d B y + ' \ "   t y p e = \ " 2 \ " ' ; 
 	 	 	 i f   ( h a n d i n . u n f o r m a t t e d . m a t c h ( r e B B a c t i o n ) )   { 
 	 	 	 	 h a n d i n . c u r r e n t A c t i o n   =   c l e a n N u m ( R e g E x p . $ 1 ) ; 
 	 	 	 	 
 	 	 	 }     
 	 	 
 	 	 } 
 	 } 
 	 
 	 i f   ( ! h a n d i n . s m a l l B l i n d )   { 
 	 	 h a n d i n . s m a l l B l i n d   =   h a n d i n . s m a l l B l i n d P o s t e d A m o u n t ; 
 	 	 h a n d i n . b i g B l i n d   =   h a n d i n . b i g B l i n d P o s t e d A m o u n t ; 
 	 } 	 
 
 	 / / g e t   s t r e e t   c a r d s   n a m e d   d e s i r e 
 	 h a n d i n . c o m m u n i t y C a r d s   =   n e w   A r r a y ; 
 	 h a n d i n . c o m m u n i t y C a r d s [ 1 ]   =   n e w   A r r a y ; 
 	 c a r d C o u n t   =   0 ; 
 	 v a r   t h i s R e g E x   =   n e w   R e g E x p ; 
 	 f o r   ( x   = 0 ; x < r e T D S t r e e t M a t c h [ s i t e ] . l e n g t h ; x + + )   { 
 	 	 v a r   t h i s R e g E x   =   n e w   R e g E x p ; 
 	 	 t h i s R e g E x . c o m p i l e ( r e T D S t r e e t M a t c h [ s i t e ] [ x ] ) ; 
 	 	 o u t e r r e s u l t   =   t h i s R e g E x . e x e c ( h a n d i n . u n f o r m a t t e d N o B r e a k s ) ; 
 	 	 i f   ( ! o u t e r r e s u l t )   { 
 	 	 	 v a r   t h i s R e g E x   =   n e w   R e g E x p ; 
 	 	 	 t h i s R e g E x . c o m p i l e ( r e T D S t r e e t M a t c h A l t [ s i t e ] [ x ] ) ; 
 	 	 	 o u t e r r e s u l t   =   t h i s R e g E x . e x e c ( h a n d i n . u n f o r m a t t e d N o B r e a k s ) ; 
 	 	 } 
 	 	 i f   ( o u t e r r e s u l t )   { 
 	 	 	 / /   h a n d i n   =   p o k e r S t a r s P a r s e A c t i o n ( h a n d i n ,   o u t e r r e s u l t [ 1 ] ,   x ) ; 
 	 	 	 i f   ( s i t e   = =   P S T A R S )   {   h a n d i n   =   p o k e r S t a r s P a r s e A c t i o n ( h a n d i n ,   o u t e r r e s u l t [ 1 ] ,   x ) ;   } 
 	 	 	 e l s e   i f   ( s i t e   = =   F T P )   {   h a n d i n   =   f t p P a r s e A c t i o n ( h a n d i n ,   o u t e r r e s u l t [ 1 ] ,   x ) ;   } 
 	 	 	 e l s e   i f   ( s i t e   = =   C E R E U S )   {   h a n d i n   =   c e r e u s P a r s e A c t i o n ( h a n d i n ,   o u t e r r e s u l t [ 1 ] ,   x ) ;   } 
 	 	 	 e l s e   i f   ( s i t e   = =   H E M )   { h a n d i n   =   H E M P a r s e A c t i o n ( h a n d i n , o u t e r r e s u l t [ 1 ] , x ) ; } 
 	 	 	 e l s e   i f   ( s i t e   = =   T I T A N )   { h a n d i n   =   t i t a n P a r s e A c t i o n ( h a n d i n , o u t e r r e s u l t [ 1 ] , x ) ; } 
 	 	 	 v a r   m y R e g E x   =   n e w   R e g E x p ; 
 	 	 	 m y R e g E x . c o m p i l e ( " D e a l t   t o   "   +   a d d s l a s h e s ( h a n d i n . h e r o )   +   " (   \ \ [ ( . * ) \ \ ] ) " ) ; 
 	 	 	 o u t e r L i n e s   =   o u t e r r e s u l t [ 1 ] . s p l i t ( /  %/ ) ; 
 	 	 	 r e s u l t   =   o u t e r r e s u l t [ 1 ] . m a t c h ( m y R e g E x ) ; 
 	 	 	 i f   ( ! r e s u l t )   { 
 	 	 	 	 v a r   m y R e g E x   =   n e w   R e g E x p ; 
 	 	 	 	 m y R e g E x . c o m p i l e ( a d d s l a s h e s ( h a n d i n . h e r o )   +   " :   s t a n d s   p a t   o n   ( \ \ [ ( . * ) \ \ ] ) " ) ; 
 	 	 	 	 r e s u l t   =   o u t e r r e s u l t [ 1 ] . m a t c h ( m y R e g E x ) ; 
 	 	 	 } 
 	 	 	 i f   ( r e s u l t )   { 
 	 	 	 	 s u b r e s u l t   =   r e s u l t [ 1 ] . m a t c h ( / ( [ 2 - 9 T J Q K A ] [ h d s c ] ) / g ) ; 
 	 	 	 	 n u m R e s u l t s   = s u b r e s u l t . l e n g t h ; 
 	 	 	 	 f o r   ( y   = 0 ;   y < n u m R e s u l t s ;   + + y )   { 
 	 	 	 	 	 h a n d i n . h o l e C a r d s [ h e r o p o s ] [ h a n d i n . h o l e C a r d s [ h e r o p o s ] . l e n g t h ]   =   s u b r e s u l t [ y ] ; 
 	 	 	 	 } 
 	 	 	 } 
 	 	 } 
 	 	 / / z e r o   o u t   p l a y e r   c o n t r i b u t i o n s   t o   p o t   f o r   n e x t   s t r e e t 
 	 	 f o r   ( r = 0 ;   r < h a n d i n . p l a y e r s . l e n g t h ; r + + )   { 
 	 	 	 h a n d i n . a c t i o n _ p l a y e r s P o t [ r ]   =   0 ; 
 	 	 } 
 	 } 
 
 	 / / s u m m a r y 
 	 i f   ( h a n d i n . u n f o r m a t t e d N o B r e a k s . m a t c h ( r e M a t c h S u m m a r y [ s i t e ] ) )   { 
 	 	 h a n d i n . s h o w d o w n T e x t   =   R e g E x p . $ 1 ; 
 
 	 	 / / i f   ( h a n d i n . s h o w d o w n T e x t . m a t c h ( r e M a t c h S u m m a r y [ s i t e ] ) )   { 
 	 	 / / 	 h a n d i n . s h o w d o w n T e x t   =   R e g E x p . $ 1 ; 
 	 	 / / } 
 	 	 h a n d i n . s h o w d o w n L i n e s   =   h a n d i n . s h o w d o w n T e x t . s p l i t ( /  %/ ) ; 
 
 	 	 / / i n i t i a l i z e   2 D   a r r a y s 
 	 	 h a n d i n . s h o w d o w n _ h a n d s   =   n e w   A r r a y ;       / /   t w o   p a i r ,   F i v e s   a n d   F o u r s 
 	 	 h a n d i n . s h o w d o w n _ p l a y e r s   =   n e w   A r r a y ;   / /   < n i c k > 
 	 	 h a n d i n . s h o w d o w n _ c a r d s   =   n e w   A r r a y ;       / /     J h   Q s   e t c 
 	 	 h a n d i n . s h o w d o w n _ t y p e s   =   n e w   A r r a y ;       / /   w o n ,   l o s t ,   m u c k e d ,   c o l l e c t e d 
 	 	 h a n d i n . r e s u l t _ p l a y e r s   =   n e w   A r r a y ; 
 	 	 h a n d i n . r e s u l t _ v a l u e s   =   n e w   A r r a y ; 
 
 	 	 / / l o o p   t h r o u g h   s h o w d o w n   l i n e s 
 	 	 p l a y e r C o u n t   =   - 1 ; 
 	 	 r e s u l t C o u n t   =   - 1 ; 
 	 	 f o r   ( i   =   0 ;   i   <   h a n d i n . s h o w d o w n L i n e s . l e n g t h ;   i   =   i   +   1 )   { 
 	 	 	 i f   ( s i t e   = =   H E M )   { 
 	 	 	 	 i f   ( h a n d i n . s h o w d o w n L i n e s [ i ] . m a t c h ( r e S u m m a r y E x t r a c t i o n 1 [ s i t e ] ) )   { 
 	 	 	 	 	 m   =   f i n d I n d e x ( h a n d i n . s h o w d o w n _ p l a y e r s , R e g E x p . $ 1 ) ; 
 	 	 	 	 	 i f   ( m   = =   - 1 )   {   m   =   + + p l a y e r c o u n t ;   } 
 	 	 	 	 	 / / p l a y e r C o u n t + + ; 
 	 	 	 	 	 h a n d i n . s h o w d o w n _ p l a y e r s [ m ]   =   R e g E x p . $ 1 ; 
 	 	 	 	 	 h a n d i n . s h o w d o w n _ t y p e s [ m ]   =   " w o n " ; 
 	 	 	 	 	 i f   ( h a n d i n . s h o w d o w n L i n e s [ i ] . m a t c h ( r e T h e M o n e y [ s i t e ] ) )   { 
 	 	 	 	 	 	 r e s u l t C o u n t + + ; 
 	 	 	 	 	 	 h a n d i n . r e s u l t _ p l a y e r s [ r e s u l t C o u n t ]   =   h a n d i n . s h o w d o w n _ p l a y e r s [ m ] ; 
 	 	 	 	 	 	 h a n d i n . r e s u l t _ v a l u e s [ r e s u l t C o u n t ]   =   R e g E x p . $ 1 ; 
 	 	 	 	 	 } 
 	 	 	 	 } 
 	 	 	 	 e l s e   i f   ( r e s u l t   =   h a n d i n . s h o w d o w n L i n e s [ i ] . m a t c h ( r e B a d u g i S u m m a r y E x t r a c t i o n 2 [ s i t e ] ) )   { 
 	 	 	 	 	 m   =   f i n d I n d e x ( h a n d i n . s h o w d o w n _ p l a y e r s , r e s u l t [ 1 ] ) ; 
 	 	 	 	 	 i f   ( m   >   - 1 )   { 
 	 	 	 	 	 	 h a n d i n . s h o w d o w n _ c a r d s [ m ]   =   n e w   A r r a y ; 
 	 	 	 	 	 	 h a n d i n . s h o w d o w n _ c a r d s [ m ] [ 0 ]   =   r e s u l t [ 2 ] ; 
 	 	 	 	 	 	 h a n d i n . s h o w d o w n _ c a r d s [ m ] [ 1 ]   =   r e s u l t [ 3 ] ; 
 	 	 	 	 	 	 h a n d i n . s h o w d o w n _ c a r d s [ m ] [ 2 ]   =   r e s u l t [ 4 ] ; 
 	 	 	 	 	 	 h a n d i n . s h o w d o w n _ c a r d s [ m ] [ 3 ]   =   r e s u l t [ 5 ] ; 
 	 	 	 	 	 	 h a n d i n . s h o w d o w n _ h a n d s [ m ]   =   "   " ; 
 	 	 	 	 	 } 
 	 	 	 	 	 e l s e   { 
 	 	 	 	 	 	 p l a y e r C o u n t + + ; 
 	 	 	 	 	 	 h a n d i n . s h o w d o w n _ c a r d s [ p l a y e r C o u n t ]   =   n e w   A r r a y ; 
 	 	 	 	 	 	 h a n d i n . s h o w d o w n _ p l a y e r s [ p l a y e r C o u n t ]   =   r e s u l t [ 1 ] ; 
 	 	 	 	 	 	 h a n d i n . s h o w d o w n _ t y p e s [ p l a y e r C o u n t ]   =   " l o s t " ; 
 	 	 	 	 	 	 h a n d i n . s h o w d o w n _ c a r d s [ p l a y e r C o u n t ] [ 0 ]   =   r e s u l t [ 2 ] ; 
 	 	 	 	 	 	 h a n d i n . s h o w d o w n _ c a r d s [ p l a y e r C o u n t ] [ 1 ]   =   r e s u l t [ 3 ] ; 
 	 	 	 	 	 	 h a n d i n . s h o w d o w n _ c a r d s [ p l a y e r C o u n t ] [ 2 ]   =   r e s u l t [ 4 ] ; 
 	 	 	 	 	 	 h a n d i n . s h o w d o w n _ c a r d s [ p l a y e r C o u n t ] [ 3 ]   =   r e s u l t [ 5 ] ; 
 	 	 	 	 	 	 h a n d i n . s h o w d o w n _ h a n d s [ p l a y e r C o u n t ]   =   "   " ; 
 	 	 	 	 	 } 
 	 	 	 	 } 
 	 	 	 } 
 	 	 	 e l s e   i f   ( h a n d i n . s h o w d o w n L i n e s [ i ] . m a t c h ( r e S u m m a r y E x t r a c t i o n 1 [ s i t e ] ) )   { 
 	 	 	 	 p l a y e r C o u n t + + ; 
 	 	 	 	 h a n d i n . s h o w d o w n _ p l a y e r s [ p l a y e r C o u n t ]   =   R e g E x p . $ 1 ; 
 	 	 	 	 h a n d i n . s h o w d o w n _ t y p e s [ p l a y e r C o u n t ]   =   R e g E x p . $ 2 ; 
 	 	 	 	 p a r t T e m p   =   R e g E x p . $ 3 ; 
 	 	 	 	 i f   ( s i t e   = =   C E R E U S )   {   p a r t T e m p   =   R e g E x p . $ 2   +   R e g E x p . $ 3 ;   } 
 	 	 	 	 i f   ( p a r t T e m p . m a t c h ( / (   w o n   |   c o l l e c t e d   |   w i n s   ) / ) )   { 
 	 	 	 	 	 h a n d i n . s h o w d o w n _ t y p e s [ p l a y e r C o u n t ]   =   " w o n " ; 
 	 	 	 	 } 
 	 	 	 	 / / e l s e   { 
 	 	 	 	 / / 	 h a n d i n . s h o w d o w n _ t y p e s [ p l a y e r C o u n t ]   =   " l o s t " ; 
 	 	 	 	 / / } 
 	 	 	 	 h a n d i n . s h o w d o w n _ c a r d s [ p l a y e r C o u n t ]   =   n e w   A r r a y ; 
 	 	 	 	 i f   ( p a r t T e m p )   { 
 	 	 	 	 	 i f   ( p a r t T e m p . m a t c h ( r e T h e M o n e y [ s i t e ] ) )   { 
 	 	 	 	 	 	 r e s u l t C o u n t + + ; 
 	 	 	 	 	 	 h a n d i n . r e s u l t _ p l a y e r s [ r e s u l t C o u n t ]   =   h a n d i n . s h o w d o w n _ p l a y e r s [ p l a y e r C o u n t ] ; 
 	 	 	 	 	 	 h a n d i n . r e s u l t _ v a l u e s [ r e s u l t C o u n t ]   =   R e g E x p . $ 1 ; 
 	 	 	 	 	 } 
 	 	 	 	 	 i f   ( p a r t T e m p . m a t c h ( r e B a d u g i S u m m a r y E x t r a c t i o n 2 [ s i t e ] ) )   { 
 	 	 	 	 	 	 s w i t c h ( s i t e )   { 
 	 	 	 	 	 	 c a s e   P S T A R S : 
 	 	 	 	 	 	 c a s e   F T P : 
 	 	 	 	 	 	 	 i f   ( R e g E x p . $ 6 )   { 
 	 	 	 	 	 	 	 	 h a n d i n . s h o w d o w n _ h a n d s [ p l a y e r C o u n t ]   =   R e g E x p . $ 6 ; 
 	 	 	 	 	 	 	 } 
 	 	 	 	 	 	 	 h a n d i n . s h o w d o w n _ c a r d s [ p l a y e r C o u n t ] [ 0 ]   =   R e g E x p . $ 1 ; 
 	 	 	 	 	 	 	 h a n d i n . s h o w d o w n _ c a r d s [ p l a y e r C o u n t ] [ 1 ]   =   R e g E x p . $ 2 ; 
 	 	 	 	 	 	 	 h a n d i n . s h o w d o w n _ c a r d s [ p l a y e r C o u n t ] [ 2 ]   =   R e g E x p . $ 3 ; 
 	 	 	 	 	 	 	 h a n d i n . s h o w d o w n _ c a r d s [ p l a y e r C o u n t ] [ 3 ]   =   R e g E x p . $ 4 ; 
 	 	 	 	 	 	 	 b r e a k ; 
 	 	 	 	 	 	 c a s e   C E R E U S : 
 	 	 	 	 	 	 	 h a n d i n . s h o w d o w n _ c a r d s [ p l a y e r C o u n t ] [ 0 ]   =   R e g E x p . $ 3 ; 
 	 	 	 	 	 	 	 h a n d i n . s h o w d o w n _ c a r d s [ p l a y e r C o u n t ] [ 1 ]   =   R e g E x p . $ 4 ; 
 	 	 	 	 	 	 	 h a n d i n . s h o w d o w n _ c a r d s [ p l a y e r C o u n t ] [ 2 ]   =   R e g E x p . $ 5 ; 
 	 	 	 	 	 	 	 h a n d i n . s h o w d o w n _ c a r d s [ p l a y e r C o u n t ] [ 3 ]   =   R e g E x p . $ 6 ; 
 	 	 	 	 	 	 	 h a n d i n . s h o w d o w n _ h a n d s [ p l a y e r C o u n t ]   =   R e g E x p . $ 2 ; 
 	 	 	 	 	 	 	 b r e a k ; 
 	 	 	 	 	 	 } 
 	 	 	 	 	 } 
 	 	 	 	 } 
 	 	 	 	 e l s e   {   h a n d i n . s h o w d o w n _ c a r d s [ p l a y e r C o u n t ] [ 0 ]   =   ' m u c k s ' ;   } 
 	 	 	 } 
 	 	 } 
 	 	 
 
 	 	 / / r a k e 
 	 	 i f   ( h a n d i n . u n f o r m a t t e d . m a t c h ( r e R a k e [ s i t e ] ) )   { 
 	 	 	 h a n d i n . r a k e   =   R e g E x p . $ 1 ; 
 	 	 } 
 	 } 
 
 	 r e t u r n   h a n d i n ; 
 
 } 
 
 
 f u n c t i o n   p a r s e _ t r i p l e d r a w ( h a n d i n ,   s i t e )   { 
 
 	 / / C a s h   o r   t o u r n a m e n t ? 
 	 i f   ( h a n d i n . f i r s t L i n e . m a t c h ( / T o u r n a m e n t / ) )   { 
 	 	 h a n d i n . g a m e T y p e   =   " T " ; 
 	 }   e l s e   { 
 	 	 h a n d i n . g a m e T y p e   =   " C " ; 
 	 } 
 
 	 / / f i n d   b l i n d s 
 	 i f   ( h a n d i n . f i r s t L i n e . m a t c h ( r e B l i n d s [ s i t e ] ) )   { 
 	 	 h a n d i n . s m a l l B l i n d   =   R e g E x p . $ 1 ; 
 	 	 h a n d i n . b i g B l i n d   =   R e g E x p . $ 2 ; 
 	 } 
 
 	 h a n d i n . s m a l l B l i n d P o s t e d A m o u n t   =   0 ; 
 	 h a n d i n . b i g B l i n d P o s t e d A m o u n t   =   0 ; 
 
 	 / / f i n d   g a m e   s i z e 
 	 i f   ( h a n d i n . u n f o r m a t t e d . m a t c h ( r e G a m e S i z e [ s i t e ] ) )   { 
 	 	 h a n d i n . g a m e S i z e   =   R e g E x p . $ 1   +   ' - m a x ' ; 
 	 } 
 	 e l s e   { 
 	 	 h a n d i n . g a m e S i z e   =   " " ; 
 	 } 
 
 	 h a n d i n . a n t e s T o t a l   =   0 ; 
 	 a n t e L i n e s   =   n e w   A r r a y ; 
 	 / / f i n d   a n t e s 
 	 a n t e T e x t   =   h a n d i n . u n f o r m a t t e d N o B r e a k s . m a t c h ( r e A n t e T e x t [ s i t e ] ) ; 
       i f   ( a n t e T e x t )   { 
 	 	 a n t e L i n e s   =   a n t e T e x t [ 1 ] . s p l i t ( /  %/ ) ; 
 	 	 n u m A n t e L i n e s   =   a n t e L i n e s . l e n g t h ; 
 	 	 f o r   ( j = 0 ; j < n u m A n t e L i n e s ; j + + )   { 
 	 	 	 i f   ( a n t e L i n e s [ j ] . m a t c h ( r e A n t e L i n e s [ s i t e ] ) )   { 
 	 	 	 	 h a n d i n . a n t e   =   R e g E x p . $ 1 ; 
 	 	 	 	 h a n d i n . a n t e s T o t a l   =   p a r s e F l o a t ( h a n d i n . a n t e s T o t a l )   +   p a r s e F l o a t ( R e g E x p . $ 1 ) ; 
 	 	 	 } 
 	 	 } 
 	 } 
 	 
 	 r e s u l t   =   h a n d i n . u n f o r m a t t e d N o B r e a k s . m a t c h ( r e S e a t i n g T e x t [ s i t e ] ) ; 
 	 i f   ( r e s u l t )   { h a n d i n . s e a t T e x t   =   r e s u l t [ 1 ] ; } 
 	 e l s e   { h a n d i n . s e a t T e x t   =   "   " ; } 
 
 	 h a n d i n . s e a t L i n e s   =   h a n d i n . s e a t T e x t . r e p l a c e ( /  %/ g ,   " \ n " ) ; 
 	 
 	 / / f i n d   n u m b e r   o f   s e a t s 
 	 s e a t s   =   h a n d i n . s e a t L i n e s . m a t c h ( r e F i n d S e a t s [ s i t e ] ) ; 
 	 h a n d i n . n u m P l a y e r s   =   s e a t s . l e n g t h ; 
 	 
 	 / /   f i n d   b u t t o n / b r i n g - i n ? 
 	 i f   ( h a n d i n . u n f o r m a t t e d . m a t c h ( r e B u t t o n [ s i t e ] ) )   { 
 	 	 h a n d i n . b u t t o n   =   R e g E x p . $ 1 ; 
 	 } 
 	 
 	 / / f i n d   p l a y e r   n a m e s   a n d   s t a c k   s i z e s 
 	 p l a y e r L i n e s   =   h a n d i n . s e a t L i n e s . m a t c h ( r e F i n d I n f o [ s i t e ] ) ; 
 	 h a n d i n . p l a y e r s   =   n e w   A r r a y ; 
 	 h a n d i n . s t a c k s   =   n e w   A r r a y ; 
 	 h a n d i n . s e a t N u m b e r s   =   n e w   A r r a y ; 
 
 	 j   =   0 ; 
 	 f o r   ( i   =   0 ;   i   <   h a n d i n . n u m P l a y e r s ;   i   =   i   +   1 )   { 
 	 	 
 	 	 i f   ( p l a y e r L i n e s [ i ] . m a t c h ( r e P l a y e r I n f o [ s i t e ] ) )   { 
 	 	 	 t h e S e a t   =   R e g E x p . $ 1 ; 
 	 	 	 t h e P l a y e r   =   R e g E x p . $ 2 ; 
 	 	 	 t h e S t a c k   =   R e g E x p . $ 3 ; 
 	 	 	 i f   ( ! ( ( p l a y e r L i n e s [ i ] . m a t c h ( / s i t t i n g   o u t / i )   & &   ( h a n d i n . g a m e T y p e   = =   " C " )   & &   ( t h e S e a t   ! =   h a n d i n . b u t t o n ) ) ) ) { 
 	 	 	 	 h a n d i n . s e a t N u m b e r s [ j ]   =   t h e S e a t ; 
 	 	 	 	 h a n d i n . p l a y e r s [ j ]   =   t h e P l a y e r ; 
 	 	 	 	 h a n d i n . s t a c k s [ j ]   =   t h e S t a c k ; 
 	 	 	 	 j + + ; 
 	 	 	 } 
 	 	 } 
 	 } 
 	 i f   ( j   >   0 )   {   h a n d i n . n u m P l a y e r s   =   j ;   } 
 
 	 / / f i n d   c a r d s 
 	 h a n d i n . h o l e C a r d s   =   n e w   A r r a y ; 
 
 	 / / g e t   h e r o 
 	 f o r   ( x   =   0 ;   x   <   h a n d i n . n u m P l a y e r s ;   x + + )   { 
 	 	 h a n d i n . h o l e C a r d s [ x ]   =   n e w   A r r a y ; 
 	 	 v a r   m y R e g E x   =   n e w   R e g E x p ; 
 	 	 m y R e g E x . c o m p i l e ( r e G e t H a n d P r e [ s i t e ]   +   h a n d i n . p l a y e r s [ x ]   +   r e T D G e t H a n d P o s t [ s i t e ] ,   " g " ) ; 
 	 	 r e s u l t   =   h a n d i n . u n f o r m a t t e d N o B r e a k s . m a t c h ( m y R e g E x ) ; 
 	 	 i f   ( r e s u l t )   { 
 	 	 	 h a n d i n . h e r o   =   h a n d i n . p l a y e r s [ x ] ; 
 	 	 	 h e r o p o s   =   x ; 
 	 	 	 x   =   h a n d i n . n u m p l a y e r s ; 
 	 	 } 
 	 } 
 
 	 / / i n i t i a l i z e   2 D   a r r a y s 
 	 h a n d i n . a c t i o n _ t y p e s   =   n e w   A r r a y ; 
 	 h a n d i n . a c t i o n _ p l a y e r s   =   n e w   A r r a y ; 
 	 h a n d i n . a c t i o n _ v a l u e s   =   n e w   A r r a y ; 
 	 h a n d i n . s h o w d o w n _ t y p e s   =   n e w   A r r a y ; 
 	 h a n d i n . a c t i o n _ a d d e d T o P o t   =   n e w   A r r a y ; 
 	 h a n d i n . a c t i o n _ p l a y e r s P o t   =   n e w   A r r a y ; 
 
 	 f o r   ( r = 0 ; r < h a n d i n . p l a y e r s . l e n g t h ; r + + )   { 
 	 	 h a n d i n . a c t i o n _ p l a y e r s P o t [ r ]   =   0 ; 
 	 } 
 
 
 	 / / b u t   a d d   i n   S B 
 	 i f   ( h a n d i n . u n f o r m a t t e d . m a t c h ( r e S m a l l B l i n d [ s i t e ] ) )   { 
 	 	 h a n d i n . s m a l l B l i n d P o s t e d B y   =   R e g E x p . $ 1 ; 
 	 	 h a n d i n . s m a l l B l i n d P o s t e d A m o u n t   =   R e g E x p . $ 2 ; ; 
 	 	 / / p l a y e r I n d e x   =   h a n d i n . p l a y e r s . i n d e x O f ( h a n d i n . s m a l l B l i n d P o s t e d B y ) ; 
 	 	 p l a y e r I n d e x   =   f i n d I n d e x ( h a n d i n . p l a y e r s ,   h a n d i n . s m a l l B l i n d P o s t e d B y ) ; 
 	 	 h a n d i n . a c t i o n _ p l a y e r s P o t [ p l a y e r I n d e x ]   =   h a n d i n . s m a l l B l i n d P o s t e d A m o u n t ; 
 	 } 
 	 / / a n d   B B 
 	 i f   ( h a n d i n . u n f o r m a t t e d . m a t c h ( r e B i g B l i n d [ s i t e ] ) )   { 
 	 	 h a n d i n . b i g B l i n d P o s t e d B y   =   R e g E x p . $ 1 ; 
 	 	 h a n d i n . b i g B l i n d P o s t e d A m o u n t   =   R e g E x p . $ 2 ; 
 	 	 p l a y e r I n d e x   =   f i n d I n d e x ( h a n d i n . p l a y e r s ,   h a n d i n . b i g B l i n d P o s t e d B y ) ; 
 	 	 h a n d i n . a c t i o n _ p l a y e r s P o t [ p l a y e r I n d e x ]   =   h a n d i n . b i g B l i n d P o s t e d A m o u n t ; 
 	 	 / / f o r   t i t a n ,   f i n d   a c t i o n   n u m b e r   o f   B i g   B l i n d 
 	 	 i f   ( s i t e = = T I T A N )   { 
 	 	 	 
 	 	 	 r e B B a c t i o n   =   ' < a c t i o n   n o = \ " ( \ \ d ) \ "   p l a y e r = \ " '   + h a n d i n . b i g B l i n d P o s t e d B y + ' \ "   t y p e = \ " 2 \ " ' ; 
 	 	 	 i f   ( h a n d i n . u n f o r m a t t e d . m a t c h ( r e B B a c t i o n ) )   { 
 	 	 	 	 h a n d i n . c u r r e n t A c t i o n   =   c l e a n N u m ( R e g E x p . $ 1 ) ; 
 	 	 	 	 
 	 	 	 }     
 	 	 
 	 	 } 
 	 } 
 	 
 	 i f   ( ! h a n d i n . s m a l l B l i n d )   { 
 	 	 h a n d i n . s m a l l B l i n d   =   h a n d i n . s m a l l B l i n d P o s t e d A m o u n t ; 
 	 	 h a n d i n . b i g B l i n d   =   h a n d i n . b i g B l i n d P o s t e d A m o u n t ; 
 	 } 	 
 
 	 / / g e t   s t r e e t   c a r d s   n a m e d   d e s i r e 
 	 h a n d i n . c o m m u n i t y C a r d s   =   n e w   A r r a y ; 
 	 h a n d i n . c o m m u n i t y C a r d s [ 1 ]   =   n e w   A r r a y ; 
 	 c a r d C o u n t   =   0 ; 
 	 v a r   t h i s R e g E x   =   n e w   R e g E x p ; 
 	 f o r   ( x   = 0 ; x < r e T D S t r e e t M a t c h [ s i t e ] . l e n g t h ; x + + )   { 
 	 	 v a r   t h i s R e g E x   =   n e w   R e g E x p ; 
 	 	 t h i s R e g E x . c o m p i l e ( r e T D S t r e e t M a t c h [ s i t e ] [ x ] ) ; 
 	 	 o u t e r r e s u l t   =   t h i s R e g E x . e x e c ( h a n d i n . u n f o r m a t t e d N o B r e a k s ) ; 
 	 	 i f   ( ! o u t e r r e s u l t )   { 
 	 	 	 v a r   t h i s R e g E x   =   n e w   R e g E x p ; 
 	 	 	 t h i s R e g E x . c o m p i l e ( r e T D S t r e e t M a t c h A l t [ s i t e ] [ x ] ) ; 
 	 	 	 o u t e r r e s u l t   =   t h i s R e g E x . e x e c ( h a n d i n . u n f o r m a t t e d N o B r e a k s ) ; 
 	 	 } 
 	 	 i f   ( o u t e r r e s u l t )   { 
 	 	 	 / /   h a n d i n   =   p o k e r S t a r s P a r s e A c t i o n ( h a n d i n ,   o u t e r r e s u l t [ 1 ] ,   x ) ; 
 	 	 	 i f   ( s i t e   = =   P S T A R S )   {   h a n d i n   =   p o k e r S t a r s P a r s e A c t i o n ( h a n d i n ,   o u t e r r e s u l t [ 1 ] ,   x ) ;   } 
 	 	 	 e l s e   i f   ( s i t e   = =   F T P )   {   h a n d i n   =   f t p P a r s e A c t i o n ( h a n d i n ,   o u t e r r e s u l t [ 1 ] ,   x ) ;   } 
 	 	 	 e l s e   i f   ( s i t e   = =   C E R E U S )   {   h a n d i n   =   c e r e u s P a r s e A c t i o n ( h a n d i n ,   o u t e r r e s u l t [ 1 ] ,   x ) ;   } 
 	 	 	 e l s e   i f   ( s i t e   = =   H E M )   { h a n d i n   =   H E M P a r s e A c t i o n ( h a n d i n , o u t e r r e s u l t [ 1 ] , x ) ; } 
 	 	 	 e l s e   i f   ( s i t e   = =   T I T A N )   { h a n d i n   =   t i t a n P a r s e A c t i o n ( h a n d i n , o u t e r r e s u l t [ 1 ] , x ) ; } 
 	 	 	 v a r   m y R e g E x   =   n e w   R e g E x p ; 
 	 	 	 m y R e g E x . c o m p i l e ( " D e a l t   t o   "   +   a d d s l a s h e s ( h a n d i n . h e r o )   +   " (   \ \ [ ( . * ) \ \ ] ) " ) ; 
 	 	 	 o u t e r L i n e s   =   o u t e r r e s u l t [ 1 ] . s p l i t ( /  %/ ) ; 
 	 	 	 r e s u l t   =   o u t e r r e s u l t [ 1 ] . m a t c h ( m y R e g E x ) ; 
 	 	 	 i f   ( ! r e s u l t )   { 
 	 	 	 	 v a r   m y R e g E x   =   n e w   R e g E x p ; 
 	 	 	 	 m y R e g E x . c o m p i l e ( a d d s l a s h e s ( h a n d i n . h e r o )   +   " :   s t a n d s   p a t   o n   ( \ \ [ ( . * ) \ \ ] ) " ) ; 
 	 	 	 	 r e s u l t   =   o u t e r r e s u l t [ 1 ] . m a t c h ( m y R e g E x ) ; 
 	 	 	 } 
 	 	 	 i f   ( r e s u l t )   { 
 	 	 	 	 s u b r e s u l t   =   r e s u l t [ 1 ] . m a t c h ( / ( [ 2 - 9 T J Q K A ] [ h d s c ] ) / g ) ; 
 	 	 	 	 n u m R e s u l t s   = s u b r e s u l t . l e n g t h ; 
 	 	 	 	 f o r   ( y   = 0 ;   y < n u m R e s u l t s ;   + + y )   { 
 	 	 	 	 	 h a n d i n . h o l e C a r d s [ h e r o p o s ] [ h a n d i n . h o l e C a r d s [ h e r o p o s ] . l e n g t h ]   =   s u b r e s u l t [ y ] ; 
 	 	 	 	 } 
 	 	 	 } 
 	 	 } 
 	 	 / / z e r o   o u t   p l a y e r   c o n t r i b u t i o n s   t o   p o t   f o r   n e x t   s t r e e t 
 	 	 f o r   ( r = 0 ; r < h a n d i n . p l a y e r s . l e n g t h ; r + + )   { 
 	 	 	 h a n d i n . a c t i o n _ p l a y e r s P o t [ r ]   =   0 ; 
 	 	 } 
 	 } 
 
 	 / / s u m m a r y 
 	 i f   ( h a n d i n . u n f o r m a t t e d N o B r e a k s . m a t c h ( r e M a t c h S u m m a r y [ s i t e ] ) )   { 
 	 	 h a n d i n . s h o w d o w n T e x t   =   R e g E x p . $ 1 ; 
 
 	 	 / / i f   ( h a n d i n . s h o w d o w n T e x t . m a t c h ( r e M a t c h S u m m a r y [ s i t e ] ) )   { 
 	 	 / / 	 h a n d i n . s h o w d o w n T e x t   =   R e g E x p . $ 1 ; 
 	 	 / / } 
 	 	 h a n d i n . s h o w d o w n L i n e s   =   h a n d i n . s h o w d o w n T e x t . s p l i t ( /  %/ ) ; 
 
 	 	 / / i n i t i a l i z e   2 D   a r r a y s 
 	 	 h a n d i n . s h o w d o w n _ h a n d s   =   n e w   A r r a y ;       / /   t w o   p a i r ,   F i v e s   a n d   F o u r s 
 	 	 h a n d i n . s h o w d o w n _ p l a y e r s   =   n e w   A r r a y ;   / /   < n i c k > 
 	 	 h a n d i n . s h o w d o w n _ c a r d s   =   n e w   A r r a y ;       / /     J h   Q s   e t c 
 	 	 h a n d i n . s h o w d o w n _ t y p e s   =   n e w   A r r a y ;       / /   w o n ,   l o s t ,   m u c k e d ,   c o l l e c t e d 
 	 	 h a n d i n . r e s u l t _ p l a y e r s   =   n e w   A r r a y ; 
 	 	 h a n d i n . r e s u l t _ v a l u e s   =   n e w   A r r a y ; 
 
 	 	 / / l o o p   t h r o u g h   s h o w d o w n   l i n e s 
 	 	 p l a y e r C o u n t   =   - 1 ; 
 	 	 r e s u l t C o u n t   =   - 1 ; 
 	 	 f o r   ( i   =   0 ;   i   <   h a n d i n . s h o w d o w n L i n e s . l e n g t h ;   i   =   i   +   1 )   { 
 	 	 	 i f   ( s i t e   = =   H E M )   { 
 	 	 	 	 i f   ( h a n d i n . s h o w d o w n L i n e s [ i ] . m a t c h ( r e S u m m a r y E x t r a c t i o n 1 [ s i t e ] ) )   { 
 	 	 	 	 	 m   =   f i n d I n d e x ( h a n d i n . s h o w d o w n _ p l a y e r s , R e g E x p . $ 1 ) ; 
 	 	 	 	 	 i f   ( m   = =   - 1 )   {   m   =   + + p l a y e r c o u n t ;   } 
 	 	 	 	 	 / / p l a y e r C o u n t + + ; 
 	 	 	 	 	 h a n d i n . s h o w d o w n _ p l a y e r s [ m ]   =   R e g E x p . $ 1 ; 
 	 	 	 	 	 h a n d i n . s h o w d o w n _ t y p e s [ m ]   =   " w o n " ; 
 	 	 	 	 	 i f   ( h a n d i n . s h o w d o w n L i n e s [ i ] . m a t c h ( r e T h e M o n e y [ s i t e ] ) )   { 
 	 	 	 	 	 	 r e s u l t C o u n t + + ; 
 	 	 	 	 	 	 h a n d i n . r e s u l t _ p l a y e r s [ r e s u l t C o u n t ]   =   h a n d i n . s h o w d o w n _ p l a y e r s [ m ] ; 
 	 	 	 	 	 	 h a n d i n . r e s u l t _ v a l u e s [ r e s u l t C o u n t ]   =   R e g E x p . $ 1 ; 
 	 	 	 	 	 } 
 	 	 	 	 } 
 	 	 	 	 e l s e   i f   ( r e s u l t   =   h a n d i n . s h o w d o w n L i n e s [ i ] . m a t c h ( r e T D S u m m a r y E x t r a c t i o n 2 [ s i t e ] ) )   { 
 	 	 	 	 	 m   =   f i n d I n d e x ( h a n d i n . s h o w d o w n _ p l a y e r s , r e s u l t [ 1 ] ) ; 
 	 	 	 	 	 i f   ( m   >   - 1 )   { 
 	 	 	 	 	 	 h a n d i n . s h o w d o w n _ c a r d s [ m ]   =   n e w   A r r a y ; 
 	 	 	 	 	 	 h a n d i n . s h o w d o w n _ c a r d s [ m ] [ 0 ]   =   r e s u l t [ 2 ] ; 
 	 	 	 	 	 	 h a n d i n . s h o w d o w n _ c a r d s [ m ] [ 1 ]   =   r e s u l t [ 3 ] ; 
 	 	 	 	 	 	 h a n d i n . s h o w d o w n _ c a r d s [ m ] [ 2 ]   =   r e s u l t [ 4 ] ; 
 	 	 	 	 	 	 h a n d i n . s h o w d o w n _ c a r d s [ m ] [ 3 ]   =   r e s u l t [ 5 ] ; 
 	 	 	 	 	 	 h a n d i n . s h o w d o w n _ c a r d s [ m ] [ 4 ]   =   r e s u l t [ 6 ] ; 
 	 	 	 	 	 	 h a n d i n . s h o w d o w n _ h a n d s [ m ]   =   "   " ; 
 	 	 	 	 	 } 
 	 	 	 	 	 e l s e   { 
 	 	 	 	 	 	 p l a y e r C o u n t + + ; 
 	 	 	 	 	 	 h a n d i n . s h o w d o w n _ c a r d s [ p l a y e r C o u n t ]   =   n e w   A r r a y ; 
 	 	 	 	 	 	 h a n d i n . s h o w d o w n _ p l a y e r s [ p l a y e r C o u n t ]   =   r e s u l t [ 1 ] ; 
 	 	 	 	 	 	 h a n d i n . s h o w d o w n _ t y p e s [ p l a y e r C o u n t ]   =   " l o s t " ; 
 	 	 	 	 	 	 h a n d i n . s h o w d o w n _ c a r d s [ p l a y e r C o u n t ] [ 0 ]   =   r e s u l t [ 2 ] ; 
 	 	 	 	 	 	 h a n d i n . s h o w d o w n _ c a r d s [ p l a y e r C o u n t ] [ 1 ]   =   r e s u l t [ 3 ] ; 
 	 	 	 	 	 	 h a n d i n . s h o w d o w n _ c a r d s [ p l a y e r C o u n t ] [ 2 ]   =   r e s u l t [ 4 ] ; 
 	 	 	 	 	 	 h a n d i n . s h o w d o w n _ c a r d s [ p l a y e r C o u n t ] [ 3 ]   =   r e s u l t [ 5 ] ; 
 	 	 	 	 	 	 h a n d i n . s h o w d o w n _ c a r d s [ p l a y e r C o u n t ] [ 4 ]   =   r e s u l t [ 6 ] ; 
 	 	 	 	 	 	 h a n d i n . s h o w d o w n _ h a n d s [ p l a y e r C o u n t ]   =   "   " ; 
 	 	 	 	 	 } 
 	 	 	 	 } 
 	 	 	 } 
 	 	 	 e l s e   i f   ( h a n d i n . s h o w d o w n L i n e s [ i ] . m a t c h ( r e S u m m a r y E x t r a c t i o n 1 [ s i t e ] ) )   { 
 	 	 	 	 p l a y e r C o u n t + + ; 
 	 	 	 	 h a n d i n . s h o w d o w n _ p l a y e r s [ p l a y e r C o u n t ]   =   R e g E x p . $ 1 ; 
 	 	 	 	 h a n d i n . s h o w d o w n _ t y p e s [ p l a y e r C o u n t ]   =   R e g E x p . $ 2 ; 
 	 	 	 	 p a r t T e m p   =   R e g E x p . $ 3 ; 
 	 	 	 	 i f   ( s i t e   = =   C E R E U S )   {   p a r t T e m p   =   R e g E x p . $ 2   +   R e g E x p . $ 3 ;   } 
 	 	 	 	 i f   ( p a r t T e m p . m a t c h ( / (   w o n   |   c o l l e c t e d   |   w i n s   ) / ) )   { 
 	 	 	 	 	 h a n d i n . s h o w d o w n _ t y p e s [ p l a y e r C o u n t ]   =   " w o n " ; 
 	 	 	 	 } 
 	 	 	 	 / / e l s e   { 
 	 	 	 	 / / 	 h a n d i n . s h o w d o w n _ t y p e s [ p l a y e r C o u n t ]   =   " l o s t " ; 
 	 	 	 	 / / } 
 	 	 	 	 h a n d i n . s h o w d o w n _ c a r d s [ p l a y e r C o u n t ]   =   n e w   A r r a y ; 
 	 	 	 	 i f   ( p a r t T e m p )   { 
 	 	 	 	 	 i f   ( p a r t T e m p . m a t c h ( r e T h e M o n e y [ s i t e ] ) )   { 
 	 	 	 	 	 	 r e s u l t C o u n t + + ; 
 	 	 	 	 	 	 h a n d i n . r e s u l t _ p l a y e r s [ r e s u l t C o u n t ]   =   h a n d i n . s h o w d o w n _ p l a y e r s [ p l a y e r C o u n t ] ; 
 	 	 	 	 	 	 h a n d i n . r e s u l t _ v a l u e s [ r e s u l t C o u n t ]   =   R e g E x p . $ 1 ; 
 	 	 	 	 	 } 
 	 	 	 	 	 i f   ( p a r t T e m p . m a t c h ( r e T D S u m m a r y E x t r a c t i o n 2 [ s i t e ] ) )   { 
 	 	 	 	 	 	 s w i t c h ( s i t e )   { 
 	 	 	 	 	 	 c a s e   P S T A R S : 
 	 	 	 	 	 	 c a s e   F T P : 
 	 	 	 	 	 	 	 i f   ( R e g E x p . $ 7 )   { 
 	 	 	 	 	 	 	 	 h a n d i n . s h o w d o w n _ h a n d s [ p l a y e r C o u n t ]   =   R e g E x p . $ 7 ; 
 	 	 	 	 	 	 	 } 
 	 	 	 	 	 	 	 h a n d i n . s h o w d o w n _ c a r d s [ p l a y e r C o u n t ] [ 0 ]   =   R e g E x p . $ 1 ; 
 	 	 	 	 	 	 	 h a n d i n . s h o w d o w n _ c a r d s [ p l a y e r C o u n t ] [ 1 ]   =   R e g E x p . $ 2 ; 
 	 	 	 	 	 	 	 h a n d i n . s h o w d o w n _ c a r d s [ p l a y e r C o u n t ] [ 2 ]   =   R e g E x p . $ 3 ; 
 	 	 	 	 	 	 	 h a n d i n . s h o w d o w n _ c a r d s [ p l a y e r C o u n t ] [ 3 ]   =   R e g E x p . $ 4 ; 
 	 	 	 	 	 	 	 h a n d i n . s h o w d o w n _ c a r d s [ p l a y e r C o u n t ] [ 4 ]   =   R e g E x p . $ 5 ; 
 	 	 	 	 	 	 	 b r e a k ; 
 	 	 	 	 	 	 c a s e   C E R E U S : 
 	 	 	 	 	 	 	 h a n d i n . s h o w d o w n _ c a r d s [ p l a y e r C o u n t ] [ 0 ]   =   R e g E x p . $ 3 ; 
 	 	 	 	 	 	 	 h a n d i n . s h o w d o w n _ c a r d s [ p l a y e r C o u n t ] [ 1 ]   =   R e g E x p . $ 4 ; 
 	 	 	 	 	 	 	 h a n d i n . s h o w d o w n _ c a r d s [ p l a y e r C o u n t ] [ 2 ]   =   R e g E x p . $ 5 ; 
 	 	 	 	 	 	 	 h a n d i n . s h o w d o w n _ c a r d s [ p l a y e r C o u n t ] [ 3 ]   =   R e g E x p . $ 6 ; 
 	 	 	 	 	 	 	 h a n d i n . s h o w d o w n _ c a r d s [ p l a y e r C o u n t ] [ 4 ]   =   R e g E x p . $ 7 ; 
 	 	 	 	 	 	 	 h a n d i n . s h o w d o w n _ h a n d s [ p l a y e r C o u n t ]   =   R e g E x p . $ 2 ; 
 	 	 	 	 	 	 	 b r e a k ; 
 	 	 	 	 	 	 } 
 	 	 	 	 	 } 
 	 	 	 	 } 
 	 	 	 	 e l s e   {   h a n d i n . s h o w d o w n _ c a r d s [ p l a y e r C o u n t ] [ 0 ]   =   ' m u c k s ' ;   } 
 	 	 	 } 
 	 	 } 
 	 	 
 
 	 	 / / r a k e 
 	 	 i f   ( h a n d i n . u n f o r m a t t e d . m a t c h ( r e R a k e [ s i t e ] ) )   { 
 	 	 	 h a n d i n . r a k e   =   R e g E x p . $ 1 ; 
 	 	 } 
 	 } 
 
 	 r e t u r n   h a n d i n ; 
 
 } 
 
 
 f u n c t i o n   f c p _ c o n v e r t _ h h _ s u b ( u n f o r m a t t e d ,   o u t p u t T y p e , s h o w N a m e s , s h o w R e s u l t s , c a r d T y p e , d e b u g O p t i o n )   { 
 
 	 
 	 
 	 v a r   t h e H a n d   =   n e w   h a n d ( ) ;   / / h a n d   d a t a   s t r u c t u r e 
 	 
 	 / / h a n d l e   u n f o r m a t t e d   o p t i o n 
 	 i f   ( o u t p u t T y p e   = =   1 5 )   { t h e H a n d . f o r m a t t e d = u n f o r m a t t e d ;   r e t u r n ( t h e H a n d ) ;   } 
 	 
 	 v a r   f o r m a t t e d ;   / / t h e   c o n v e r t e d   o u t p u t   t e x t 
 	 
 	 d e b u g   =   d e b u g O p t i o n ; 
 	 
 	 / / d e f a u l t   t o   F e r a l   C o w   O r i g i n a l   ( 4 b b )   o u t p u t   t y p e 
 	 i f   ( ! o u t p u t T y p e )   { o u t p u t T y p e   =   0 ; } 
 
 	 v a r   m y R e g E x p   =   n e w   R e g E x p ( " ( 1 0 ) ( h | c | d | s ) ( [   | \ \ ] ] ) " ,   " i g " ) ; 
 	 u n f o r m a t t e d   =   u n f o r m a t t e d . r e p l a c e ( m y R e g E x p ,   " T $ 2 $ 3 " ) ; 
 	 / / t h e H a n d . e r r o r   =   u n f o r m a t t e d ; 
 	 t h e H a n d . u n f o r m a t t e d   =   u n f o r m a t t e d ; 
 	 t h e H a n d . u n f o r m a t t e d N o B r e a k s   =   u n f o r m a t t e d . r e p l a c e ( / \ n / g ,   "  %" ) ; 
 	 / / f o r   I E ,   a l s o   r e m o v e   t h e   \ r   c h a r a c a c t e r 
 	 t h e H a n d . u n f o r m a t t e d N o B r e a k s   =   t h e H a n d . u n f o r m a t t e d N o B r e a k s . r e p l a c e ( / \ r / g ,   " " ) ; 
 	 t h e H a n d . p r e f i x   =   " " ; 
 	 
 	 / / d e f a u l t   c a r d s   f o r   s t y l e   2 0 
 	 i f   ( o u t p u t T y p e   = =   0 )   { 
 	 	 i f   ( c a r d T y p e   = =   0 )   { 
 	 	 	 o u t p u t T y p e   =   0 ; 
 	 	 	 c a r d F o l d e r   =   ' ' ; 
 	 	 }   e l s e   i f   ( c a r d T y p e   = = 1   )   { 
 	 	 	 o u t p u t T y p e   =   2 0 ; 
 	 	 	 c a r d F o l d e r   =   ' o u c h ' ; 
 	 	 }   e l s e   i f   ( c a r d T y p e   = = 2   )   { 
 	 	 	 o u t p u t T y p e   =   2 0 ; 
 	 	 	 c a r d F o l d e r = ' i n l i n e ' ; 
 	 	 } 
 	 }   e l s e   { 
 	 
 	 	 i f   ( c a r d T y p e   = =   0   )   { 
 	 	 	 c a r d F o l d e r   =   ' o u c h ' ; 
 	 	 }   e l s e   i f   ( c a r d T y p e   = = 1 )   { 
 	 	 	 c a r d F o l d e r   =   ' o u c h ' ; 
 	 	 }   e l s e   i f   ( c a r d T y p e   = = 2 )   { 
 	 	 	 c a r d F o l d e r   =   ' i n l i n e ' ; 
 	 	 } 
 	 } 
 	 
 	 
 	 
 	 
 	 / / p a r s e   o p t i o n s   e m b e d d e d   w i t h i n   H H 
 	 i f   ( t h e H a n d . u n f o r m a t t e d . m a t c h ( / ^ ( ? : p o s | p o s i t i o n | s h o w p o s | s h o w p o s i t i o n ) $ / m ) )   { s h o w N a m e s   =   0 ; } 
 	 i f   ( t h e H a n d . u n f o r m a t t e d . m a t c h ( / ^ n e w c a r d s $ / m ) )   { o u t p u t T y p e   =   2 0 ;   c a r d F o l d e r   =   ' i n l i n e ' ; } 
 	 i f   ( t h e H a n d . u n f o r m a t t e d . m a t c h ( / ^ ( ? : c w i k c a r d s | c w i k ) $ / m ) )   { o u t p u t T y p e   =   2 0 ;   c a r d F o l d e r   =   ' o u c h ' ; } 
 	 i f   ( t h e H a n d . u n f o r m a t t e d . m a t c h ( / ^ h i d e r e s u l t s $ / m ) )   { s h o w R e s u l t s   =   1 ; } 
 
 	 
 	 / / s p l i t   t h e   t e x t   b y   l i n e   b r e a k s 
 	 v a r   l i n e s   =   n e w   A r r a y ( ) ; 
 	 l i n e s   =   t h e H a n d . u n f o r m a t t e d . s p l i t ( ' \ n ' ) ; 
 	 t h e H a n d . l i n e s   =   l i n e s ; 
 	 
 
 	 / / f i n d   w h i c h   s i t e 
 	 / / t h e H a n d . f i r s t L i n e   =   l i n e s [ 0 ]   +   " | "   +   l i n e s [ 1 ] ; 
 
 	 f o r   ( l i n e c o u n t e r   =   0 ;   l i n e c o u n t e r   < l i n e s . l e n g t h ; + + l i n e c o u n t e r )   { 
 	 
 	 	 t h e H a n d . f i r s t L i n e   =   t h e H a n d . l i n e s [ l i n e c o u n t e r ] ; 
 	 	 
 	 	 i f   ( t h e H a n d . f i r s t L i n e . m a t c h ( / P o k e r S t a r s / ) )   { 
 	 	 	 t h e H a n d . f i r s t L i n e   =   t h e H a n d . l i n e s [ l i n e c o u n t e r ]   +   t h e H a n d . l i n e s [ l i n e c o u n t e r + 1 ] ; 
 	 	 	 t h e H a n d . s i t e   =   " P o k e r S t a r s " ; 
 	 	 	 t h e H a n d   =   p a r s e _ s i t e _ p o k e r s t a r s ( t h e H a n d ) ; 
 	 	 	 b r e a k ; 
 	 	 }   e l s e   i f   ( ( t h e H a n d . f i r s t L i n e . m a t c h ( / F u l l   T i l t   P o k e r / ) )   | |   ( t h e H a n d . f i r s t L i n e . m a t c h ( / F u l l T i l t P o k e r / ) ) )   { 	 	 	 t h e H a n d . f i r s t L i n e   =   t h e H a n d . l i n e s [ l i n e c o u n t e r ]   +   t h e H a n d . l i n e s [ l i n e c o u n t e r + 1 ] ; 
 	 	 	 t h e H a n d . s i t e   =   " F u l l   T i l t " ; 
 	 	 	 t h e H a n d   =   p a r s e _ s i t e _ f t p ( t h e H a n d ) ; 
 	 	 	 b r e a k ; 
 	 	 }   e l s e   i f   ( t h e H a n d . f i r s t L i n e . m a t c h ( / S t a g e   \ # / ) )   { 
 	 	 	 t h e H a n d . f i r s t L i n e   =   t h e H a n d . l i n e s [ l i n e c o u n t e r ]   +   t h e H a n d . l i n e s [ l i n e c o u n t e r + 1 ] ; 
 	 	 	 t h e H a n d . s i t e   =   " C e r e u s " ; 
 	 	 	 t h e H a n d   =   p a r s e _ s i t e _ c e r e u s ( t h e H a n d ) ; 
 	 	 	 b r e a k ; 
 	 	 }   e l s e   i f   ( t h e H a n d . f i r s t L i n e . m a t c h ( / \ * \ * \ * \ * \ *   H a n d   H i s t o r y   / ) )   { 
 	 	 	 t h e H a n d . f i r s t L i n e   =   t h e H a n d . l i n e s [ l i n e c o u n t e r ]   +   t h e H a n d . l i n e s [ l i n e c o u n t e r + 1 ] ; 
 	 	 	 t h e H a n d . s i t e   =   " H o l d e m   M a n a g e r " ; 
 	 	 	 t h e H a n d   =   p a r s e _ s i t e _ h e m ( t h e H a n d ) ; 
 	 	 	 b r e a k ; 
 	 	 }   e l s e   i f   ( t h e H a n d . f i r s t L i n e . m a t c h ( / s e s s i o n c o d e / ) )   { 
 	 	 	 t h e H a n d . s i t e   =   " T i t a n " ; 
 	 	 	 t h e H a n d   =   p a r s e _ s i t e _ t i t a n ( t h e H a n d ) ; 
 	 	 	 b r e a k ; 
 	 	 }   e l s e   { 
 	 	 	 t h e H a n d . s i t e   =   " N O N E " ; 
 	 	 	 t h e H a n d . p r e f i x   =   t h e H a n d . p r e f i x   +   t h e H a n d . l i n e s [ l i n e c o u n t e r ]   +   " \ n " ; 
 	 	 } 
 	 } 
 	 
 	 
 	 i f   ( t h e H a n d . s i t e   = =   " N O N E " )   { 
 	 	 t h e H a n d . f o r m a t t e d   =   t h e H a n d . u n f o r m a t t e d ;   
 	 } 
 	 e l s e   { 
 	 	 / / S e n d   t h e   p o p u l a t e d   d a t a   s t r u c t u r e   t o   b e   f o r m a t t e d   i n t o   o u t p u t 	 
 	 	 t h e H a n d . f o r m a t t e d   =   h a n d T o T e x t ( t h e H a n d , o u t p u t T y p e , s h o w N a m e s , s h o w R e s u l t s ) ; 
 	 } 
 	 
 	 / / w e   r e t u r n   t h e   e n t i r e   h a n d   o b j e c t 
 	 r e t u r n   ( t h e H a n d ) ; 
 
 } 
 
 f u n c t i o n   h a n d ( )   { 
 	 / / t h i s   i s   j u s t   a n   o b j e c t   s t r u c t u r e 
 } 
 
 f u n c t i o n   p a r s e _ s i t e _ f t p ( h a n d i n )   { 
 
 	 / / d e t e r m i n e   w h i c h   g a m e   i s   b e i n g   p l a y e d 
 	 t h e R e s u l t   =   " G a m e :   u n k n o w n \ n " ; 
 	 i f   ( h a n d i n . f i r s t L i n e . m a t c h ( / C a p   N o   L i m i t   H o l d \ ' e m / ) )   {   / / ' 
 	 	 h a n d i n . g a m e L o n g   =   " C a p   N o - L i m i t   H o l d \ ' e m " ; 
 	 	 h a n d i n . g a m e S h o r t   =   " N L H E " ; 
 	 	 h a n d i n   =   p a r s e _ h o l d e m ( h a n d i n ,   F T P ) ; 
 	 }   e l s e   i f   ( h a n d i n . f i r s t L i n e . m a t c h ( / N o   L i m i t   H o l d \ ' e m / ) )   { 
 	 	 h a n d i n . g a m e L o n g   =   " N o - L i m i t   H o l d \ ' e m " ; 
 	 	 h a n d i n . g a m e S h o r t   =   " N L H E " ; 
 	 	 h a n d i n   =   p a r s e _ h o l d e m ( h a n d i n ,   F T P ) ; 
 	 }   e l s e   i f   ( h a n d i n . f i r s t L i n e . m a t c h ( / P o t   L i m i t   H o l d \ ' e m / ) )   { 
 	 	 h a n d i n . g a m e L o n g   =   " P o t   L i m i t   H o l d \ ' e m " ; 
 	 	 h a n d i n . g a m e S h o r t   =   " P L H E " ; 
 	 	 h a n d i n   =   p a r s e _ h o l d e m ( h a n d i n ,   F T P ) ; 
 	 }   e l s e   i f   ( h a n d i n . f i r s t L i n e . m a t c h ( / L i m i t   H o l d \ ' e m / ) )   {   / / ' 
 	 	 h a n d i n . g a m e L o n g   =   " L i m i t   H o l d \ ' e m " ; 
 	 	 h a n d i n . g a m e S h o r t   =   " L H E " ; 
 	 	 h a n d i n   =   p a r s e _ h o l d e m ( h a n d i n ,   F T P ) ; 
 
 	 }   e l s e   i f   ( ( h a n d i n . f i r s t L i n e . m a t c h ( / O m a h a / ) )   | |   ( h a n d i n . f i r s t L i n e . m a t c h ( / o m a h a / i ) ) )   { 
 
 	 	 h a n d i n . g a m e L o n g   =   " L i m i t   O m a h a " ; 
 	 	 i f   ( h a n d i n . f i r s t L i n e . m a t c h ( / n o   l i m i t / i ) )   { 
 	 	 	 h a n d i n . g a m e L o n g   =   " N o   "   +   h a n d i n . g a m e L o n g ; 
 	 	 }   e l s e   i f   ( h a n d i n . f i r s t L i n e . m a t c h ( / P o t   L i m i t / i ) )   { 
 	 	 	 h a n d i n . g a m e L o n g   =   " P o t   "   +   h a n d i n . g a m e L o n g ; 
 	 	 } 
 	 	 i f   ( h a n d i n . f i r s t L i n e . m a t c h ( / h \ / l / i ) )   { 
 	 	 	 h a n d i n . g a m e L o n g   =   h a n d i n . g a m e L o n g   +   "   H i / L o " ; 
 	 	 } 
 	 	 h a n d i n . g a m e S h o r t   =   " O M A H A " ; 
 	 	 h a n d i n   =   p a r s e _ o m a h a ( h a n d i n ,   F T P ) ; 
 
 	 }   e l s e   i f   ( ( h a n d i n . f i r s t L i n e . m a t c h ( / ( R a z z ) / i ) )   | |   ( h a n d i n . f i r s t L i n e . m a t c h ( / ( S t u d ) / i ) ) )   { 
 
 	 	 h a n d i n . g a m e L o n g   =   " L i m i t   "   +   R e g E x p . $ 1 ; 
 	 	 i f   ( h a n d i n . f i r s t L i n e . m a t c h ( / n o   l i m i t / i ) )   { 
 	 	 	 h a n d i n . g a m e L o n g   =   " N o   "   +   h a n d i n . g a m e L o n g ; 
 	 	 }   e l s e   i f   ( h a n d i n . f i r s t L i n e . m a t c h ( / p o t   l i m i t / i ) )   { 
 	 	 	 h a n d i n . g a m e L o n g   =   " P o t   "   +   h a n d i n . g a m e L o n g ; 
 	 	 } 
 	 	 i f   ( h a n d i n . f i r s t L i n e . m a t c h ( / h i \ / l o / i ) )   { 
 	 	 	 h a n d i n . g a m e L o n g   =   h a n d i n . g a m e L o n g   +   "   H i / L o " ; 
 	 	 } 
 
 	 	 h a n d i n . g a m e S h o r t   =   R e g E x p . $ 1 . t o U p p e r C a s e ( ) ; 
 	 	 h a n d i n   =   p a r s e _ s t u d ( h a n d i n ,   F T P ) ; 
 
 	 }   e l s e   i f   (   ( h a n d i n . f i r s t L i n e . m a t c h ( / ( T r i p l e   D r a w ) / i ) )   )     { 
 
 	 	 h a n d i n . g a m e L o n g   =   " L i m i t   "   +   R e g E x p . $ 1 ; 
 	 	 i f   ( h a n d i n . f i r s t L i n e . m a t c h ( / n o   l i m i t / i ) )   { 
 	 	 	 h a n d i n . g a m e L o n g   =   " N o   "   +   h a n d i n . g a m e L o n g ; 
 	 	 }   e l s e   i f   ( h a n d i n . f i r s t L i n e . m a t c h ( / p o t   l i m i t / i ) )   { 
 	 	 	 h a n d i n . g a m e L o n g   =   " P o t   "   +   h a n d i n . g a m e L o n g ; 
 	 	 } 
 	 	 h a n d i n . g a m e S h o r t   =   " D R A W " ; 
 	 	 h a n d i n   =   p a r s e _ t r i p l e d r a w ( h a n d i n ,   F T P ) ; 
 
 	 }   e l s e   i f   ( h a n d i n . f i r s t L i n e . m a t c h ( / ( S i n g l e   D r a w ) / i ) )     { 
 
 	 	 h a n d i n . g a m e L o n g   =   " L i m i t   "   +   R e g E x p . $ 1 ; 
 	 	 i f   ( h a n d i n . f i r s t L i n e . m a t c h ( / n o   l i m i t / i ) )   { 
 	 	 	 h a n d i n . g a m e L o n g   =   " N o   "   +   h a n d i n . g a m e L o n g ; 
 	 	 }   e l s e   i f   ( h a n d i n . f i r s t L i n e . m a t c h ( / p o t   l i m i t / i ) )   { 
 	 	 	 h a n d i n . g a m e L o n g   =   " P o t   "   +   h a n d i n . g a m e L o n g ; 
 	 	 } 
 	 	 h a n d i n . g a m e S h o r t   =   " D R A W " ; 
 	 	 h a n d i n   =   p a r s e _ s i n g l e d r a w ( h a n d i n ,   F T P ) ; 
 
 	 }   e l s e   i f   ( h a n d i n . f i r s t L i n e . m a t c h ( / ( B a d u g i ) / i ) )   { 
 	 
 	 	 h a n d i n . g a m e L o n g   =   " L i m i t   "   +   R e g E x p . $ 1 ; 
 	 	 i f   ( h a n d i n . f i r s t L i n e . m a t c h ( / n o   l i m i t / i ) )   { 
 	 	 	 h a n d i n . g a m e L o n g   =   " N o   "   +   h a n d i n . g a m e L o n g ; 
 	 	 }   e l s e   i f   ( h a n d i n . f i r s t L i n e . m a t c h ( / p o t   l i m i t / i ) )   { 
 	 	 	 h a n d i n . g a m e L o n g   =   " P o t   "   +   h a n d i n . g a m e L o n g ; 
 	 	 } 
 	 	 h a n d i n . g a m e S h o r t   =   " D R A W " ; 
 	 	 h a n d i n   =   p a r s e _ b a d u g i ( h a n d i n ,   F T P ) ; 
 	 
 	 }   e l s e   i f   ( h a n d i n . f i r s t L i n e . m a t c h ( / ( 5   C a r d   D r a w ) / i ) )   { 
 	 
 	 	 h a n d i n . g a m e L o n g   =   " L i m i t   "   +   R e g E x p . $ 1 ; 
 	 	 i f   ( h a n d i n . f i r s t L i n e . m a t c h ( / n o   l i m i t / i ) )   { 
 	 	 	 h a n d i n . g a m e L o n g   =   " N o   "   +   h a n d i n . g a m e L o n g ; 
 	 	 }   e l s e   i f   ( h a n d i n . f i r s t L i n e . m a t c h ( / p o t   l i m i t / i ) )   { 
 	 	 	 h a n d i n . g a m e L o n g   =   " P o t   "   +   h a n d i n . g a m e L o n g ; 
 	 	 } 
 	 	 h a n d i n . g a m e S h o r t   =   " D R A W " ; 
 	 	 h a n d i n   =   p a r s e _ f i v e c a r d d r a w ( h a n d i n ,   F T P ) ; 
 	 	 
 	 }   e l s e   { 
 
 	 	 h a n d i n . f o r m a t t e d   =   h a n d i n . u n f o r m a t t e d ; 
 	 } 
 
 	 r e t u r n   h a n d i n ; 
 
 } 
 
 f u n c t i o n   p a r s e _ s i t e _ p o k e r s t a r s ( h a n d i n )   { 
 	 
 	 / / g e t   t o u r n e y   b u y i n   a m o u n t 
 	 i f   ( h a n d i n . f i r s t L i n e . m a t c h ( / T o u r n a m e n t / ) )   { 
 	 	 i f   ( h a n d i n . f i r s t L i n e . m a t c h ( / ( \ $ [ \ d | \ . | \ , ] + \ + \ $ [ \ d | \ . | \ , ] + ) / ) ) { 
 	 	 	 h a n d i n . t o u r n e y B u y i n   =   R e g E x p . $ 1 ; 
 	 	 } 
 	 
 	 } 
 
 	 / / d e t e r m i n e   w h i c h   g a m e   i s   b e i n g   p l a y e d 
 	 t h e R e s u l t   =   " G a m e :   u n k n o w n \ n " ; 
 	 i f   ( h a n d i n . f i r s t L i n e . m a t c h ( / H o l d \ ' e m   N o   L i m i t / ) )   {   / / ' 
 	 	 h a n d i n . g a m e L o n g   =   " N o - L i m i t   H o l d ' e m " ; 
 	 	 h a n d i n . g a m e S h o r t   =   " N L H E " ; 
 	 	 h a n d i n   =   p a r s e _ h o l d e m ( h a n d i n ,   P S T A R S ) ; 
 
 	 }   e l s e   i f   ( h a n d i n . f i r s t L i n e . m a t c h ( / H o l d \ ' e m   L i m i t / ) )   {   / / ' 
 	 	 h a n d i n . g a m e L o n g   =   " L i m i t   H o l d ' e m " ; 
 	 	 h a n d i n . g a m e S h o r t   =   " L H E " ; 
 	 	 h a n d i n   =   p a r s e _ h o l d e m ( h a n d i n ,   P S T A R S ) ; 
 
 	 }   e l s e   i f   ( ( h a n d i n . f i r s t L i n e . m a t c h ( / O m a h a / ) )   | |   ( h a n d i n . f i r s t L i n e . m a t c h ( / o m a h a / i ) ) )   { 
 
 	 	 h a n d i n . g a m e L o n g   =   " L i m i t   O m a h a " ; 
 	 	 i f   ( h a n d i n . f i r s t L i n e . m a t c h ( / n o   l i m i t / i ) )   { 
 	 	 	 h a n d i n . g a m e L o n g   =   " N o   "   +   h a n d i n . g a m e L o n g ; 
 	 	 }   e l s e   i f   ( h a n d i n . f i r s t L i n e . m a t c h ( / p o t   l i m i t / i ) )   { 
 	 	 	 h a n d i n . g a m e L o n g   =   " P o t   "   +   h a n d i n . g a m e L o n g ; 
 	 	 } 
 	 	 i f   ( h a n d i n . f i r s t L i n e . m a t c h ( / h i \ / l o / i ) )   { 
 	 	 	 h a n d i n . g a m e L o n g   =   h a n d i n . g a m e L o n g   +   "   H i / L o " ; 
 	 	 } 
 	 	 h a n d i n . g a m e S h o r t   =   " O M A H A " ; 
 	 	 h a n d i n   =   p a r s e _ o m a h a ( h a n d i n ,   P S T A R S ) ; 
 
 	 }   e l s e   i f   ( ( h a n d i n . f i r s t L i n e . m a t c h ( / ( R a z z ) / i ) )   | |   ( h a n d i n . f i r s t L i n e . m a t c h ( / ( S t u d ) / i ) ) )   { 
 
 	 	 h a n d i n . g a m e L o n g   =   " L i m i t   "   +   R e g E x p . $ 1 ; 
 	 	 i f   ( h a n d i n . f i r s t L i n e . m a t c h ( / n o   l i m i t / i ) )   { 
 	 	 	 h a n d i n . g a m e L o n g   =   " N o   "   +   h a n d i n . g a m e L o n g ; 
 	 	 }   e l s e   i f   ( h a n d i n . f i r s t L i n e . m a t c h ( / p o t   l i m i t / i ) )   { 
 	 	 	 h a n d i n . g a m e L o n g   =   " P o t   "   +   h a n d i n . g a m e L o n g ; 
 	 	 } 
 	 	 i f   ( h a n d i n . f i r s t L i n e . m a t c h ( / h i \ / l o / i ) )   { 
 	 	 	 h a n d i n . g a m e L o n g   =   h a n d i n . g a m e L o n g   +   "   H i / L o " ; 
 	 	 } 
 	 	 h a n d i n . g a m e S h o r t   =   " S T U D " ; 
 	 	 h a n d i n   =   p a r s e _ s t u d ( h a n d i n ,   P S T A R S ) ; 
 
 	 }   e l s e   i f   (   ( h a n d i n . f i r s t L i n e . m a t c h ( / ( T r i p l e   D r a w ) / i ) )   )     { 
 
 	 	 h a n d i n . g a m e L o n g   =   " L i m i t   "   +   R e g E x p . $ 1 ; 
 	 	 i f   ( h a n d i n . f i r s t L i n e . m a t c h ( / n o   l i m i t / i ) )   { 
 	 	 	 h a n d i n . g a m e L o n g   =   " N o   "   +   h a n d i n . g a m e L o n g ; 
 	 	 }   e l s e   i f   ( h a n d i n . f i r s t L i n e . m a t c h ( / p o t   l i m i t / i ) )   { 
 	 	 	 h a n d i n . g a m e L o n g   =   " P o t   "   +   h a n d i n . g a m e L o n g ; 
 	 	 } 
 	 	 h a n d i n . g a m e S h o r t   =   " D R A W " ; 
 	 	 h a n d i n   =   p a r s e _ t r i p l e d r a w ( h a n d i n ,   P S T A R S ) ; 
 
 	 }   e l s e   i f   ( h a n d i n . f i r s t L i n e . m a t c h ( / ( S i n g l e   D r a w ) / i ) )     { 
 
 	 	 h a n d i n . g a m e L o n g   =   " L i m i t   "   +   R e g E x p . $ 1 ; 
 	 	 i f   ( h a n d i n . f i r s t L i n e . m a t c h ( / n o   l i m i t / i ) )   { 
 	 	 	 h a n d i n . g a m e L o n g   =   " N o   "   +   h a n d i n . g a m e L o n g ; 
 	 	 }   e l s e   i f   ( h a n d i n . f i r s t L i n e . m a t c h ( / p o t   l i m i t / i ) )   { 
 	 	 	 h a n d i n . g a m e L o n g   =   " P o t   "   +   h a n d i n . g a m e L o n g ; 
 	 	 } 
 	 	 h a n d i n . g a m e S h o r t   =   " D R A W " ; 
 	 	 h a n d i n   =   p a r s e _ s i n g l e d r a w ( h a n d i n ,   P S T A R S ) ; 
 
 	 }   e l s e   i f   ( h a n d i n . f i r s t L i n e . m a t c h ( / ( B a d u g i ) / i ) )   { 
 	 
 	 	 h a n d i n . g a m e L o n g   =   " L i m i t   "   +   R e g E x p . $ 1 ; 
 	 	 i f   ( h a n d i n . f i r s t L i n e . m a t c h ( / n o   l i m i t / i ) )   { 
 	 	 	 h a n d i n . g a m e L o n g   =   " N o   "   +   h a n d i n . g a m e L o n g ; 
 	 	 }   e l s e   i f   ( h a n d i n . f i r s t L i n e . m a t c h ( / p o t   l i m i t / i ) )   { 
 	 	 	 h a n d i n . g a m e L o n g   =   " P o t   "   +   h a n d i n . g a m e L o n g ; 
 	 	 } 
 	 	 h a n d i n . g a m e S h o r t   =   " D R A W " ; 
 	 	 h a n d i n   =   p a r s e _ b a d u g i ( h a n d i n ,   P S T A R S ) ; 
 	 
 	 }   e l s e   i f   ( h a n d i n . f i r s t L i n e . m a t c h ( / ( 5   C a r d   D r a w ) / i ) )   { 
 	 
 	 	 h a n d i n . g a m e L o n g   =   " L i m i t   "   +   R e g E x p . $ 1 ; 
 	 	 i f   ( h a n d i n . f i r s t L i n e . m a t c h ( / n o   l i m i t / i ) )   { 
 	 	 	 h a n d i n . g a m e L o n g   =   " N o   "   +   h a n d i n . g a m e L o n g ; 
 	 	 }   e l s e   i f   ( h a n d i n . f i r s t L i n e . m a t c h ( / p o t   l i m i t / i ) )   { 
 	 	 	 h a n d i n . g a m e L o n g   =   " P o t   "   +   h a n d i n . g a m e L o n g ; 
 	 	 } 
 	 	 h a n d i n . g a m e S h o r t   =   " D R A W " ; 
 	 	 h a n d i n   =   p a r s e _ f i v e c a r d d r a w ( h a n d i n ,   P S T A R S ) ; 
 	 	 
 	 }   e l s e   { 
 	 
 
 	 	 h a n d i n . e r r o r   =   " G a m e   t y p e   n o t   c u r r e n t l y   s u p p o r t e d . " ; 
 
 	 } 
 	 
 	 
 
 	 r e t u r n   h a n d i n ; 
 
 } 
 
 f u n c t i o n   p a r s e _ s i t e _ c e r e u s ( h a n d i n )   { 
 
 	 / / d e t e r m i n e   w h i c h   g a m e   i s   b e i n g   p l a y e d 
 	 i f   ( h a n d i n . f i r s t L i n e . m a t c h ( / H o l d e m   . * ( N o | P o t )   L i m i t / ) )   {   / / ' 
 	 	 h a n d i n . g a m e L o n g   =   R e g E x p . $ 1   +   "   L i m i t   H o l d \ ' e m " ; 
 	 	 h a n d i n . g a m e S h o r t   =   " N L H E " ; 
 	 	 h a n d i n   =   p a r s e _ h o l d e m ( h a n d i n ,   C E R E U S ) ; 
 
 	 }   e l s e   i f   ( h a n d i n . f i r s t L i n e . m a t c h ( / H o l d e m   . * L i m i t / ) )   {   / / ' 
 	 	 h a n d i n . g a m e L o n g   =   " L i m i t   H o l d \ ' e m " ; 
 	 	 h a n d i n . g a m e S h o r t   =   " L H E " ; 
 	 	 h a n d i n   =   p a r s e _ h o l d e m ( h a n d i n ,   C E R E U S ) ; 
 
 	 }   e l s e   i f   ( ( h a n d i n . f i r s t L i n e . m a t c h ( / O m a h a / ) )   | |   ( h a n d i n . f i r s t L i n e . m a t c h ( / o m a h a / i ) ) )   { 
 
 	 	 h a n d i n . g a m e L o n g   =   " O m a h a " ; 
 	 	 i f   ( h a n d i n . f i r s t L i n e . m a t c h ( / n o   l i m i t / i ) )   { 
 	 	 	 h a n d i n . g a m e L o n g   =   " N o   L i m i t   "   +   h a n d i n . g a m e L o n g ; 
 	 	 }   e l s e   i f   ( h a n d i n . f i r s t L i n e . m a t c h ( / p o t   l i m i t / i ) )   { 
 	 	 	 h a n d i n . g a m e L o n g   =   " P o t   L i m i t   "   +   h a n d i n . g a m e L o n g ; 
 	 	 } 
 	 	 i f   ( h a n d i n . f i r s t L i n e . m a t c h ( / h i \ / l o / i ) )   { 
 	 	 	 h a n d i n . g a m e L o n g   =   h a n d i n . g a m e L o n g   +   "   H i / L o " ; 
 	 	 } 
 	 	 h a n d i n . g a m e S h o r t   =   " O M A H A " ; 
 	 	 h a n d i n   =   p a r s e _ o m a h a ( h a n d i n ,   C E R E U S ) ; 
 
 	 }   e l s e   i f   ( ( h a n d i n . f i r s t L i n e . m a t c h ( / ( R a z z ) / i ) )   | |   ( h a n d i n . f i r s t L i n e . m a t c h ( / ( S e v e n   C a r d ) / i ) ) )   { 
 
 	 	 h a n d i n . g a m e L o n g   =   " L i m i t   "   +   R e g E x p . $ 1 ; 
 	 	 i f   ( h a n d i n . f i r s t L i n e . m a t c h ( / n o   l i m i t / i ) )   { 
 	 	 	 h a n d i n . g a m e L o n g   =   " N o   "   +   h a n d i n . g a m e L o n g ; 
 	 	 }   e l s e   i f   ( h a n d i n . f i r s t L i n e . m a t c h ( / p o t   l i m i t / i ) )   { 
 	 	 	 h a n d i n . g a m e L o n g   =   " P o t   "   +   h a n d i n . g a m e L o n g ; 
 	 	 } 
 	 	 i f   ( h a n d i n . f i r s t L i n e . m a t c h ( / h i \ / l o / i ) )   { 
 	 	 	 h a n d i n . g a m e L o n g   =   h a n d i n . g a m e L o n g   +   "   H i / L o " ; 
 	 	 } 
 	 	 h a n d i n . g a m e S h o r t   =   " S T U D " ; 
 	 	 h a n d i n   =   p a r s e _ s t u d ( h a n d i n ,   C E R E U S ) ; 
 
 	 }   e l s e   { 
 
 	 	 h a n d i n . e r r o r   =   " G a m e   t y p e   n o t   c u r r e n t l y   s u p p o r t e d . " 
 	 } 
 
 	 / / t u r n   o f f   C e r e u s   s u p p o r t   h e r e 
 	 / / h a n d i n . e r r o r   =   " C e r e u s   s u p p o r t   c o m i n g   s o o n .     H o l d   y o u r   h o r s e s .     e r . .   c o w s . " ; 
 	 r e t u r n   h a n d i n ; 
 
 } 
 
 f u n c t i o n   p a r s e _ s i t e _ h e m ( h a n d i n )   { 
 
 	 / / g e t   o r i g i n a l   s i t e 
 	 i f   ( h a n d i n . f i r s t L i n e . m a t c h ( / \ ( ( . * ) \ ) / ) )   { 
 	 	 h a n d i n . H E M O r i g i n a l S i t e   =   R e g E x p . $ 1 ; 
 	 } 
 	 
 	 / / d e t e r m i n e   w h i c h   g a m e   i s   b e i n g   p l a y e d 
 	 i f   ( h a n d i n . f i r s t L i n e . m a t c h ( / . *   ( N L | P L )   T e x a s   H o l d / ) )   { 
 	 	 h a n d i n . g a m e L o n g   =   R e g E x p . $ 1   +   "   H o l d \ ' e m " ; 
 	 	 h a n d i n . g a m e S h o r t   =   " N L H E " ; 
 	 	 h a n d i n   =   p a r s e _ h o l d e m ( h a n d i n ,   H E M ) ; 
 
 	 }   e l s e   i f   ( h a n d i n . f i r s t L i n e . m a t c h ( / H o l d e m   . * L i m i t / )   | |   h a n d i n . f i r s t L i n e . m a t c h ( / L i m i t   T e x a s   H o l d \ ' e m / ) )   { 
 	 	 h a n d i n . g a m e L o n g   =   " L i m i t   H o l d \ ' e m " ; 
 	 	 h a n d i n . g a m e S h o r t   =   " L H E " ; 
 	 	 h a n d i n   =   p a r s e _ h o l d e m ( h a n d i n ,   H E M ) ; 
 
 	 }   e l s e   i f   ( ( h a n d i n . f i r s t L i n e . m a t c h ( / O m a h a / ) )   | |   ( h a n d i n . f i r s t L i n e . m a t c h ( / o m a h a / i ) ) )   { 
 
 	 	 h a n d i n . g a m e L o n g   =   " L i m i t   O m a h a " ; 
 	 	 i f   ( h a n d i n . f i r s t L i n e . m a t c h ( / n o   l i m i t / i ) )   { 
 	 	 	 h a n d i n . g a m e L o n g   =   " N o   "   +   h a n d i n . g a m e L o n g ; 
 	 	 }   e l s e   i f   ( h a n d i n . f i r s t L i n e . m a t c h ( /   P L   / i ) )   { 
 	 	 	 h a n d i n . g a m e L o n g   =   " P o t   "   +   h a n d i n . g a m e L o n g ; 
 	 	 } 
 	 	 i f   ( h a n d i n . f i r s t L i n e . m a t c h ( / h i \ / l o / i ) )   { 
 	 	 	 h a n d i n . g a m e L o n g   =   h a n d i n . g a m e L o n g   +   "   H i / L o " ; 
 	 	 } 
 	 	 h a n d i n . g a m e S h o r t   =   " O M A H A " ; 
 	 	 h a n d i n   =   p a r s e _ o m a h a ( h a n d i n ,   H E M ) ; 
 
 	 }   e l s e   i f   ( ( h a n d i n . f i r s t L i n e . m a t c h ( / ( R a z z ) / i ) )   | |   ( h a n d i n . f i r s t L i n e . m a t c h ( / ( S e v e n   C a r d ) / i ) ) )   { 
 
 	 	 h a n d i n . g a m e L o n g   =   " L i m i t   "   +   R e g E x p . $ 1 ; 
 	 	 i f   ( h a n d i n . f i r s t L i n e . m a t c h ( / n o   l i m i t / i ) )   { 
 	 	 	 h a n d i n . g a m e L o n g   =   " N o   "   +   h a n d i n . g a m e L o n g ; 
 	 	 }   e l s e   i f   ( h a n d i n . f i r s t L i n e . m a t c h ( /   P L   / i ) )   { 
 	 	 	 h a n d i n . g a m e L o n g   =   " P o t   "   +   h a n d i n . g a m e L o n g ; 
 	 	 } 
 	 	 i f   ( h a n d i n . f i r s t L i n e . m a t c h ( / h i \ / l o / i ) )   { 
 	 	 	 h a n d i n . g a m e L o n g   =   h a n d i n . g a m e L o n g   +   "   H i / L o " ; 
 	 	 } 
 	 	 h a n d i n . g a m e S h o r t   =   " S T U D " ; 
 	 	 h a n d i n   =   p a r s e _ s t u d ( h a n d i n ,   H E M ) ; 
 
 	 }   e l s e   { 
 
 	 	 h a n d i n . e r r o r   =   " G a m e   t y p e   n o t   c u r r e n t l y   s u p p o r t e d . " 
 	 } 
 
 	 / / t u r n   o f f   C e r e u s   s u p p o r t   h e r e 
 	 / / h a n d i n . e r r o r   =   " C e r e u s   s u p p o r t   c o m i n g   s o o n .     H o l d   y o u r   h o r s e s .     e r . .   c o w s . " ; 
 	 r e t u r n   h a n d i n ; 
 
 } 
 
 
 f u n c t i o n   p a r s e _ s i t e _ t i t a n ( h a n d i n )   { 
 
 
 	 / / r e p l a c e   1 0   c a r d s   w i t h   T   c a r d s   -   n o t e   c u r r e n t l y   i s   a   g l o b a l   r e p l a c e   a n d   w i l l   r e p l a c e   t h e s e   s t r i n g s 
 	 / / i f   t h e y   o c c u r   i n   p l a y e r   n a m e s   t o o 
 	 h a n d i n . u n f o r m a t t e d N o B r e a k s   =   h a n d i n . u n f o r m a t t e d N o B r e a k s . r e p l a c e ( / S 1 0 / g , " S T " ) ; 
 	 h a n d i n . u n f o r m a t t e d N o B r e a k s   =   h a n d i n . u n f o r m a t t e d N o B r e a k s . r e p l a c e ( / C 1 0 / g , " C T " ) ; 
 	 h a n d i n . u n f o r m a t t e d N o B r e a k s   =   h a n d i n . u n f o r m a t t e d N o B r e a k s . r e p l a c e ( / H 1 0 / g , " H T " ) ; 
 	 h a n d i n . u n f o r m a t t e d N o B r e a k s   =   h a n d i n . u n f o r m a t t e d N o B r e a k s . r e p l a c e ( / D 1 0 / g , " D T " ) ; 
 	 
 	 h a n d i n . u n f o r m a t t e d   =   h a n d i n . u n f o r m a t t e d . r e p l a c e ( / S 1 0 / g , " S T " ) ; 
 	 h a n d i n . u n f o r m a t t e d   =   h a n d i n . u n f o r m a t t e d . r e p l a c e ( / C 1 0 / g , " C T " ) ; 
 	 h a n d i n . u n f o r m a t t e d   =   h a n d i n . u n f o r m a t t e d . r e p l a c e ( / H 1 0 / g , " H T " ) ; 
 	 h a n d i n . u n f o r m a t t e d   =   h a n d i n . u n f o r m a t t e d . r e p l a c e ( / D 1 0 / g , " D T " ) ; 
 	 
 	 / / g e t   c u r r e n c y 
 	 h a n d i n . u n f o r m a t t e d N o B r e a k s . m a t c h ( / < c u r r e n c y > ( . * ? ) < \ / c u r r e n c y > / ) ; 
 	 c u r r T e x t   =   R e g E x p . $ 1 ; 
 	 i f   ( c u r r T e x t   = =   " E U R " )   { 
 	 	 h a n d i n . c u r r e n c y T e x t   =   " ¬ " ; 
 	 }   e l s e   i f   ( c u r r T e x t   = =   " G B P " )   { 
 	 	 h a n d i n . c u r r e n c y T e x t   =   " £ " ; 
 	 }   e l s e   i f   ( c u r r T e x t   =   " U S D " )   { 
 	 	 h a n d i n . c u r r e n c y T e x t   =   " $ " ; 
 	 } 
   	 
 	 
 	 / / d e t e r m i n e   w h i c h   g a m e   i s   b e i n g   p l a y e d 
 	 h a n d i n . u n f o r m a t t e d N o B r e a k s . m a t c h ( / < g a m e t y p e > ( . * ) < \ / g a m e t y p e > / ) ; 
 
 	 g a m e t y p e   =   R e g E x p . $ 1 ; 
 	 
 	 
 	 i f   ( g a m e t y p e . m a t c h ( / H o l d e m   N L / ) )   { 
 	 	 h a n d i n . g a m e L o n g   =   " N o   L i m i t   H o l d ' e m " ; 
 	 	 h a n d i n . g a m e S h o r t   =   " N L H E " ; 
 	 	 i f ( g a m e t y p e . m a t c h ( / H o l d e m   N L   ( . * ? ) \ d / ) )   { 
 	 	 	 h a n d i n . c u r r e n c y   =   R e g E x p . $ 1 ; 
 	 	 	 
 	 	 } 
 	 	 
 	 	 h a n d i n   =   p a r s e _ h o l d e m ( h a n d i n , T I T A N ) ; 
 	 } 
 	 
 	 r e t u r n   h a n d i n ; 
 } 
 
 
 f u n c t i o n   p a r s e _ s t u d ( h a n d i n ,   s i t e )   { 
 
 	 / / C a s h   o r   t o u r n a m e n t ? 
 	 i f   ( h a n d i n . f i r s t L i n e . m a t c h ( / T o u r n a m e n t / ) )   { 
 	 	 h a n d i n . g a m e T y p e   =   " T " ; 
 	 	 / / h a n d i n . e r r o r   =   " T o u r n a m e n t   h a n d s   n o t   y e t   s u p p o r t e d . " ; 
 	 }   e l s e   { 
 	 	 h a n d i n . g a m e T y p e   =   " C " ; 
 	 } 
 
 	 / / f i n d   b l i n d s 
 	 i f   ( h a n d i n . f i r s t L i n e . m a t c h ( r e B l i n d s [ s i t e ] ) )   { 
 	 	 h a n d i n . s m a l l B l i n d   =   R e g E x p . $ 1 ; 
 	 	 h a n d i n . b i g B l i n d   =   R e g E x p . $ 2 ; 
 	 } 
 
 	 h a n d i n . s m a l l B l i n d P o s t e d A m o u n t   =   0 ; 
 	 h a n d i n . b i g B l i n d P o s t e d A m o u n t   =   0 ; 
 
 	 / / f i n d   g a m e   s i z e 
 	 i f   ( h a n d i n . u n f o r m a t t e d . m a t c h ( r e G a m e S i z e [ s i t e ] ) )   { 
 	 	 h a n d i n . g a m e S i z e   =   R e g E x p . $ 1   +   ' - m a x ' ; 
 	 } 
 	 e l s e   { 
 	 	 h a n d i n . g a m e S i z e   =   " " ; 
 	 } 
 
 	 h a n d i n . a n t e s T o t a l   =   0 ; 
 	 a n t e L i n e s   =   n e w   A r r a y ; 
 	 / / f i n d   a n t e s 
 	 a n t e T e x t   =   h a n d i n . u n f o r m a t t e d N o B r e a k s . m a t c h ( r e A n t e T e x t [ s i t e ] ) ; 
 	 a n t e L i n e s   =   a n t e T e x t [ 1 ] . s p l i t ( /  %/ ) ; 
 	 n u m A n t e L i n e s   =   a n t e L i n e s . l e n g t h ; 
 	 	 f o r   ( j = 0 ; j < n u m A n t e L i n e s ; + + j )   { 
 	 	 i f   ( a n t e L i n e s [ j ] . m a t c h ( r e A n t e L i n e s [ s i t e ] ) )   { 
 	 	 	 h a n d i n . a n t e   =   R e g E x p . $ 1 ; 
 	 	 	 h a n d i n . a n t e s T o t a l   =   p a r s e F l o a t ( h a n d i n . a n t e s T o t a l )   +   p a r s e F l o a t ( R e g E x p . $ 1 ) ; 
 	 	 } 
 	 } 
 
 	 r e s u l t   =   h a n d i n . u n f o r m a t t e d N o B r e a k s . m a t c h ( r e S e a t i n g T e x t [ s i t e ] ) ; 
 	 i f   ( r e s u l t )   { h a n d i n . s e a t T e x t   =   r e s u l t [ 1 ] ; } 
 	 e l s e   { h a n d i n . s e a t T e x t   =   "   " ; } 
 
 	 h a n d i n . s e a t L i n e s   =   h a n d i n . s e a t T e x t . r e p l a c e ( /  %/ g ,   " \ n " ) ; 
 	 
 	 / / f i n d   n u m b e r   o f   s e a t s 
 	 s e a t s   =   h a n d i n . s e a t L i n e s . m a t c h ( r e F i n d S e a t s [ s i t e ] ) ; 
 	 h a n d i n . n u m P l a y e r s   =   s e a t s . l e n g t h ; 
 	 
 	 / /   f i n d   b u t t o n / b r i n g - i n ? 
 	 i f   ( h a n d i n . u n f o r m a t t e d . m a t c h ( r e B u t t o n [ s i t e ] ) )   { 
 	 	 h a n d i n . b u t t o n   =   R e g E x p . $ 1 ; 
 	 } 
 	 
 	 / / f i n d   p l a y e r   n a m e s   a n d   s t a c k   s i z e s 
 	 p l a y e r L i n e s   =   h a n d i n . s e a t L i n e s . m a t c h ( r e F i n d I n f o [ s i t e ] ) ; 
 	 h a n d i n . p l a y e r s   =   n e w   A r r a y ; 
 	 h a n d i n . s t a c k s   =   n e w   A r r a y ; 
 	 h a n d i n . s e a t N u m b e r s   =   n e w   A r r a y ; 
 
 	 j   =   0 ; 
 	 f o r   ( i   =   0 ;   i   <   h a n d i n . n u m P l a y e r s ;   i   =   i   +   1 )   { 
 	 	 
 	 	 i f   ( p l a y e r L i n e s [ i ] . m a t c h ( r e P l a y e r I n f o [ s i t e ] ) )   { 
 	 	 	 t h e S e a t   =   R e g E x p . $ 1 ; 
 	 	 	 t h e P l a y e r   =   R e g E x p . $ 2 ; 
 	 	 	 t h e S t a c k   =   R e g E x p . $ 3 ; 
 	 	 	 i f   ( ! ( ( p l a y e r L i n e s [ i ] . m a t c h ( / s i t t i n g   o u t / i )   & &   ( h a n d i n . g a m e T y p e   = =   " C " )   & &   ( t h e S e a t   ! =   h a n d i n . b u t t o n ) ) ) ) { 
 	 	 	 	 h a n d i n . s e a t N u m b e r s [ j ]   =   t h e S e a t ; 
 	 	 	 	 h a n d i n . p l a y e r s [ j ]   =   t h e P l a y e r ; 
 	 	 	 	 h a n d i n . s t a c k s [ j ]   =   t h e S t a c k ; 
 	 	 	 	 j + + ; 
 	 	 	 } 
 	 	 } 
 	 } 
 	 i f   ( j   >   0 )   {   h a n d i n . n u m P l a y e r s   =   j ;   } 
 
 	 / /   f i n d   b u t t o n / b r i n g - i n ? 
 	 i f   ( h a n d i n . u n f o r m a t t e d . m a t c h ( r e B u t t o n [ s i t e ] ) )   { 
 	 	 h a n d i n . b u t t o n   =   R e g E x p . $ 1 ; 
 	 } 
 
 	 / / f i n d   c a r d s 
 	 h a n d i n . h o l e C a r d s   =   n e w   A r r a y ; 
 	 v a r   m y R e g E x   =   n e w   R e g E x p ; 
 
 	 / / g e t   h e r o 
 	 v a r   t h i s R e g E x   =   n e w   R e g E x p ; 
 	 t h i s R e g E x . c o m p i l e ( r e S t r e e t M a t c h [ s i t e ] [ 0 ] ) ; 
 	 d e a l t C a r d s   =   t h i s R e g E x . e x e c ( h a n d i n . u n f o r m a t t e d N o B r e a k s ) ; 
 	 i f   ( ! d e a l t C a r d s )   { 
 	 	 v a r   t h i s R e g E x   =   n e w   R e g E x p ; 
 	 	 t h i s R e g E x . c o m p i l e ( r e S t r e e t M a t c h A l t [ s i t e ] [ 0 ] ) ; 
 	 	 d e a l t C a r d s   =   t h i s R e g E x . e x e c ( h a n d i n . u n f o r m a t t e d N o B r e a k s ) ; 
 	 } 
 	 f o r   ( x   =   0 ;   x   <   h a n d i n . n u m P l a y e r s ;   x + + )   { 
 	 	 h a n d i n . h o l e C a r d s [ x ]   =   n e w   A r r a y ; 
 	 	 v a r   m y R e g E x   =   n e w   R e g E x p ; 
 	 	 m y R e g E x . c o m p i l e ( r e G e t H a n d P r e [ s i t e ]   +   h a n d i n . p l a y e r s [ x ]   +   r e G e t H a n d P o s t [ s i t e ] ,   " g " ) ; 
 	 	 s u b r e s u l t   =   d e a l t C a r d s . j o i n ( "  %" ) . m a t c h ( m y R e g E x ) ; 
 	 	 i f   ( s u b r e s u l t )   { 
 	 	 	 h a n d i n . h e r o   =   h a n d i n . p l a y e r s [ x ] ; 
 	 	 } 
 	 	 v a r   m y R e g E x   =   n e w   R e g E x p ; 
 	 	 m y R e g E x . c o m p i l e ( r e G e t H a n d P r e [ s i t e ]   +   e s c a p e T e x t ( h a n d i n . p l a y e r s [ x ] )   +   r e G e t H a n d P o s t 2 [ s i t e ] ,   " g " ) ; 
 	 	 r e s u l t   =   h a n d i n . u n f o r m a t t e d . m a t c h ( m y R e g E x ) ; 
 	 	 i f   ( r e s u l t )   { 
 	 	 	 z   =   r e s u l t . l e n g t h   -   1 ; 
 	 	 }   e l s e   { 
 	 	 	 z   =   - 1 ; 
 	 	 } 
 	 	 w   =   0 ; 
 	 	 i f   ( z   > =   0 )   { 
 	 	 	 s u b r e s u l t   =   r e s u l t [ z ] . m a t c h ( r e M a t c h C a r d [ s i t e ] ) ; 
 	 	 	 h a n d O f f s e t   =   0 ; 
 	 	 	 i f   ( ( h a n d i n . p l a y e r s [ x ]   ! =   h a n d i n . h e r o )   & &   ( s u b r e s u l t . l e n g t h   <   7 ) )   { 
 	 	 	 	 h a n d O f f s e t   =   2 ; 
 	 	 	 	 h a n d i n . h o l e C a r d s [ x ] [ 0 ]   =   ' 1 s ' ; 
 	 	 	 	 h a n d i n . h o l e C a r d s [ x ] [ 1 ]   =   ' 1 s ' ; 
 	 	 	 } 
 	 	 	 e l s e   i f   ( ( h a n d i n . p l a y e r s [ x ]   = =   h a n d i n . h e r o )   & &   ( s u b r e s u l t . l e n g t h   = =   7 )   & &   ( r e s u l t [ z - 1 ] . m a t c h ( r e M a t c h C a r d [ s i t e ] ) . l e n g t h   = =   7 ) )   { 
 	 	 	 	 s u b r e s u l t   =   r e s u l t [ z - 1 ] . m a t c h ( r e M a t c h C a r d [ s i t e ] ) ; 
 	 	 	 } 
 	 	 	 n u m R e s u l t s   = s u b r e s u l t . l e n g t h ; 
 	 	 	 f o r   ( y   = 0 ;   y < n u m R e s u l t s ;   + + y )   { 
 	 	 	 	 h a n d i n . h o l e C a r d s [ x ] [ w   +   h a n d O f f s e t ]   =   s u b r e s u l t [ y ] ; 
 	 	 	 	 w + + ; 
 	 	 	 } 
 	 	 	 z - - ; 
 	 	 } 
 	 } 
 
 	 / / i n i t i a l i z e   2 D   a r r a y s 
 	 h a n d i n . a c t i o n _ t y p e s   =   n e w   A r r a y ; 
 	 h a n d i n . a c t i o n _ p l a y e r s   =   n e w   A r r a y ; 
 	 h a n d i n . a c t i o n _ v a l u e s   =   n e w   A r r a y ; 
 	 h a n d i n . s h o w d o w n _ t y p e s   =   n e w   A r r a y ; 
 	 h a n d i n . a c t i o n _ a d d e d T o P o t   =   n e w   A r r a y ; 
 	 h a n d i n . a c t i o n _ p l a y e r s P o t   =   n e w   A r r a y ; 
 
 	 / / g e t   s t r e e t   c a r d s   n a m e d   d e s i r e 
 	 h a n d i n . c o m m u n i t y C a r d s   =   n e w   A r r a y ; 
 	 h a n d i n . c o m m u n i t y C a r d s [ 1 ]   =   n e w   A r r a y ; 
 	 c a r d C o u n t   =   0 ; 
 	 v a r   t h i s R e g E x   =   n e w   R e g E x p ; 
 	 f o r   ( x   =   0 ;   x   <   5 ;   x + + )   { 
 	 	 / / z e r o   o u t   p l a y e r   c o n t r i b u t i o n s   t o   p o t   f o r   t h i s   s t r e e t 
 	 	 f o r   ( r = 0 ; r < h a n d i n . p l a y e r s . l e n g t h ; r + + )   { 
 	 	 	 h a n d i n . a c t i o n _ p l a y e r s P o t [ r ]   =   0 ; 
 	 	 } 
 	 	 v a r   t h i s R e g E x   =   n e w   R e g E x p ; 
 	 	 t h i s R e g E x . c o m p i l e ( r e S t r e e t M a t c h [ s i t e ] [ x ] ) ; 
 	 	 r e s u l t   =   t h i s R e g E x . e x e c ( h a n d i n . u n f o r m a t t e d N o B r e a k s ) ; 
 	 	 i f   ( ! r e s u l t )   { 
 	 	 	 v a r   t h i s R e g E x   =   n e w   R e g E x p ; 
 	 	 	 t h i s R e g E x . c o m p i l e ( r e S t r e e t M a t c h A l t [ s i t e ] [ x ] ) ; 
 	 	 	 r e s u l t   =   t h i s R e g E x . e x e c ( h a n d i n . u n f o r m a t t e d N o B r e a k s ) ; 
 	 	 } 
 	 	 i f   ( r e s u l t )   { 
 	 	 	 i f   ( s i t e   = =   P S T A R S )   { 
 	 	 	 	 h a n d i n   =   p o k e r S t a r s P a r s e A c t i o n ( h a n d i n ,   r e s u l t [ 1 ] ,   x ) ; 
 	 	 	 } 
 	 	 	 e l s e   i f   ( s i t e   = =   F T P )   { 
 	 	 	 	 h a n d i n   =   f t p P a r s e A c t i o n ( h a n d i n ,   r e s u l t [ 1 ] ,   x ) ; 
 	 	 	 } 
 	 	 	 e l s e   i f   ( s i t e   = =   C E R E U S )   { 
 	 	 	 	 h a n d i n   =   c e r e u s P a r s e A c t i o n ( h a n d i n ,   r e s u l t [ 1 ] ,   x ) ; 
 	 	 	 } 
 	 	 } 
 	 } 
 
 	 / / s u m m a r y 
 	 i f   ( h a n d i n . u n f o r m a t t e d N o B r e a k s . m a t c h ( r e M a t c h S u m m a r y [ s i t e ] ) )   { 
 	 	 h a n d i n . s h o w d o w n T e x t   =   R e g E x p . $ 1 ; 
 
 	 	 / / i f   ( h a n d i n . s h o w d o w n T e x t . m a t c h ( r e M a t c h S u m m a r y [ s i t e ] ) )   { 
 	 	 / / 	 h a n d i n . s h o w d o w n T e x t   =   R e g E x p . $ 1 ; 
 	 	 / / } 
 	 	 h a n d i n . s h o w d o w n L i n e s   =   h a n d i n . s h o w d o w n T e x t . s p l i t ( /  %/ ) ; 
 
 	 	 / / i n i t i a l i z e   2 D   a r r a y s 
 	 	 h a n d i n . s h o w d o w n _ h a n d s   =   n e w   A r r a y ;       / /   t w o   p a i r ,   F i v e s   a n d   F o u r s 
 	 	 h a n d i n . s h o w d o w n _ p l a y e r s   =   n e w   A r r a y ;   / /   < n i c k > 
 	 	 h a n d i n . s h o w d o w n _ c a r d s   =   n e w   A r r a y ;       / /     J h   Q s   e t c 
 	 	 h a n d i n . s h o w d o w n _ t y p e s   =   n e w   A r r a y ;       / /   w o n ,   l o s t ,   m u c k e d ,   c o l l e c t e d 
 	 	 h a n d i n . r e s u l t _ p l a y e r s   =   n e w   A r r a y ; 
 	 	 h a n d i n . r e s u l t _ v a l u e s   =   n e w   A r r a y ; 
 
 	 	 / / l o o p   t h r o u g h   s h o w d o w n   l i n e s 
 	 	 p l a y e r C o u n t   =   - 1 ; 
 	 	 r e s u l t C o u n t   =   - 1 ; 
 	 	 f o r   ( i   =   0 ;   i   <   h a n d i n . s h o w d o w n L i n e s . l e n g t h ;   i   =   i   +   1 )   { 
 	 	 	 i f   ( h a n d i n . s h o w d o w n L i n e s [ i ] . m a t c h ( r e S u m m a r y E x t r a c t i o n 1 [ s i t e ] ) )   { 
 	 	 	 	 p l a y e r C o u n t + + ; 
 	 	 	 	 h a n d i n . s h o w d o w n _ p l a y e r s [ p l a y e r C o u n t ]   =   R e g E x p . $ 1 ; 
 	 	 	 	 h a n d i n . s h o w d o w n _ t y p e s [ p l a y e r C o u n t ]   =   R e g E x p . $ 2 ; 
 	 	 	 	 p a r t T e m p   =   R e g E x p . $ 3 ; 
 	 	 	 	 i f   ( s i t e   = =   C E R E U S )   {   p a r t T e m p   =   R e g E x p . $ 2   +   R e g E x p . $ 3 ;   } 
 	 	 	 	 i f   ( p a r t T e m p . m a t c h ( / (   w o n   |   c o l l e c t e d   ) / ) )   { 
 	 	 	 	 	 h a n d i n . s h o w d o w n _ t y p e s [ p l a y e r C o u n t ]   =   " w o n " ; 
 	 	 	 	 } 
 	 	 	 	 / / e l s e   { 
 	 	 	 	 / / 	 h a n d i n . s h o w d o w n _ t y p e s [ p l a y e r C o u n t ]   =   " l o s t " ; 
 	 	 	 	 / / } 
 	 	 	 	 h a n d i n . s h o w d o w n _ c a r d s [ p l a y e r C o u n t ]   =   n e w   A r r a y ; 
 	 	 	 	 i f   ( p a r t T e m p )   { 
 	 	 	 	 	 i f   ( p a r t T e m p . m a t c h ( r e T h e M o n e y [ s i t e ] ) )   { 
 	 	 	 	 	 	 r e s u l t C o u n t + + ; 
 	 	 	 	 	 	 h a n d i n . r e s u l t _ p l a y e r s [ r e s u l t C o u n t ]   =   h a n d i n . s h o w d o w n _ p l a y e r s [ p l a y e r C o u n t ] ; 
 	 	 	 	 	 	 h a n d i n . r e s u l t _ v a l u e s [ r e s u l t C o u n t ]   =   R e g E x p . $ 1 ; 
 	 	 	 	 	 } 
 	 	 	 	 	 i f   ( p a r t T e m p . m a t c h ( r e S t u d S u m m a r y E x t r a c t i o n 2 [ s i t e ] ) )   { 
 	 	 	 	 	 	 s w i t c h ( s i t e )   { 
 	 	 	 	 	 	 c a s e   P S T A R S : 
 	 	 	 	 	 	 c a s e   F T P : 
 	 	 	 	 	 	 	 i f   ( R e g E x p . $ 9 )   { 
 	 	 	 	 	 	 	 	 h a n d i n . s h o w d o w n _ h a n d s [ p l a y e r C o u n t ]   =   R e g E x p . $ 9 ; 
 	 	 	 	 	 	 	 } 
 	 	 	 	 	 	 	 e l s e   {   h a n d i n . s h o w d o w n _ h a n d s [ p l a y e r C o u n t ]   =   "   " ;   } 
 	 	 	 	 	 	 	 b r e a k ; 
 	 	 	 	 	 	 c a s e   C E R E U S : 
 	 	 	 	 	 	 	 h a n d i n . s h o w d o w n _ h a n d s [ p l a y e r C o u n t ]   =   R e g E x p . $ 2 ; 
 	 	 	 	 	 	 	 b r e a k ; 
 	 	 	 	 	 	 } 
 	 	 	 	 	 } 
 	 	 	 	 } 
 	 	 	 	 e l s e   {   h a n d i n . s h o w d o w n _ c a r d s [ p l a y e r C o u n t ] [ 0 ]   =   ' m u c k s ' ;   } 
 	 	 	 } 
 	 	 } 
 
 	 	 / / r a k e 
 	 	 i f   ( h a n d i n . u n f o r m a t t e d . m a t c h ( r e R a k e [ s i t e ] ) )   { 
 	 	 	 h a n d i n . r a k e   =   R e g E x p . $ 1 ; 
 	 	 } 
 	 } 
 
 	 r e t u r n   h a n d i n ; 
 
 } 
 
 f u n c t i o n   p a r s e _ h o l d e m ( h a n d i n ,   s i t e )   { 
 
 	 / / C a s h   o r   t o u r n a m e n t ? 
 	 i f   ( h a n d i n . u n f o r m a t t e d . m a t c h ( r e G a m e T y p e [ s i t e ] ) )   { 
 	 	 h a n d i n . g a m e T y p e   =   " T " ; 
 	 }   e l s e   { 
 	 	 h a n d i n . g a m e T y p e   =   " C " ; 
 	 } 
 
 
 	 / / f i n d   b l i n d s 
 	 i f   ( h a n d i n . u n f o r m a t t e d . m a t c h ( r e B l i n d s [ s i t e ] ) )   { 
 	 	 h a n d i n . s m a l l B l i n d   =   R e g E x p . $ 1 ; 
 	 	 h a n d i n . b i g B l i n d   =   R e g E x p . $ 2 ; 
 	 } 
 
 	 h a n d i n . s m a l l B l i n d P o s t e d A m o u n t   =   0 ; 
 	 h a n d i n . b i g B l i n d P o s t e d A m o u n t   =   0 ; 
 
 	 / / f i n d   g a m e   s i z e 
 	 i f   ( h a n d i n . u n f o r m a t t e d . m a t c h ( r e G a m e S i z e [ s i t e ] ) )   { 
 	 	 h a n d i n . g a m e S i z e   =   R e g E x p . $ 1   +   ' - m a x ' ; 
 	 } 
 	 e l s e   { 
 	 	 h a n d i n . g a m e S i z e   =   " " ; 
 	 } 
 
 	 h a n d i n . a n t e s T o t a l   =   0 ; 
 	 a n t e L i n e s   =   n e w   A r r a y ; 
 	 / / f i n d   a n t e s 
 	 a n t e T e x t   =   h a n d i n . u n f o r m a t t e d N o B r e a k s . m a t c h ( r e A n t e T e x t [ s i t e ] ) ; 
       i f   ( a n t e T e x t )   { 
 	 	 a n t e L i n e s   =   a n t e T e x t [ 1 ] . s p l i t ( /  %/ ) ; 
 	 	 n u m A n t e L i n e s   =   a n t e L i n e s . l e n g t h ; 
 	 	 f o r   ( j = 0 ; j < n u m A n t e L i n e s ; + + j )   { 
 	 	 	 i f   ( a n t e L i n e s [ j ] . m a t c h ( r e A n t e L i n e s [ s i t e ] ) )   { 
 	 	 	 	 h a n d i n . a n t e   =   R e g E x p . $ 1 ; 
 	 	 	 	 h a n d i n . a n t e s T o t a l   =   p a r s e F l o a t ( h a n d i n . a n t e s T o t a l )   +   p a r s e F l o a t ( R e g E x p . $ 1 ) ; 
 	 	 	 } 
 	 	 } 
 	 } 
 	 
 	 r e s u l t   =   h a n d i n . u n f o r m a t t e d N o B r e a k s . m a t c h ( r e S e a t i n g T e x t [ s i t e ] ) ; 
 	 i f   ( r e s u l t )   { h a n d i n . s e a t T e x t   =   r e s u l t [ 1 ] ; } 
 	 e l s e   { h a n d i n . s e a t T e x t   =   "   " ; } 
 
 	 
 	 h a n d i n . s e a t L i n e s   =   h a n d i n . s e a t T e x t . r e p l a c e ( /  %/ g ,   " \ n " ) ; 
 	 
 	 / / f i n d   n u m b e r   o f   s e a t s 
 	 s e a t s   =   h a n d i n . s e a t L i n e s . m a t c h ( r e F i n d S e a t s [ s i t e ] ) ; 
 	 h a n d i n . n u m P l a y e r s   =   s e a t s . l e n g t h ; 
 	 
 	 / /   f i n d   b u t t o n / b r i n g - i n ? 
 	 i f   ( h a n d i n . u n f o r m a t t e d . m a t c h ( r e B u t t o n [ s i t e ] ) )   { 
 	 	 h a n d i n . b u t t o n   =   R e g E x p . $ 1 ; 
 	 } 
 	 
 	 / / f i n d   p l a y e r   n a m e s   a n d   s t a c k   s i z e s 
 	 p l a y e r L i n e s   =   h a n d i n . s e a t L i n e s . m a t c h ( r e F i n d I n f o [ s i t e ] ) ; 
 	 h a n d i n . p l a y e r s   =   n e w   A r r a y ; 
 	 h a n d i n . s t a c k s   =   n e w   A r r a y ; 
 	 h a n d i n . s e a t N u m b e r s   =   n e w   A r r a y ; 
 
 	 j   =   0 ; 
 	 f o r   ( i   =   0 ;   i   <   h a n d i n . n u m P l a y e r s ;   i   =   i   +   1 )   { 
 	 	 
 	 	 i f   ( p l a y e r L i n e s [ i ] . m a t c h ( r e P l a y e r I n f o [ s i t e ] ) )   { 
 	 	 	 t h e S e a t   =   R e g E x p . $ 1 ; 
 	 	 	 t h e P l a y e r   =   R e g E x p . $ 2 ; 
 	 	 	 t h e S t a c k   =   R e g E x p . $ 3 ; 
 	 	 	 i f   ( ! ( ( p l a y e r L i n e s [ i ] . m a t c h ( / s i t t i n g   o u t / i )   & &   ( h a n d i n . g a m e T y p e   = =   " C " )   & &   ( t h e S e a t   ! =   h a n d i n . b u t t o n ) ) ) ) { 
 	 	 	 	 h a n d i n . s e a t N u m b e r s [ j ]   =   t h e S e a t ; 
 	 	 	 	 h a n d i n . p l a y e r s [ j ]   =   t h e P l a y e r ; 
 	 	 	 	 h a n d i n . s t a c k s [ j ]   =   t h e S t a c k ; 
 	 	 	 	 j + + ; 
 	 	 	 } 
 	 	 } 
 	 } 
 	 i f   ( j   >   0 )   {   h a n d i n . n u m P l a y e r s   =   j ;   } 
 
 
 	 / / f i n d   h o l e   c a r d s 
 	 h a n d i n . h o l e C a r d s   =   n e w   A r r a y ; 
 	 h a n d i n . h o l e C a r d s [ 0 ]   =   n e w   A r r a y ; 
 	 
 	 i f   ( h a n d i n . s i t e   = =   " T i t a n " )   { 
 	 	 
 	 	 
 	 	 / / h a v e   t o   g e t   h e r o   f i r s t   s i n c e   h o l e   c a r d s   f o r   a l l   s h o w d o w n   p l a y e r s   l i s t e d   t o g e t h e r 
 	 	 h a n d i n . u n f o r m a t t e d . m a t c h ( r e H e r o [ s i t e ] ) ; 
 	 	 h a n d i n . h e r o = R e g E x p . $ 1 ; 
 	 	 
 	 	 / / m a k e   r e g e x   t o   g e t   h e r o ' s   h o l e   c a r d s 
 	 	 r e H e r o H o l e C a r d s   =   ' c a r d s   t y p e = \ " P o c k e t \ "   p l a y e r = \ " '   +   a d d s l a s h e s ( h a n d i n . h e r o ) +   ' \ " > ( [ H D S C ] [ 2 - 9 T J Q K A ] )   ( [ H D S C ] [ 2 - 9 T J Q K A ] ) ' ; 
 	 	 
 	 	 i f   ( h a n d i n . u n f o r m a t t e d . m a t c h ( r e H e r o H o l e C a r d s ) )   { 
 	 	 
 	 	 	 
 	 	 	 h a n d i n . h o l e C a r d s [ 0 ] [ 0 ]   =   R e g E x p . $ 1 ; 
 	 	 	 h a n d i n . h o l e C a r d s [ 0 ] [ 1 ]   =   R e g E x p . $ 2 ; 
 	 	 	 
 	 	 	 / / s w a p   c a r d   t e x t 
 	 	 	 h a n d i n . h o l e C a r d s [ 0 ] [ 0 ]   =   r e v e r s e C a r d s ( h a n d i n . h o l e C a r d s [ 0 ] [ 0 ] ) . c a p i t a l i z e ( ) ; 
 	 	 	 h a n d i n . h o l e C a r d s [ 0 ] [ 1 ]   =   r e v e r s e C a r d s ( h a n d i n . h o l e C a r d s [ 0 ] [ 1 ] ) . c a p i t a l i z e ( ) ; 
 	 	 	 
 	 	 } 	 
 	 	 
 
 	 	 
 	 	 	 	 
 	 }   e l s e   { 
 	 	 
 	 	 i f   ( h a n d i n . u n f o r m a t t e d . m a t c h ( r e H E H o l e C a r d s [ s i t e ] ) )   { 
 	 	 	 
 	 	 	 h a n d i n . h e r o   =   R e g E x p . $ 1 ; 
 	 	 	 h a n d i n . h o l e C a r d s [ 0 ] [ 0 ]   =   R e g E x p . $ 2 ; 
 	 	 	 h a n d i n . h o l e C a r d s [ 0 ] [ 1 ]   =   R e g E x p . $ 3 ; 
 	 	 } 
 	 } 
 	 / / i n i t i a l i z e   2 D   a r r a y s 
 	 h a n d i n . a c t i o n _ t y p e s   =   n e w   A r r a y ; 
 	 h a n d i n . a c t i o n _ p l a y e r s   =   n e w   A r r a y ; 
 	 h a n d i n . a c t i o n _ v a l u e s   =   n e w   A r r a y ; 
 	 h a n d i n . a c t i o n _ a d d e d T o P o t   =   n e w   A r r a y ; 
 	 h a n d i n . a c t i o n _ p l a y e r s P o t   =   n e w   A r r a y ; 
 
 	 / / z e r o   o u t   p l a y e r   c o n t r i b u t i o n s   t o   p o t   f o r   t h i s   s t r e e t 
 	 f o r   ( r = 0 ; r < h a n d i n . p l a y e r s . l e n g t h ; r + + )   { 
 	 	 h a n d i n . a c t i o n _ p l a y e r s P o t [ r ]   =   0 ; 
 	 } 
 
 	 h a n d i n . c u r r e n t A c t i o n   =   0 ; 
 	 / / b u t   a d d   i n   S B 
 	 i f   ( h a n d i n . u n f o r m a t t e d . m a t c h ( r e S m a l l B l i n d [ s i t e ] ) )   { 
 	 	 h a n d i n . s m a l l B l i n d P o s t e d B y   =   R e g E x p . $ 1 ; 
 	 	 h a n d i n . s m a l l B l i n d P o s t e d A m o u n t   =   R e g E x p . $ 2 ; ; 
 	 	 / / p l a y e r I n d e x   =   h a n d i n . p l a y e r s . i n d e x O f ( h a n d i n . s m a l l B l i n d P o s t e d B y ) ; 
 	 	 p l a y e r I n d e x   =   f i n d I n d e x ( h a n d i n . p l a y e r s ,   h a n d i n . s m a l l B l i n d P o s t e d B y ) ; 
 	 	 h a n d i n . a c t i o n _ p l a y e r s P o t [ p l a y e r I n d e x ]   =   h a n d i n . s m a l l B l i n d P o s t e d A m o u n t ; 
 	 } 
 	 / / a n d   B B 
 	 i f   ( h a n d i n . u n f o r m a t t e d . m a t c h ( r e B i g B l i n d [ s i t e ] ) )   { 
 	 	 h a n d i n . b i g B l i n d P o s t e d B y   =   R e g E x p . $ 1 ; 
 	 	 h a n d i n . b i g B l i n d P o s t e d A m o u n t   =   R e g E x p . $ 2 ; 
 	 	 p l a y e r I n d e x   =   f i n d I n d e x ( h a n d i n . p l a y e r s ,   h a n d i n . b i g B l i n d P o s t e d B y ) ; 
 	 	 h a n d i n . a c t i o n _ p l a y e r s P o t [ p l a y e r I n d e x ]   =   h a n d i n . b i g B l i n d P o s t e d A m o u n t ; 
 	 	 / / f o r   t i t a n ,   f i n d   a c t i o n   n u m b e r   o f   B i g   B l i n d 
 	 	 i f   ( s i t e = = T I T A N )   { 
 	 	 	 
 	 	 	 r e B B a c t i o n   =   ' < a c t i o n   n o = \ " ( \ \ d ) \ "   p l a y e r = \ " '   + h a n d i n . b i g B l i n d P o s t e d B y + ' \ "   t y p e = \ " 2 \ " ' ; 
 	 	 	 i f   ( h a n d i n . u n f o r m a t t e d . m a t c h ( r e B B a c t i o n ) )   { 
 	 	 	 	 h a n d i n . c u r r e n t A c t i o n   =   c l e a n N u m ( R e g E x p . $ 1 ) ; 
 	 	 	 	 
 	 	 	 }     
 	 	 
 	 	 } 
 	 } 
 	 
 	 i f   ( ! h a n d i n . s m a l l B l i n d )   { 
 	 	 h a n d i n . s m a l l B l i n d   =   h a n d i n . s m a l l B l i n d P o s t e d A m o u n t ; 
 	 	 h a n d i n . b i g B l i n d   =   h a n d i n . b i g B l i n d P o s t e d A m o u n t ; 
 	 } 	 
 	 / / f i n d   p r e f l o p   a c t i o n 
 	 r e s u l t   =   h a n d i n . u n f o r m a t t e d N o B r e a k s . m a t c h ( r e P r e f l o p A c t i o n [ s i t e ] ) ; 
 	 i f   ( ! r e s u l t )   {   r e s u l t   =   h a n d i n . u n f o r m a t t e d N o B r e a k s . m a t c h ( r e P r e f l o p A c t i o n A l t [ s i t e ] ) ;   } 
 	 i f   ( r e s u l t )   { 
 	 	 h a n d i n . p r e f l o p T e x t   =   R e g E x p . $ 1 ; 
 	 	 i f   ( s i t e   = =   P S T A R S )   {   h a n d i n   =   p o k e r S t a r s P a r s e A c t i o n ( h a n d i n ,   h a n d i n . p r e f l o p T e x t ,   0 ) ;   } 
 	 	 i f   ( s i t e   = =   F T P )   {   h a n d i n   =   f t p P a r s e A c t i o n ( h a n d i n ,   h a n d i n . p r e f l o p T e x t ,   0 ) ;   } 
 	 	 e l s e   i f   ( s i t e   = =   C E R E U S )   {   h a n d i n   =   c e r e u s P a r s e A c t i o n ( h a n d i n ,   h a n d i n . p r e f l o p T e x t ,   0 ) ;   } 
 	 	 e l s e   i f   ( s i t e   = =   H E M )   { h a n d i n   =   H E M P a r s e A c t i o n ( h a n d i n , h a n d i n . p r e f l o p T e x t , 0 ) ; } 
 	 	 e l s e   i f   ( s i t e   = =   T I T A N )   { h a n d i n   =   t i t a n P a r s e A c t i o n ( h a n d i n , h a n d i n . p r e f l o p T e x t , 0 ) ; } 
 	 } 
 
 	 / / g e t   f l o p   c a r d s 
 	 h a n d i n . c o m m u n i t y C a r d s   =   n e w   A r r a y ; 
 	 h a n d i n . c o m m u n i t y C a r d s [ 1 ]   =   n e w   A r r a y ; 
 	 i f   ( h a n d i n . u n f o r m a t t e d . m a t c h ( r e F l o p [ s i t e ] ) )   { 
 	 	 h a n d i n . c o m m u n i t y C a r d s [ 1 ] [ 0 ]   =   R e g E x p . $ 1 ; 
 	 	 h a n d i n . c o m m u n i t y C a r d s [ 1 ] [ 1 ]   =   R e g E x p . $ 2 ; 
 	 	 h a n d i n . c o m m u n i t y C a r d s [ 1 ] [ 2 ]   =   R e g E x p . $ 3 ; 
 	 	 
 	 	 i f   ( s i t e   = =   T I T A N )   { 
 	 	 	 h a n d i n . c o m m u n i t y C a r d s [ 1 ] [ 0 ]   =   r e v e r s e C a r d s ( h a n d i n . c o m m u n i t y C a r d s [ 1 ] [ 0 ] ) . c a p i t a l i z e ( ) ; 
 	 	 	 h a n d i n . c o m m u n i t y C a r d s [ 1 ] [ 1 ]   =   r e v e r s e C a r d s ( h a n d i n . c o m m u n i t y C a r d s [ 1 ] [ 1 ] ) . c a p i t a l i z e ( ) ; 
 	 	 	 h a n d i n . c o m m u n i t y C a r d s [ 1 ] [ 2 ]   =   r e v e r s e C a r d s ( h a n d i n . c o m m u n i t y C a r d s [ 1 ] [ 2 ] ) . c a p i t a l i z e ( ) ; 
 	 	 } 
 	 } 
 	 e l s e   { 
 	 	 m y R e g E x   =   n e w   R e g E x p ; 
 	 	 m y R e g E x   =   m y R e g E x . c o m p i l e ( r e F l o p R u n I t [ s i t e ] , " g " ) ; 
 	       r e s u l t   =   h a n d i n . u n f o r m a t t e d . m a t c h ( m y R e g E x ) ; 
 	 	 i f   ( r e s u l t )   { 
 	 	       i   =   0 ;   j   =   0 ; 
 	 	 	 m y R e g E x   =   n e w   R e g E x p ; 
 	 	 	 m y R e g E x   =   m y R e g E x . c o m p i l e ( r e F l o p R u n I t [ s i t e ] ) ; 
 	 	 	 w h i l e   ( r e s u l t [ i ] )   { 
 	 	 	       s u b r e s u l t   =   r e s u l t [ i ] . m a t c h ( m y R e g E x ) ; 
 	 	 	       h a n d i n . c o m m u n i t y C a r d s [ 1 ] [ j + + ]   =   s u b r e s u l t [ 2 ] ; 
 	 	 	       h a n d i n . c o m m u n i t y C a r d s [ 1 ] [ j + + ]   =   s u b r e s u l t [ 3 ] ; 
 	 	 	       h a n d i n . c o m m u n i t y C a r d s [ 1 ] [ j + + ]   =   s u b r e s u l t [ 4 ] ; 
 	 	 	 	 i + + ; 
 	 	 	 } 
 	 	 } 
 	 } 
 
 	 / / z e r o   o u t   p l a y e r   c o n t r i b u t i o n s   t o   p o t   f o r   t h i s   s t r e e t 
 	 f o r   ( r = 0 ; r < h a n d i n . p l a y e r s . l e n g t h ; r + + )   { 
 	 	 h a n d i n . a c t i o n _ p l a y e r s P o t [ r ]   =   0 ; 
 	 } 
 
 	 / / f i n d   f l o p   a c t i o n 
 	 r e s u l t   =   h a n d i n . u n f o r m a t t e d N o B r e a k s . m a t c h ( r e F l o p A c t i o n [ s i t e ] ) ; 
 	 i f   ( ! r e s u l t )   {   r e s u l t   =   h a n d i n . u n f o r m a t t e d N o B r e a k s . m a t c h ( r e F l o p A c t i o n A l t [ s i t e ] ) ;   } 
 	 i f   ( r e s u l t )   { 
 	 	 h a n d i n . f l o p T e x t   =   R e g E x p . $ 1 ; 
 	 	 i f   ( s i t e   = =   P S T A R S )   {   h a n d i n   =   p o k e r S t a r s P a r s e A c t i o n ( h a n d i n ,   h a n d i n . f l o p T e x t ,   1 ) ;   } 
 	 	 e l s e   i f   ( s i t e   = =   F T P )   {   h a n d i n   =   f t p P a r s e A c t i o n ( h a n d i n ,   h a n d i n . f l o p T e x t ,   1 ) ;   } 
 	 	 e l s e   i f   ( s i t e   = =   C E R E U S )   {   h a n d i n   =   c e r e u s P a r s e A c t i o n ( h a n d i n ,   h a n d i n . f l o p T e x t ,   1 ) ;   } 
 	 	 e l s e   i f   ( s i t e   = =   H E M )   { h a n d i n   =   H E M P a r s e A c t i o n ( h a n d i n , h a n d i n . f l o p T e x t , 1 ) ; } 
 	 	 e l s e   i f   ( s i t e   = =   T I T A N )   { h a n d i n   =   t i t a n P a r s e A c t i o n ( h a n d i n , h a n d i n . f l o p T e x t , 1 ) ; } 
 	 } 
 
 	 / / g e t   t u r n   c a r d 
 	 h a n d i n . c o m m u n i t y C a r d s [ 2 ]   =   n e w   A r r a y ; 
 	 i f   ( h a n d i n . u n f o r m a t t e d . m a t c h ( r e T u r n [ s i t e ] ) )   { 
 	 	 h a n d i n . c o m m u n i t y C a r d s [ 2 ] [ 0 ]   =   R e g E x p . $ 1 ; 
 	 	 i f   ( s i t e   = =   T I T A N )   { 
 	 	 	 h a n d i n . c o m m u n i t y C a r d s [ 2 ] [ 0 ]   =   r e v e r s e C a r d s ( h a n d i n . c o m m u n i t y C a r d s [ 2 ] [ 0 ] ) . c a p i t a l i z e ( ) ; 
 	 	 } 
 	 } 
 	 e l s e   { 
 	 	 m y R e g E x T   =   n e w   R e g E x p ; 
 	 	 m y R e g E x T   =   m y R e g E x T . c o m p i l e ( r e T u r n R u n I t [ s i t e ] , " g " ) ; 
 	       r e s u l t   =   h a n d i n . u n f o r m a t t e d . m a t c h ( m y R e g E x T ) ; 
 	 	 i f   ( r e s u l t )   { 
 	 	       i   =   0 ;   j   =   0 ; 
 	 	         m y R e g E x S   =   n e w   R e g E x p ; 
 	 	 	 m y R e g E x S   =   m y R e g E x S . c o m p i l e ( r e T u r n R u n I t [ s i t e ] ) ; 
 	 	 	 w h i l e   ( r e s u l t [ i ] )   { 
 	 	 	       s u b r e s u l t   =   r e s u l t [ i ] . m a t c h ( m y R e g E x S ) ; 
 	 	 	       h a n d i n . c o m m u n i t y C a r d s [ 2 ] [ j + + ]   =   s u b r e s u l t [ 2 ] ; 
 	 	 	 	 i + + ; 
 	 	 	 } 
 	 	 } 
 	 } 
 	 / / z e r o   o u t   p l a y e r   c o n t r i b u t i o n s   t o   p o t   f o r   t h i s   s t r e e t 
 	 f o r   ( r = 0 ; r < h a n d i n . p l a y e r s . l e n g t h ; r + + )   { 
 	 	 h a n d i n . a c t i o n _ p l a y e r s P o t [ r ]   =   0 ; 
 	 } 
 
 	 / / f i n d   t u r n   a c t i o n 
 	 r e s u l t   =   h a n d i n . u n f o r m a t t e d N o B r e a k s . m a t c h ( r e T u r n A c t i o n [ s i t e ] ) ; 
 	 i f   ( ! r e s u l t )   {   r e s u l t   =   h a n d i n . u n f o r m a t t e d N o B r e a k s . m a t c h ( r e T u r n A c t i o n A l t [ s i t e ] ) ;   } 
 	 i f   ( r e s u l t )   { 
 	 	 h a n d i n . t u r n T e x t   =   R e g E x p . $ 1 ; 
 	 	 i f   ( s i t e   = =   P S T A R S )   {   h a n d i n   =   p o k e r S t a r s P a r s e A c t i o n ( h a n d i n ,   h a n d i n . t u r n T e x t ,   2 ) ;   } 
 	 	 e l s e   i f   ( s i t e   = =   F T P )   {   h a n d i n   =   f t p P a r s e A c t i o n ( h a n d i n ,   h a n d i n . t u r n T e x t ,   2 ) ;   } 
 	 	 e l s e   i f   ( s i t e   = =   C E R E U S )   {   h a n d i n   =   c e r e u s P a r s e A c t i o n ( h a n d i n ,   h a n d i n . t u r n T e x t ,   2 ) ;   } 
 	 	 e l s e   i f   ( s i t e   = =   H E M )   { h a n d i n   =   H E M P a r s e A c t i o n ( h a n d i n , h a n d i n . t u r n T e x t , 2 ) ; } 
 	 	 e l s e   i f   ( s i t e   = =   T I T A N )   { h a n d i n   =   t i t a n P a r s e A c t i o n ( h a n d i n , h a n d i n . t u r n T e x t , 2 ) ; } 
 	 } 
 
 	 / / g e t   r i v e r   c a r d 
 	 h a n d i n . c o m m u n i t y C a r d s [ 3 ]   =   n e w   A r r a y ; 
 	 i f   ( h a n d i n . u n f o r m a t t e d . m a t c h ( r e R i v e r [ s i t e ] ) )   { 
 	 	 h a n d i n . c o m m u n i t y C a r d s [ 3 ] [ 0 ]   =   R e g E x p . $ 1 ; 
 	 	 i f   ( s i t e   = =   T I T A N )   { 
 	 	 	 h a n d i n . c o m m u n i t y C a r d s [ 3 ] [ 0 ]   =   r e v e r s e C a r d s ( h a n d i n . c o m m u n i t y C a r d s [ 3 ] [ 0 ] ) . c a p i t a l i z e ( ) ; 
 	 	 } 
 	 } 
 	 e l s e   { 
 	 	 m y R e g E x   =   n e w   R e g E x p ; 
 	 	 m y R e g E x   =   m y R e g E x . c o m p i l e ( r e R i v e r R u n I t [ s i t e ] , " g " ) ; 
 	       r e s u l t   =   h a n d i n . u n f o r m a t t e d . m a t c h ( m y R e g E x ) ; 
 	 	 i f   ( r e s u l t )   { 
 	 	       i   =   0 ;   j   =   0 ; 
 	 	       m y R e g E x   =   n e w   R e g E x p ; 
 	 	 	 m y R e g E x   =   m y R e g E x . c o m p i l e ( r e R i v e r R u n I t [ s i t e ] ) ; 
 	 	 	 w h i l e   ( r e s u l t [ i ] )   { 
 	 	 	 	 / / m y R e g E x   =   m y R e g E x . c o m p i l e ( r e R i v e r R u n I t [ s i t e ] ) ; 
 	 	 	       s u b r e s u l t   =   r e s u l t [ i ] . m a t c h ( m y R e g E x ) ; 
 	 	 	       h a n d i n . c o m m u n i t y C a r d s [ 3 ] [ j + + ]   =   s u b r e s u l t [ 2 ] ; 
 	 	 	 	 i + + ; 
 	 	 	 } 
 	 	 	 h a n d i n . r u n t i m e s   =   i ; 
 	 	 } 
 	 } 
 	 / / z e r o   o u t   p l a y e r   c o n t r i b u t i o n s   t o   p o t   f o r   t h i s   s t r e e t 
 	 f o r   ( r = 0 ; r < h a n d i n . p l a y e r s . l e n g t h ; r + + )   { 
 	 	 h a n d i n . a c t i o n _ p l a y e r s P o t [ r ]   =   0 ; 
 	 } 
 
 	 / / f i n d   r i v e r   a c t i o n 
 	 r e s u l t   =   h a n d i n . u n f o r m a t t e d N o B r e a k s . m a t c h ( r e R i v e r A c t i o n [ s i t e ] ) ; 
 	 i f   ( ! r e s u l t )   {   r e s u l t   =   h a n d i n . u n f o r m a t t e d N o B r e a k s . m a t c h ( r e R i v e r A c t i o n A l t [ s i t e ] ) ;   } 
 	 i f   ( r e s u l t )   { 
 	 	 h a n d i n . r i v e r T e x t   =   R e g E x p . $ 1 ; 
 	 	 i f   ( s i t e   = =   P S T A R S )   {   h a n d i n   =   p o k e r S t a r s P a r s e A c t i o n ( h a n d i n ,   h a n d i n . r i v e r T e x t ,   3 ) ;   } 
 	 	 e l s e   i f   ( s i t e   = =   F T P )   {   h a n d i n   =   f t p P a r s e A c t i o n ( h a n d i n ,   h a n d i n . r i v e r T e x t ,   3 ) ;   } 
 	 	 e l s e   i f   ( s i t e   = =   C E R E U S )   {   h a n d i n   =   c e r e u s P a r s e A c t i o n ( h a n d i n ,   h a n d i n . r i v e r T e x t ,   3 ) ;   } 
 	 	 e l s e   i f   ( s i t e   = =   H E M )   { h a n d i n   =   H E M P a r s e A c t i o n ( h a n d i n , h a n d i n . r i v e r T e x t , 3 ) ; } 
 	 	 e l s e   i f   ( s i t e   = =   T I T A N )   { h a n d i n   =   t i t a n P a r s e A c t i o n ( h a n d i n , h a n d i n . r i v e r T e x t , 3 ) ; } 
 	 } 
 
 	 / / s u m m a r y 
 	 
 	 / / i n i t i a l i z e   2 D   a r r a y s 
 	 h a n d i n . s h o w d o w n _ h a n d s   =   n e w   A r r a y ;       / /   t w o   p a i r ,   F i v e s   a n d   F o u r s 
 	 h a n d i n . s h o w d o w n _ p l a y e r s   =   n e w   A r r a y ;   / /   < n i c k > 
 	 h a n d i n . s h o w d o w n _ c a r d s   =   n e w   A r r a y ;       / /     J h   Q s   e t c 
 	 h a n d i n . s h o w d o w n _ t y p e s   =   n e w   A r r a y ;       / /   w o n ,   l o s t ,   m u c k e d ,   c o l l e c t e d 
 	 h a n d i n . r e s u l t _ p l a y e r s   =   n e w   A r r a y ; 
 	 h a n d i n . r e s u l t _ v a l u e s   =   n e w   A r r a y ; 
 	 
 	 / / h a s   t o   b e   d o n e   d i f f e r e n t l y   f o r   X M L   h h s   l i k e   T i t a n   o r   R P M 
 	 i f   ( s i t e ! = T I T A N ) { 
 	 	 i f   ( h a n d i n . u n f o r m a t t e d N o B r e a k s . m a t c h ( r e M a t c h S u m m a r y [ s i t e ] ) )   { 
 	 	 
 	 	 	 h a n d i n . s h o w d o w n T e x t   =   R e g E x p . $ 1 ; 
 	 
 	 	 	 h a n d i n . s h o w d o w n L i n e s   =   h a n d i n . s h o w d o w n T e x t . s p l i t ( /  %/ ) ; 
 	 
 	 	 
 	 
 	 	 	 / / l o o p   t h r o u g h   s h o w d o w n   l i n e s 
 	 	 	 p l a y e r C o u n t   =   - 1 ; 
 	 	 	 r e s u l t C o u n t   =   - 1 ; 
 	 	 	 
 	 	 	 f o r   ( i   =   0 ;   i   <   h a n d i n . s h o w d o w n L i n e s . l e n g t h ;   i   =   i   +   1 )   { 
 	 	 	 	 i f   ( s i t e   = =   H E M )   { 
 	 	 	 	 	 
 	 	 	 	 	 i f   ( h a n d i n . s h o w d o w n L i n e s [ i ] . m a t c h ( r e S u m m a r y E x t r a c t i o n 1 [ s i t e ] ) )   { 
 	 	 	 	 	 	 m   =   f i n d I n d e x ( h a n d i n . s h o w d o w n _ p l a y e r s , R e g E x p . $ 1 ) ; 
 	 	 	 	 	 	 i f   ( m   = =   - 1 )   {   m   =   + + p l a y e r C o u n t ;   } 
 	 	 	 	 	 	 / / p l a y e r C o u n t + + ; 
 	 	 	 	 	 	 h a n d i n . s h o w d o w n _ p l a y e r s [ m ]   =   R e g E x p . $ 1 ; 
 	 	 	 	 	 	 h a n d i n . s h o w d o w n _ t y p e s [ m ]   =   " w o n " ; 
 	 	 	 	 	 	 i f   ( h a n d i n . s h o w d o w n L i n e s [ i ] . m a t c h ( r e T h e M o n e y [ s i t e ] ) )   { 
 	 	 	 	 	 	 	 r e s u l t C o u n t + + ; 
 	 	 	 	 	 	 	 h a n d i n . r e s u l t _ p l a y e r s [ r e s u l t C o u n t ]   =   h a n d i n . s h o w d o w n _ p l a y e r s [ m ] ; 
 	 	 	 	 	 	 	 h a n d i n . r e s u l t _ v a l u e s [ r e s u l t C o u n t ]   =   R e g E x p . $ 1 ; 
 	 	 	 	 	 	 } 
 	 	 	 	 	 	 
 	 
 	 	 	 	 	 } 
 	 	 	 	 	 e l s e   i f   ( r e s u l t   =   h a n d i n . s h o w d o w n L i n e s [ i ] . m a t c h ( r e H E S u m m a r y E x t r a c t i o n 2 [ s i t e ] ) )   { 
 	 	 	 	 	 	 
 	 	 	 	 	 	 m   =   f i n d I n d e x ( h a n d i n . s h o w d o w n _ p l a y e r s , r e s u l t [ 1 ] ) ; 
 	 	 	 	 	 	 i f   ( m   >   - 1 )   { 
 	 	 	 	 	 	 	 h a n d i n . s h o w d o w n _ c a r d s [ m ]   =   n e w   A r r a y ; 
 	 	 	 	 	 	 	 h a n d i n . s h o w d o w n _ c a r d s [ m ] [ 0 ]   =   r e s u l t [ 2 ] ; 
 	 	 	 	 	 	 	 h a n d i n . s h o w d o w n _ c a r d s [ m ] [ 1 ]   =   r e s u l t [ 3 ] ; 
 	 	 	 	 	 	 	 h a n d i n . s h o w d o w n _ h a n d s [ m ]   =   "   " ; 
 	 	 	 	 	 	 } 
 	 	 	 	 	 	 e l s e   { 
 	 	 	 	 	 	 	 p l a y e r C o u n t + + ; 
 	 	 	 	 	 	 	 h a n d i n . s h o w d o w n _ c a r d s [ p l a y e r C o u n t ]   =   n e w   A r r a y ; 
 	 	 	 	 	 	 	 h a n d i n . s h o w d o w n _ p l a y e r s [ p l a y e r C o u n t ]   =   r e s u l t [ 1 ] ; 
 	 	 	 	 	 	 	 h a n d i n . s h o w d o w n _ t y p e s [ p l a y e r C o u n t ]   =   " l o s t " ; 
 	 	 	 	 	 	 	 h a n d i n . s h o w d o w n _ c a r d s [ p l a y e r C o u n t ] [ 0 ]   =   r e s u l t [ 2 ] ; 
 	 	 	 	 	 	 	 h a n d i n . s h o w d o w n _ c a r d s [ p l a y e r C o u n t ] [ 1 ]   =   r e s u l t [ 3 ] ; 
 	 	 	 	 	 	 	 h a n d i n . s h o w d o w n _ h a n d s [ p l a y e r C o u n t ]   =   "   " ; 
 	 	 	 	 	 	 } 
 	 	 	 	 	 	 
 	 	 	 	 	 } 
 	 	 	 	 } 
 	 	 	 	 e l s e   i f   ( h a n d i n . s h o w d o w n L i n e s [ i ] . m a t c h ( r e S u m m a r y E x t r a c t i o n 1 [ s i t e ] ) )   { 
 	 	 	 	 	 p l a y e r C o u n t + + ; 
 	 	 	 	 	 h a n d i n . s h o w d o w n _ p l a y e r s [ p l a y e r C o u n t ]   =   R e g E x p . $ 1 ; 
 	 	 	 	 	 h a n d i n . s h o w d o w n _ t y p e s [ p l a y e r C o u n t ]   =   R e g E x p . $ 2 ; 
 	 	 	 	 	 p a r t T e m p   =   R e g E x p . $ 3 ; 
 	 	 	 	 	 i f   ( s i t e   = =   C E R E U S )   {   p a r t T e m p   =   R e g E x p . $ 2   +   R e g E x p . $ 3 ;   } 
 	 	 	 	 	 i f   ( p a r t T e m p . m a t c h ( / (   w o n   |   c o l l e c t e d   ) / ) )   { 
 	 	 	 	 	 	 h a n d i n . s h o w d o w n _ t y p e s [ p l a y e r C o u n t ]   =   " w o n " ; 
 	 	 	 	 	 } 
 	 	 	 	 	 / / e l s e   { 
 	 	 	 	 	 / / 	 h a n d i n . s h o w d o w n _ t y p e s [ p l a y e r C o u n t ]   =   " l o s t " ; 
 	 	 	 	 	 / / } 
 	 	 	 	 	 h a n d i n . s h o w d o w n _ c a r d s [ p l a y e r C o u n t ]   =   n e w   A r r a y ; 
 	 	 	 	 	 i f   ( p a r t T e m p )   { 
 	 	 	 	 	 	 i f   ( p a r t T e m p . m a t c h ( r e T h e M o n e y [ s i t e ] ) )   { 
 	 	 	 	 	 	 	 r e s u l t C o u n t + + ; 
 	 	 	 	 	 	 	 h a n d i n . r e s u l t _ p l a y e r s [ r e s u l t C o u n t ]   =   h a n d i n . s h o w d o w n _ p l a y e r s [ p l a y e r C o u n t ] ; 
 	 	 	 	 	 	 	 h a n d i n . r e s u l t _ v a l u e s [ r e s u l t C o u n t ]   =   R e g E x p . $ 1 ; 
 	 	 	 	 	 	 } 
 	 	 	 	 	 	 i f   ( p a r t T e m p . m a t c h ( r e H E S u m m a r y E x t r a c t i o n 2 [ s i t e ] ) )   { 
 	 	 	 	 	 	 	 s w i t c h ( s i t e )   { 
 	 	 	 	 	 	 	 c a s e   P S T A R S : 
 	 	 	 	 	 	 	 c a s e   F T P : 
 	 	 	 	 	 	 	 	 h a n d i n . s h o w d o w n _ c a r d s [ p l a y e r C o u n t ] [ 0 ]   =   R e g E x p . $ 1 ; 
 	 	 	 	 	 	 	 	 h a n d i n . s h o w d o w n _ c a r d s [ p l a y e r C o u n t ] [ 1 ]   =   R e g E x p . $ 2 ; 
 	 	 	 	 	 	 	 	 i f   ( R e g E x p . $ 4 )   { 
 	 	 	 	 	 	 	 	 	 h a n d i n . s h o w d o w n _ h a n d s [ p l a y e r C o u n t ]   =   R e g E x p . $ 4 ; 
 	 	 	 	 	 	 	 	 } 
 	 	 	 	 	 	 	 	 b r e a k ; 
 	 	 	 	 	 	 	 c a s e   C E R E U S : 
 	 	 	 	 	 	 	 	 h a n d i n . s h o w d o w n _ c a r d s [ p l a y e r C o u n t ] [ 0 ]   =   R e g E x p . $ 3 ; 
 	 	 	 	 	 	 	 	 h a n d i n . s h o w d o w n _ c a r d s [ p l a y e r C o u n t ] [ 1 ]   =   R e g E x p . $ 4 ; 
 	 	 	 	 	 	 	 	 h a n d i n . s h o w d o w n _ h a n d s [ p l a y e r C o u n t ]   =   R e g E x p . $ 2 ; 
 	 	 	 	 	 	 	 	 b r e a k ; 
 	 	 	 	 	 	 	 } 
 	 	 	 	 	 	 } 
 	 	 	 	 	 } 
 	 	 	 	 	 e l s e   {   h a n d i n . s h o w d o w n _ c a r d s [ p l a y e r C o u n t ] [ 0 ]   =   ' m u c k s ' ;   } 
 	 	 	 	 } 
 	 	 	 } 
 	 
 	 	 	 / / r a k e 
 	 	 	 i f   ( h a n d i n . u n f o r m a t t e d . m a t c h ( r e R a k e [ s i t e ] ) )   { 
 	 	 	 	 h a n d i n . r a k e   =   R e g E x p . $ 1 ; 
 	 	 	 } 
 	 	 } 
 	 }   e l s e   i f   ( s i t e = = T I T A N )   { 
 	 	 / / S u m m a r y   e x t r a c t i o n   f o r   T i t a n 
 	 	 
 	 	 
 	 	 / / l o o p   t h r o u g h   p l a y e r s ,   f i n d   a n y   w i t h   h o l e   c a r d s   w h o   a r e   n o t   h e r o   - -   t h e s e   w e n t   t o   s h o w d o w n 
 	 	 
 	 	 s h o w d o w n C o u n t   =   0 ; 
 	 	 r e s u l t C o u n t   =   0 ; 
 	 	 h e r o W o n   =   0 ; 
 	 	 f o r   ( i   = 0 ; i < h a n d i n . p l a y e r s . l e n g t h ; i + + )   { 
 	 	 
 	 	 	 i f   ( h a n d i n . p l a y e r s [ i ]   ! =   h a n d i n . h e r o )   { 
 	 	 	 
 	 	 	 	 
 	 	 	 	 / / c h e c k   f o r   h o l e   c a r d s 
 	 	 	 	 r e H o l e C a r d s   =   ' c a r d s   t y p e = \ " P o c k e t \ "   p l a y e r = \ " '   +   h a n d i n . p l a y e r s [ i ] +   ' \ " > ( [ H D S C ] [ 2 - 9 T J Q K A ] )   ( [ H D S C ] [ 2 - 9 T J Q K A ] ) ' ; 
 	 	 	 	 i f   ( h a n d i n . u n f o r m a t t e d . m a t c h ( r e H o l e C a r d s ) )   { 
 	 	 	 	 
 	 	 	 	       h a n d i n . s h o w d o w n _ p l a y e r s [ s h o w d o w n C o u n t ]   =   h a n d i n . p l a y e r s [ i ] ; 
 	 	 	 	       h a n d i n . s h o w d o w n _ c a r d s [ s h o w d o w n C o u n t ]   =   n e w   A r r a y ; 
 	 	 	 	       h a n d i n . s h o w d o w n _ c a r d s [ s h o w d o w n C o u n t ] [ 0 ]   =   R e g E x p . $ 1 ; 
 	 	 	 	       h a n d i n . s h o w d o w n _ c a r d s [ s h o w d o w n C o u n t ] [ 1 ]   =   R e g E x p . $ 2 ; 
 	 	 	 	       
 	 	 	 	       h a n d i n . s h o w d o w n _ c a r d s [ s h o w d o w n C o u n t ] [ 0 ]   =   r e v e r s e C a r d s ( h a n d i n . s h o w d o w n _ c a r d s [ s h o w d o w n C o u n t ] [ 0 ] ) . c a p i t a l i z e ( ) ; 
 	 	 	 	       h a n d i n . s h o w d o w n _ c a r d s [ s h o w d o w n C o u n t ] [ 1 ]   =   r e v e r s e C a r d s ( h a n d i n . s h o w d o w n _ c a r d s [ s h o w d o w n C o u n t ] [ 1 ] ) . c a p i t a l i z e ( ) ; 
 	 	 	 	       
 	 	 	 	       h a n d i n . s h o w d o w n _ h a n d s [ s h o w d o w n C o u n t ]   =   ' ' ; 
 	 	 	 	 	 	 	 	 	 	 
 	 	 	 	       s h o w d o w n C o u n t   =   s h o w d o w n C o u n t   +   1 ; 
 	 	 	 	 } 
 	 	 	 } 
 	 	 	 / / c h e c k   f o r   w i n n e r 
 	 	 	 r e W i n n e r   =   ' < p l a y e r   s e a t = \ " . * ? \ "   n a m e = \ " '   +   h a n d i n . p l a y e r s [ i ]   +   ' \ "   c h i p s = \ " . * ? \ "   d e a l e r = \ " . * ? \ "   w i n = \ " '   +   a d d s l a s h e s ( h a n d i n . c u r r e n c y )   +   ' ( . * ? ) \ "   b e t ' ; 
 	 	 	 
 	 	 	 i f   ( h a n d i n . u n f o r m a t t e d . m a t c h ( r e W i n n e r ) )   { 
 	 	 	 	 w o n   =   R e g E x p . $ 1 ; 
 	 	 	 	 
 	 	 	 	 i f   ( w o n   ! =   " 0 " )   { 
 	 	 	 	 	 	 	 
 	 	 	 	 	 h a n d i n . r e s u l t _ p l a y e r s [ r e s u l t C o u n t ]   =   h a n d i n . p l a y e r s [ i ] ; 
 	 	 	 	 	 h a n d i n . r e s u l t _ v a l u e s [ r e s u l t C o u n t ]   =   w o n ; 
 	 	 	 	 	 r e s u l t C o u n t   =   r e s u l t C o u n t   +   1 ; 
 	 	 	 	 	 i f   ( h a n d i n . p l a y e r s [ i ]   = =   h a n d i n . h e r o )   { h e r o W o n   =   1 ; } 
 	 	 	 	 } 
 	 	 	 } 
 	 	 	 
 	 	 	 / / s h o w   h e r o ' s   c a r d s ?   o n l y   i f   h i s   a r e   n o t   t h e   o n l y   h o l e   c a r d s   a n d   h e   w o n 
 	 	 	 i f   ( s h o w d o w n C o u n t   >   0 )   { 
 	 	 	 
 	 	 	 	 i f   ( h e r o W o n )   { 
 	 	 	 	 	 h a n d i n . s h o w d o w n _ p l a y e r s [ s h o w d o w n C o u n t ]   =   h a n d i n . h e r o ; 
 	 	 	 	 	 h a n d i n . s h o w d o w n _ c a r d s [ s h o w d o w n C o u n t ]   =   n e w   A r r a y ; 
 	 	 	 	 	 h a n d i n . s h o w d o w n _ c a r d s [ s h o w d o w n C o u n t ] [ 0 ]   =   h a n d i n . h o l e C a r d s [ 0 ] [ 0 ] ; 
 	 	 	 	 	 h a n d i n . s h o w d o w n _ c a r d s [ s h o w d o w n C o u n t ] [ 1 ]   =   h a n d i n . h o l e C a r d s [ 0 ] [ 1 ] ; 
 	 	 	 	 	 h a n d i n . s h o w d o w n _ h a n d s [ s h o w d o w n C o u n t ]   =   ' ' ; 
 	 	 	 	 } 
 	 	 	 } 
 	 	 	 
 	 	 } 
 	 } 
 	 r e t u r n   h a n d i n ; 
 
 } 
 
 f u n c t i o n   p a r s e _ o m a h a ( h a n d i n ,   s i t e )   { 
 
 	 / / C a s h   o r   t o u r n a m e n t ? 
 	 i f   ( h a n d i n . f i r s t L i n e . m a t c h ( / \ $ \ d / ) )   { 
 	 	 h a n d i n . g a m e T y p e   =   " C " ; 
 	 	 / / h a n d i n . e r r o r   =   " T o u r n a m e n t   h a n d s   n o t   y e t   s u p p o r t e d . " ; 
 	 }   e l s e   { 
 	 	 h a n d i n . g a m e T y p e   =   " T " ; 
 	 } 
 
 	 / / f i n d   b l i n d s 
 	 i f   ( h a n d i n . f i r s t L i n e . m a t c h ( r e B l i n d s [ s i t e ] ) )   { 
 	 	 h a n d i n . s m a l l B l i n d   =   R e g E x p . $ 1 ; 
 	 	 h a n d i n . b i g B l i n d   =   R e g E x p . $ 2 ; 
 	 } 
 
 	 h a n d i n . s m a l l B l i n d P o s t e d A m o u n t   =   0 ; 
 	 h a n d i n . b i g B l i n d P o s t e d A m o u n t   =   0 ; 
 
 	 / / f i n d   g a m e   s i z e 
 	 i f   ( h a n d i n . u n f o r m a t t e d . m a t c h ( r e G a m e S i z e [ s i t e ] ) )   { 
 	 	 h a n d i n . g a m e S i z e   =   R e g E x p . $ 1   +   ' - m a x ' ; 
 	 } 
 	 e l s e   { 
 	 	 h a n d i n . g a m e S i z e   =   " " ; 
 	 } 
 
 	 h a n d i n . a n t e s T o t a l   =   0 ; 
 	 a n t e L i n e s   =   n e w   A r r a y ; 
 	 / / f i n d   a n t e s 
 	 a n t e T e x t   =   h a n d i n . u n f o r m a t t e d N o B r e a k s . m a t c h ( r e A n t e T e x t [ s i t e ] ) ; 
       i f   ( a n t e T e x t )   { 
 	 	 a n t e L i n e s   =   a n t e T e x t [ 1 ] . s p l i t ( /  %/ ) ; 
 	 	 n u m A n t e L i n e s   =   a n t e L i n e s . l e n g t h ; 
 	 	 f o r   ( j = 0 ; j < n u m A n t e L i n e s ; + + j )   { 
 	 	 	 i f   ( a n t e L i n e s [ j ] . m a t c h ( r e A n t e L i n e s [ s i t e ] ) )   { 
 	 	 	 	 h a n d i n . a n t e   =   R e g E x p . $ 1 ; 
 	 	 	 	 h a n d i n . a n t e s T o t a l   =   p a r s e F l o a t ( h a n d i n . a n t e s T o t a l )   +   p a r s e F l o a t ( R e g E x p . $ 1 ) ; 
 	 	 	 } 
 	 	 } 
 	 } 
 	 
 	 r e s u l t   =   h a n d i n . u n f o r m a t t e d N o B r e a k s . m a t c h ( r e S e a t i n g T e x t [ s i t e ] ) ; 
 	 i f   ( r e s u l t )   { h a n d i n . s e a t T e x t   =   r e s u l t [ 1 ] ; } 
 	 e l s e   { h a n d i n . s e a t T e x t   =   "   " ; } 
 
 	 h a n d i n . s e a t L i n e s   =   h a n d i n . s e a t T e x t . r e p l a c e ( /  %/ g ,   " \ n " ) ; 
 	 
 	 / / f i n d   n u m b e r   o f   s e a t s 
 	 s e a t s   =   h a n d i n . s e a t L i n e s . m a t c h ( r e F i n d S e a t s [ s i t e ] ) ; 
 	 h a n d i n . n u m P l a y e r s   =   s e a t s . l e n g t h ; 
 	 
 	 / /   f i n d   b u t t o n / b r i n g - i n ? 
 	 i f   ( h a n d i n . u n f o r m a t t e d . m a t c h ( r e B u t t o n [ s i t e ] ) )   { 
 	 	 h a n d i n . b u t t o n   =   R e g E x p . $ 1 ; 
 	 } 
 	 
 	 / / f i n d   p l a y e r   n a m e s   a n d   s t a c k   s i z e s 
 	 p l a y e r L i n e s   =   h a n d i n . s e a t L i n e s . m a t c h ( r e F i n d I n f o [ s i t e ] ) ; 
 	 h a n d i n . p l a y e r s   =   n e w   A r r a y ; 
 	 h a n d i n . s t a c k s   =   n e w   A r r a y ; 
 	 h a n d i n . s e a t N u m b e r s   =   n e w   A r r a y ; 
 
 	 j   =   0 ; 
 	 f o r   ( i   =   0 ;   i   <   h a n d i n . n u m P l a y e r s ;   i   =   i   +   1 )   { 
 	 
 	 	 i f   ( p l a y e r L i n e s [ i ] . m a t c h ( r e P l a y e r I n f o [ s i t e ] ) )   { 
 	 	 	 t h e S e a t   =   R e g E x p . $ 1 ; 
 	 	 	 t h e P l a y e r   =   R e g E x p . $ 2 ; 
 	 	 	 t h e S t a c k   =   R e g E x p . $ 3 ; 
 	 	 	 i f   ( ! ( ( p l a y e r L i n e s [ i ] . m a t c h ( / s i t t i n g   o u t / i )   & &   ( h a n d i n . g a m e T y p e   = =   " C " )   & &   ( t h e S e a t   ! =   h a n d i n . b u t t o n ) ) ) ) { 
 	 	 	 	 h a n d i n . s e a t N u m b e r s [ j ]   =   t h e S e a t ; 
 	 	 	 	 h a n d i n . p l a y e r s [ j ]   =   t h e P l a y e r 
 	 	 	 	 h a n d i n . s t a c k s [ j ]   =   t h e S t a c k ; 
 	 	 	 	 j + + ; 
 	 	 	 } 
 	 	 } 
 	 } 
 	 i f   ( j   >   0 )   {   h a n d i n . n u m P l a y e r s   =   j ;   } 
 
 
 	 / / f i n d   h o l e   c a r d s 
 	 h a n d i n . h o l e C a r d s   =   n e w   A r r a y ; 
 	 h a n d i n . h o l e C a r d s [ 0 ]   =   n e w   A r r a y ; 
 	 i f   ( h a n d i n . u n f o r m a t t e d . m a t c h ( r e O H o l e C a r d s [ s i t e ] ) )   { 
 	 	 h a n d i n . h e r o   =   R e g E x p . $ 1 
 	 	 h a n d i n . h o l e C a r d s [ 0 ] [ 0 ]   =   R e g E x p . $ 2 ; 
 	 	 h a n d i n . h o l e C a r d s [ 0 ] [ 1 ]   =   R e g E x p . $ 3 ; 
 	 	 h a n d i n . h o l e C a r d s [ 0 ] [ 2 ]   =   R e g E x p . $ 4 ; 
 	 	 h a n d i n . h o l e C a r d s [ 0 ] [ 3 ]   =   R e g E x p . $ 5 ; 
 	 } 
 
 	 / / i n i t i a l i z e   2 D   a r r a y s 
 	 h a n d i n . a c t i o n _ t y p e s   =   n e w   A r r a y ; 
 	 h a n d i n . a c t i o n _ p l a y e r s   =   n e w   A r r a y ; 
 	 h a n d i n . a c t i o n _ v a l u e s   =   n e w   A r r a y ; 
 	 h a n d i n . a c t i o n _ a d d e d T o P o t   =   n e w   A r r a y ; 
 	 h a n d i n . a c t i o n _ p l a y e r s P o t   =   n e w   A r r a y ; 
 
 	 / / z e r o   o u t   p l a y e r   c o n t r i b u t i o n s   t o   p o t   f o r   t h i s   s t r e e t 
 	 f o r   ( r = 0 ; r < h a n d i n . p l a y e r s . l e n g t h ; r + + )   { 
 	 	 h a n d i n . a c t i o n _ p l a y e r s P o t [ r ]   =   0 ; 
 	 } 
 
 	 / / b u t   a d d   i n   S B 
 	 i f   ( h a n d i n . u n f o r m a t t e d . m a t c h ( r e S m a l l B l i n d [ s i t e ] ) )   { 
 	 	 h a n d i n . s m a l l B l i n d P o s t e d B y   =   R e g E x p . $ 1 ; 
 	 	 h a n d i n . s m a l l B l i n d P o s t e d A m o u n t   =   R e g E x p . $ 2 ; 
 	 	 / / p l a y e r I n d e x   =   h a n d i n . p l a y e r s . i n d e x O f ( h a n d i n . s m a l l B l i n d P o s t e d B y ) ; 
 	 	 p l a y e r I n d e x   =   f i n d I n d e x ( h a n d i n . p l a y e r s ,   h a n d i n . s m a l l B l i n d P o s t e d B y ) ; 
 	 	 h a n d i n . a c t i o n _ p l a y e r s P o t [ p l a y e r I n d e x ]   =   h a n d i n . s m a l l B l i n d P o s t e d A m o u n t ; 
 	 } 
 	 / / a n d   B B 
 	 i f   ( h a n d i n . u n f o r m a t t e d . m a t c h ( r e B i g B l i n d [ s i t e ] ) )   { 
 	 	 h a n d i n . b i g B l i n d P o s t e d B y   =   R e g E x p . $ 1 ; 
 	 	 h a n d i n . b i g B l i n d P o s t e d A m o u n t   =   R e g E x p . $ 2 ; 
 	 	 / / p l a y e r I n d e x   =   h a n d i n . p l a y e r s . i n d e x O f ( h a n d i n . b i g B l i n d P o s t e d B y ) ; 
 	 	 p l a y e r I n d e x   =   f i n d I n d e x ( h a n d i n . p l a y e r s ,   h a n d i n . b i g B l i n d P o s t e d B y ) ; 
 	 	 h a n d i n . a c t i o n _ p l a y e r s P o t [ p l a y e r I n d e x ]   =   h a n d i n . b i g B l i n d P o s t e d A m o u n t ; 
 	 } 
 	 
 	 i f   ( ! h a n d i n . s m a l l B l i n d )   { 
 	 	 h a n d i n . s m a l l B l i n d   =   h a n d i n . s m a l l B l i n d P o s t e d A m o u n t ; 
 	 	 h a n d i n . b i g B l i n d   =   h a n d i n . b i g B l i n d P o s t e d A m o u n t ; 
 	 } 	 
 	 / / f i n d   p r e f l o p   a c t i o n 
 	 r e s u l t   =   h a n d i n . u n f o r m a t t e d N o B r e a k s . m a t c h ( r e P r e f l o p A c t i o n [ s i t e ] ) ; 
 	 i f   ( ! r e s u l t )   {   r e s u l t   =   h a n d i n . u n f o r m a t t e d N o B r e a k s . m a t c h ( r e P r e f l o p A c t i o n A l t [ s i t e ] ) ;   } 
 	 i f   ( r e s u l t )   { 
 	 	 h a n d i n . p r e f l o p T e x t   =   R e g E x p . $ 1 ; 
 	 	 i f   ( s i t e   = =   P S T A R S )   {   h a n d i n   =   p o k e r S t a r s P a r s e A c t i o n ( h a n d i n ,   h a n d i n . p r e f l o p T e x t ,   0 ) ;   } 
 	 	 i f   ( s i t e   = =   F T P )   {   h a n d i n   =   f t p P a r s e A c t i o n ( h a n d i n ,   h a n d i n . p r e f l o p T e x t ,   0 ) ;   } 
 	 	 e l s e   i f   ( s i t e   = =   C E R E U S )   {   h a n d i n   =   c e r e u s P a r s e A c t i o n ( h a n d i n ,   h a n d i n . p r e f l o p T e x t ,   0 ) ;   } 
 	 	 e l s e   i f   ( s i t e   = =   H E M )   { h a n d i n   =   H E M P a r s e A c t i o n ( h a n d i n , h a n d i n . p r e f l o p T e x t , 0 ) ; } 
 	 } 
 
 	 / / g e t   f l o p   c a r d s 
 	 h a n d i n . c o m m u n i t y C a r d s   =   n e w   A r r a y ; 
 	 h a n d i n . c o m m u n i t y C a r d s [ 1 ]   =   n e w   A r r a y ; 
 	 i f   ( h a n d i n . u n f o r m a t t e d . m a t c h ( r e F l o p [ s i t e ] ) )   { 
 	 	 h a n d i n . c o m m u n i t y C a r d s [ 1 ] [ 0 ]   =   R e g E x p . $ 1 ; 
 	 	 h a n d i n . c o m m u n i t y C a r d s [ 1 ] [ 1 ]   =   R e g E x p . $ 2 ; 
 	 	 h a n d i n . c o m m u n i t y C a r d s [ 1 ] [ 2 ]   =   R e g E x p . $ 3 ; 
 	 } 
 	 e l s e   { 
 	 	 m y R e g E x   =   n e w   R e g E x p ; 
 	 	 m y R e g E x   =   m y R e g E x . c o m p i l e ( r e F l o p R u n I t [ s i t e ] , " g " ) ; 
 	       r e s u l t   =   h a n d i n . u n f o r m a t t e d . m a t c h ( m y R e g E x ) ; 
 	 	 i f   ( r e s u l t )   { 
 	 	       i   =   0 ;   j   =   0 ; 
 	 	 	 m y R e g E x   =   n e w   R e g E x p ; 
 	 	 	 m y R e g E x   =   m y R e g E x . c o m p i l e ( r e F l o p R u n I t [ s i t e ] ) ; 
 	 	 	 w h i l e   ( r e s u l t [ i ] )   { 
 	 	 	       s u b r e s u l t   =   r e s u l t [ i ] . m a t c h ( m y R e g E x ) ; 
 	 	 	       h a n d i n . c o m m u n i t y C a r d s [ 1 ] [ j + + ]   =   s u b r e s u l t [ 2 ] ; 
 	 	 	       h a n d i n . c o m m u n i t y C a r d s [ 1 ] [ j + + ]   =   s u b r e s u l t [ 3 ] ; 
 	 	 	       h a n d i n . c o m m u n i t y C a r d s [ 1 ] [ j + + ]   =   s u b r e s u l t [ 4 ] ; 
 	 	 	 	 i + + ; 
 	 	 	 } 
 	 	 } 
 	 } 
 	 
 
 	 / / z e r o   o u t   p l a y e r   c o n t r i b u t i o n s   t o   p o t   f o r   t h i s   s t r e e t 
 	 f o r   ( r = 0 ; r < h a n d i n . p l a y e r s . l e n g t h ; r + + )   { 
 	 	 h a n d i n . a c t i o n _ p l a y e r s P o t [ r ]   =   0 ; 
 	 } 
 
 	 / / f i n d   f l o p   a c t i o n 
 	 r e s u l t   =   h a n d i n . u n f o r m a t t e d N o B r e a k s . m a t c h ( r e F l o p A c t i o n [ s i t e ] ) ; 
 	 i f   ( ! r e s u l t )   {   r e s u l t   =   h a n d i n . u n f o r m a t t e d N o B r e a k s . m a t c h ( r e F l o p A c t i o n A l t [ s i t e ] ) ;   } 
 	 i f   ( r e s u l t )   { 
 	 	 h a n d i n . f l o p T e x t   =   R e g E x p . $ 1 ; 
 	 	 i f   ( s i t e   = =   P S T A R S )   {   h a n d i n   =   p o k e r S t a r s P a r s e A c t i o n ( h a n d i n ,   h a n d i n . f l o p T e x t ,   1 ) ;   } 
 	 	 e l s e   i f   ( s i t e   = =   F T P )   {   h a n d i n   =   f t p P a r s e A c t i o n ( h a n d i n ,   h a n d i n . f l o p T e x t ,   1 ) ;   } 
 	 	 e l s e   i f   ( s i t e   = =   C E R E U S )   {   h a n d i n   =   c e r e u s P a r s e A c t i o n ( h a n d i n ,   h a n d i n . f l o p T e x t ,   1 ) ;   } 
 	 	 e l s e   i f   ( s i t e   = =   H E M )   { h a n d i n   =   H E M P a r s e A c t i o n ( h a n d i n , h a n d i n . f l o p T e x t , 1 ) ; } 
 	 } 
 
 	 / / g e t   t u r n   c a r d 
 	 h a n d i n . c o m m u n i t y C a r d s [ 2 ]   =   n e w   A r r a y ; 
 	 i f   ( h a n d i n . u n f o r m a t t e d . m a t c h ( r e T u r n [ s i t e ] ) )   { 
 	 	 h a n d i n . c o m m u n i t y C a r d s [ 2 ] [ 0 ]   =   R e g E x p . $ 1 ; 
 	 } 
 	 e l s e   { 
 	 	 m y R e g E x T   =   n e w   R e g E x p ; 
 	 	 m y R e g E x T   =   m y R e g E x T . c o m p i l e ( r e T u r n R u n I t [ s i t e ] , " g " ) ; 
 	       r e s u l t   =   h a n d i n . u n f o r m a t t e d . m a t c h ( m y R e g E x T ) ; 
 	 	 i f   ( r e s u l t )   { 
 	 	       i   =   0 ;   j   =   0 ; 
 	 	         m y R e g E x S   =   n e w   R e g E x p ; 
 	 	 	 m y R e g E x S   =   m y R e g E x S . c o m p i l e ( r e T u r n R u n I t [ s i t e ] ) ; 
 	 	 	 w h i l e   ( r e s u l t [ i ] )   { 
 	 	 	       s u b r e s u l t   =   r e s u l t [ i ] . m a t c h ( m y R e g E x S ) ; 
 	 	 	       h a n d i n . c o m m u n i t y C a r d s [ 2 ] [ j + + ]   =   s u b r e s u l t [ 2 ] ; 
 	 	 	 	 i + + ; 
 	 	 	 } 
 	 	 } 
 	 } 
 
 	 / / z e r o   o u t   p l a y e r   c o n t r i b u t i o n s   t o   p o t   f o r   t h i s   s t r e e t 
 	 f o r   ( r = 0 ; r < h a n d i n . p l a y e r s . l e n g t h ; r + + )   { 
 	 	 h a n d i n . a c t i o n _ p l a y e r s P o t [ r ]   =   0 ; 
 	 } 
 
 	 / / f i n d   t u r n   a c t i o n 
 	 r e s u l t   =   h a n d i n . u n f o r m a t t e d N o B r e a k s . m a t c h ( r e T u r n A c t i o n [ s i t e ] ) ; 
 	 i f   ( ! r e s u l t )   {   r e s u l t   =   h a n d i n . u n f o r m a t t e d N o B r e a k s . m a t c h ( r e T u r n A c t i o n A l t [ s i t e ] ) ;   } 
 	 i f   ( r e s u l t )   { 
 	 	 h a n d i n . t u r n T e x t   =   R e g E x p . $ 1 ; 
 	 	 i f   ( s i t e   = =   P S T A R S )   {   h a n d i n   =   p o k e r S t a r s P a r s e A c t i o n ( h a n d i n ,   h a n d i n . t u r n T e x t ,   2 ) ;   } 
 	 	 e l s e   i f   ( s i t e   = =   F T P )   {   h a n d i n   =   f t p P a r s e A c t i o n ( h a n d i n ,   h a n d i n . t u r n T e x t ,   2 ) ;   } 
 	 	 e l s e   i f   ( s i t e   = =   C E R E U S )   {   h a n d i n   =   c e r e u s P a r s e A c t i o n ( h a n d i n ,   h a n d i n . t u r n T e x t ,   2 ) ;   } 
 	 	 e l s e   i f   ( s i t e   = =   H E M )   { h a n d i n   =   H E M P a r s e A c t i o n ( h a n d i n , h a n d i n . t u r n T e x t , 2 ) ; } 
 	 } 
 
 	 / / g e t   r i v e r   c a r d 
 	 h a n d i n . c o m m u n i t y C a r d s [ 3 ]   =   n e w   A r r a y ; 
 	 i f   ( h a n d i n . u n f o r m a t t e d . m a t c h ( r e R i v e r [ s i t e ] ) )   { 
 	 	 h a n d i n . c o m m u n i t y C a r d s [ 3 ] [ 0 ]   =   R e g E x p . $ 1 ; 
 	 } 
 	 e l s e   { 
 	 	 m y R e g E x   =   n e w   R e g E x p ; 
 	 	 m y R e g E x   =   m y R e g E x . c o m p i l e ( r e R i v e r R u n I t [ s i t e ] , " g " ) ; 
 	       r e s u l t   =   h a n d i n . u n f o r m a t t e d . m a t c h ( m y R e g E x ) ; 
 	 	 i f   ( r e s u l t )   { 
 	 	       i   =   0 ;   j   =   0 ; 
 	 	       m y R e g E x   =   n e w   R e g E x p ; 
 	 	 	 m y R e g E x   =   m y R e g E x . c o m p i l e ( r e R i v e r R u n I t [ s i t e ] ) ; 
 	 	 	 w h i l e   ( r e s u l t [ i ] )   { 
 	 	 	 	 / / m y R e g E x   =   m y R e g E x . c o m p i l e ( r e R i v e r R u n I t [ s i t e ] ) ; 
 	 	 	       s u b r e s u l t   =   r e s u l t [ i ] . m a t c h ( m y R e g E x ) ; 
 	 	 	       h a n d i n . c o m m u n i t y C a r d s [ 3 ] [ j + + ]   =   s u b r e s u l t [ 2 ] ; 
 	 	 	 	 i + + ; 
 	 	 	 } 
 	 	 	 h a n d i n . r u n t i m e s   =   i ; 
 	 	 } 
 	 } 
 
 	 / / z e r o   o u t   p l a y e r   c o n t r i b u t i o n s   t o   p o t   f o r   t h i s   s t r e e t 
 	 f o r   ( r = 0 ; r < h a n d i n . p l a y e r s . l e n g t h ; r + + )   { 
 	 	 h a n d i n . a c t i o n _ p l a y e r s P o t [ r ]   =   0 ; 
 	 } 
 
 	 / / f i n d   r i v e r   a c t i o n 
 	 r e s u l t   =   h a n d i n . u n f o r m a t t e d N o B r e a k s . m a t c h ( r e R i v e r A c t i o n [ s i t e ] ) ; 
 	 i f   ( ! r e s u l t )   {   r e s u l t   =   h a n d i n . u n f o r m a t t e d N o B r e a k s . m a t c h ( r e R i v e r A c t i o n A l t [ s i t e ] ) ;   } 
 	 i f   ( r e s u l t )   { 
 	 	 h a n d i n . r i v e r T e x t   =   R e g E x p . $ 1 ; 
 	 	 i f   ( s i t e   = =   P S T A R S )   {   h a n d i n   =   p o k e r S t a r s P a r s e A c t i o n ( h a n d i n ,   h a n d i n . r i v e r T e x t ,   3 ) ;   } 
 	 	 e l s e   i f   ( s i t e   = =   F T P )   {   h a n d i n   =   f t p P a r s e A c t i o n ( h a n d i n ,   h a n d i n . r i v e r T e x t ,   3 ) ;   } 
 	 	 e l s e   i f   ( s i t e   = =   C E R E U S )   {   h a n d i n   =   c e r e u s P a r s e A c t i o n ( h a n d i n ,   h a n d i n . r i v e r T e x t ,   3 ) ;   } 
 	 	 e l s e   i f   ( s i t e   = =   H E M )   { h a n d i n   =   H E M P a r s e A c t i o n ( h a n d i n , h a n d i n . r i v e r T e x t , 3 ) ; } 
 	 } 
 
 	 / / s u m m a r y 
 	 i f   ( h a n d i n . u n f o r m a t t e d N o B r e a k s . m a t c h ( r e M a t c h S u m m a r y [ s i t e ] ) )   { 
 	 	 h a n d i n . s h o w d o w n T e x t   =   R e g E x p . $ 1 ; 
 
 	 	 / / i f   ( h a n d i n . s h o w d o w n T e x t . m a t c h ( r e M a t c h S u m m a r y [ s i t e ] ) )   { 
 	 	 / / 	 h a n d i n . s h o w d o w n T e x t   =   R e g E x p . $ 1 ; 
 	 	 / / } 
 	 	 h a n d i n . s h o w d o w n L i n e s   =   h a n d i n . s h o w d o w n T e x t . s p l i t ( /  %/ ) ; 
 
 	 	 / / i n i t i a l i z e   2 D   a r r a y s 
 	 	 h a n d i n . s h o w d o w n _ h a n d s   =   n e w   A r r a y ;       / /   t w o   p a i r ,   F i v e s   a n d   F o u r s 
 	 	 h a n d i n . s h o w d o w n _ p l a y e r s   =   n e w   A r r a y ;   / /   < n i c k > 
 	 	 h a n d i n . s h o w d o w n _ c a r d s   =   n e w   A r r a y ;       / /     J h   Q s   e t c 
 	 	 h a n d i n . s h o w d o w n _ t y p e s   =   n e w   A r r a y ;       / /   w o n ,   l o s t ,   m u c k e d ,   c o l l e c t e d 
 	 	 h a n d i n . r e s u l t _ p l a y e r s   =   n e w   A r r a y ; 
 	 	 h a n d i n . r e s u l t _ v a l u e s   =   n e w   A r r a y ; 
 
 	 	 / / l o o p   t h r o u g h   s h o w d o w n   l i n e s 
 	 	 p l a y e r C o u n t   =   - 1 ; 
 	 	 r e s u l t C o u n t   =   - 1 ; 
 	 	 f o r   ( i   =   0 ;   i   <   h a n d i n . s h o w d o w n L i n e s . l e n g t h ;   i   =   i   +   1 )   { 
 	 	 	 i f   ( s i t e   = =   H E M )   { 
 	 	 	 	 i f   ( h a n d i n . s h o w d o w n L i n e s [ i ] . m a t c h ( r e S u m m a r y E x t r a c t i o n 1 [ s i t e ] ) )   { 
 	 	 	 	 	 m   =   f i n d I n d e x ( h a n d i n . s h o w d o w n _ p l a y e r s , R e g E x p . $ 1 ) ; 
 	 	 	 	 	 i f   ( m   = =   - 1 )   {   m   =   + + p l a y e r C o u n t ;   } 
 	 	 	 	 	 / / p l a y e r C o u n t + + ; 
 	 	 	 	 	 h a n d i n . s h o w d o w n _ p l a y e r s [ m ]   =   R e g E x p . $ 1 ; 
 	 	 	 	 	 h a n d i n . s h o w d o w n _ t y p e s [ m ]   =   " w o n " ; 
 	 	 	 	 	 i f   ( h a n d i n . s h o w d o w n L i n e s [ i ] . m a t c h ( r e T h e M o n e y [ s i t e ] ) )   { 
 	 	 	 	 	 	 r e s u l t C o u n t + + ; 
 	 	 	 	 	 	 h a n d i n . r e s u l t _ p l a y e r s [ r e s u l t C o u n t ]   =   h a n d i n . s h o w d o w n _ p l a y e r s [ m ] ; 
 	 	 	 	 	 	 h a n d i n . r e s u l t _ v a l u e s [ r e s u l t C o u n t ]   =   R e g E x p . $ 1 ; 
 	 	 	 	 	 } 
 	 	 	 	 } 
 	 	 	 	 e l s e   i f   ( r e s u l t   =   h a n d i n . s h o w d o w n L i n e s [ i ] . m a t c h ( r e O S u m m a r y E x t r a c t i o n 2 [ s i t e ] ) )   { 
 	 	 	 	 	 m   =   f i n d I n d e x ( h a n d i n . s h o w d o w n _ p l a y e r s , r e s u l t [ 1 ] ) ; 
 	 	 	 	 	 i f   ( m   >   - 1 )   { 
 	 	 	 	 	 	 h a n d i n . s h o w d o w n _ c a r d s [ m ]   =   n e w   A r r a y ; 
 	 	 	 	 	 	 h a n d i n . s h o w d o w n _ c a r d s [ m ] [ 0 ]   =   r e s u l t [ 2 ] ; 
 	 	 	 	 	 	 h a n d i n . s h o w d o w n _ c a r d s [ m ] [ 1 ]   =   r e s u l t [ 3 ] ; 
 	 	 	 	 	 	 h a n d i n . s h o w d o w n _ c a r d s [ m ] [ 2 ]   =   r e s u l t [ 4 ] ; 
 	 	 	 	 	 	 h a n d i n . s h o w d o w n _ c a r d s [ m ] [ 3 ]   =   r e s u l t [ 5 ] ; 
 	 	 	 	 	 	 h a n d i n . s h o w d o w n _ h a n d s [ m ]   =   "   " ; 
 	 	 	 	 	 } 
 	 	 	 	 	 e l s e   { 
 	 	 	 	 	 	 p l a y e r C o u n t + + ; 
 	 	 	 	 	 	 h a n d i n . s h o w d o w n _ c a r d s [ p l a y e r C o u n t ]   =   n e w   A r r a y ; 
 	 	 	 	 	 	 h a n d i n . s h o w d o w n _ p l a y e r s [ p l a y e r C o u n t ]   =   r e s u l t [ 1 ] ; 
 	 	 	 	 	 	 h a n d i n . s h o w d o w n _ t y p e s [ p l a y e r C o u n t ]   =   " l o s t " ; 
 	 	 	 	 	 	 h a n d i n . s h o w d o w n _ c a r d s [ p l a y e r C o u n t ] [ 0 ]   =   r e s u l t [ 2 ] ; 
 	 	 	 	 	 	 h a n d i n . s h o w d o w n _ c a r d s [ p l a y e r C o u n t ] [ 1 ]   =   r e s u l t [ 3 ] ; 
 	 	 	 	 	 	 h a n d i n . s h o w d o w n _ c a r d s [ p l a y e r C o u n t ] [ 2 ]   =   r e s u l t [ 4 ] ; 
 	 	 	 	 	 	 h a n d i n . s h o w d o w n _ c a r d s [ p l a y e r C o u n t ] [ 3 ]   =   r e s u l t [ 5 ] ; 
 	 	 	 	 	 	 h a n d i n . s h o w d o w n _ h a n d s [ p l a y e r C o u n t ]   =   "   " ; 
 	 	 	 	 	 } 
 	 	 	 	 } 
 	 	 	 } 
 	 	 	 e l s e   i f   ( h a n d i n . s h o w d o w n L i n e s [ i ] . m a t c h ( r e S u m m a r y E x t r a c t i o n 1 [ s i t e ] ) )   { 
 	 	 	 	 p l a y e r C o u n t + + ; 
 	 	 	 	 h a n d i n . s h o w d o w n _ p l a y e r s [ p l a y e r C o u n t ]   =   R e g E x p . $ 1 ; 
 	 	 	 	 h a n d i n . s h o w d o w n _ t y p e s [ p l a y e r C o u n t ]   =   R e g E x p . $ 2 ; 
 	 	 	 	 p a r t T e m p   =   R e g E x p . $ 3 ; 
 	 	 	 	 i f   ( s i t e   = =   C E R E U S )   {   p a r t T e m p   =   R e g E x p . $ 2   +   R e g E x p . $ 3 ;   } 
 	 	 	 	 i f   ( p a r t T e m p . m a t c h ( / (   w o n   |   c o l l e c t e d   |   w i n s   ) / ) )   { 
 	 	 	 	 	 h a n d i n . s h o w d o w n _ t y p e s [ p l a y e r C o u n t ]   =   " w o n " ; 
 	 	 	 	 } 
 	 	 	 	 / / e l s e   { 
 	 	 	 	 / / 	 h a n d i n . s h o w d o w n _ t y p e s [ p l a y e r C o u n t ]   =   " l o s t " ; 
 	 	 	 	 / / } 
 	 	 	 	 h a n d i n . s h o w d o w n _ c a r d s [ p l a y e r C o u n t ]   =   n e w   A r r a y ; 
 	 	 	 	 i f   ( p a r t T e m p )   { 
 	 	 	 	 	 i f   ( p a r t T e m p . m a t c h ( r e T h e M o n e y [ s i t e ] ) )   { 
 	 	 	 	 	 	 r e s u l t C o u n t + + ; 
 	 	 	 	 	 	 h a n d i n . r e s u l t _ p l a y e r s [ r e s u l t C o u n t ]   =   h a n d i n . s h o w d o w n _ p l a y e r s [ p l a y e r C o u n t ] ; 
 	 	 	 	 	 	 h a n d i n . r e s u l t _ v a l u e s [ r e s u l t C o u n t ]   =   R e g E x p . $ 1 ; 
 	 	 	 	 	 } 
 	 	 	 	 	 i f   ( p a r t T e m p . m a t c h ( r e O S u m m a r y E x t r a c t i o n 2 [ s i t e ] ) )   { 
 	 	 	 	 	 	 s w i t c h ( s i t e )   { 
 	 	 	 	 	 	 c a s e   P S T A R S : 
 	 	 	 	 	 	 c a s e   F T P : 
 	 	 	 	 	 	 	 i f   ( R e g E x p . $ 6 )   { 
 	 	 	 	 	 	 	 	 h a n d i n . s h o w d o w n _ h a n d s [ p l a y e r C o u n t ]   =   R e g E x p . $ 6 ; 
 	 	 	 	 	 	 	 } 
 	 	 	 	 	 	 	 h a n d i n . s h o w d o w n _ c a r d s [ p l a y e r C o u n t ] [ 0 ]   =   R e g E x p . $ 1 ; 
 	 	 	 	 	 	 	 h a n d i n . s h o w d o w n _ c a r d s [ p l a y e r C o u n t ] [ 1 ]   =   R e g E x p . $ 2 ; 
 	 	 	 	 	 	 	 h a n d i n . s h o w d o w n _ c a r d s [ p l a y e r C o u n t ] [ 2 ]   =   R e g E x p . $ 3 ; 
 	 	 	 	 	 	 	 h a n d i n . s h o w d o w n _ c a r d s [ p l a y e r C o u n t ] [ 3 ]   =   R e g E x p . $ 4 ; 
 	 	 	 	 	 	 	 b r e a k ; 
 	 	 	 	 	 	 c a s e   C E R E U S : 
 	 	 	 	 	 	 	 h a n d i n . s h o w d o w n _ c a r d s [ p l a y e r C o u n t ] [ 0 ]   =   R e g E x p . $ 3 ; 
 	 	 	 	 	 	 	 h a n d i n . s h o w d o w n _ c a r d s [ p l a y e r C o u n t ] [ 1 ]   =   R e g E x p . $ 4 ; 
 	 	 	 	 	 	 	 h a n d i n . s h o w d o w n _ c a r d s [ p l a y e r C o u n t ] [ 2 ]   =   R e g E x p . $ 5 ; 
 	 	 	 	 	 	 	 h a n d i n . s h o w d o w n _ c a r d s [ p l a y e r C o u n t ] [ 3 ]   =   R e g E x p . $ 6 ; 
 	 	 	 	 	 	 	 h a n d i n . s h o w d o w n _ h a n d s [ p l a y e r C o u n t ]   =   R e g E x p . $ 2 ; 
 	 	 	 	 	 	 	 b r e a k ; 
 	 	 	 	 	 	 } 
 	 	 	 	 	 } 
 	 	 	 	 } 
 	 	 	 	 e l s e   {   h a n d i n . s h o w d o w n _ c a r d s [ p l a y e r C o u n t ] [ 0 ]   =   ' m u c k s ' ;   } 
 	 	 	 } 
 	 	 } 
 	 	 
 
 	 	 / / r a k e 
 	 	 i f   ( h a n d i n . u n f o r m a t t e d . m a t c h ( r e R a k e [ s i t e ] ) )   { 
 	 	 	 h a n d i n . r a k e   =   R e g E x p . $ 1 ; 
 	 	 } 
 	 } 
 
 	 r e t u r n   h a n d i n ; 
 
 } 
 
 S t r i n g . p r o t o t y p e . c a p i t a l i z e   =   f u n c t i o n ( ) {   / / v 1 . 0 
         r e t u r n   t h i s . r e p l a c e ( / \ w + / g ,   f u n c t i o n ( a ) { 
                 r e t u r n   a . c h a r A t ( 0 ) . t o U p p e r C a s e ( )   +   a . s u b s t r ( 1 ) . t o L o w e r C a s e ( ) ; 
         } ) ; 
 } ; 
 
 f u n c t i o n   h a n d T o T e x t ( h a n d i n ,   o u t p u t T y p e , s h o w N a m e s , s h o w R e s u l t s )   { 
 
 	 / / c a l l   e v   c a l c u l a t o r   f o r   d e b u g g i n g 
 	 / / v a r   E V r e s u l t s   =   f c p _ E V _ C a l c u l a t o r ( h a n d i n , 1 0 ) ; 
 	 
 	 / /   t h i s   f u n c t i o n   t a k e s   t h e   h a n d   s t r u c t u r e   a n d   f o r m a t s   t h e   t e x t   o u t p u t 
 	 
 	 s k i p s h o w d o w n   =   0 ; 
 
 	 / / o u t p u t   F o r m a t s 
 	 v a r   F C O   =   0 ;   / /   F e r a l   C o w   O r i g i n a l   /   4 b e t b l u f f . c o m 
 	 v a r   F C P   =   1 ;   / / F u l l   C o n t a c t   P o k e r 
 	 v a r   T P T   =   2 ;   / / T w o   P l u s   T w o 
 	 v a r   T P T 2   =   3 ;   / / T w p   P l u s   T w o   w i t h   e m o t i c o n s 
 	 v a r   T P T 3   =   4 ;   / / T w o   P l u s   T w o   t e x t   o n l y 
 	 / / 5   i s   p o k e r   r o a d ,   l i k e   2 
 	 v a r   I R C   =   6 ;   / / I R C 
 	 v a r   H T M L   =   7 ;   / / h t m l 
 	 / / 8   i s   h t m l   f o r m a t t e d ,   l i k e   7 
 	 v a r   A I M   =   9 ;   / / A I M 
 	 / / 1 0   i s   P 5 s ,   l i k e   h t m l   7 
 	 / / 1 1   i s   g e n e r i c   b b c o d e ,   l i k e   T P T   2 
 	 / / 1 2   i s   h t m l   t e x t ,   l i k e   A I M   9 
 	 v a r   D C   =   1 3 ; 
 	 v a r   D C B   =   1 4 ; 
 	 v a r   M I D   =   1 6 ; 
 	 
 	 v a r   F C O N C   =   2 0 ;   / /   F e r a l   C o w   O r i g i n a l   w i t h   n e w   c a r d s 
 	 o t   =   o u t p u t T y p e ; 
         i f   ( o u t p u t T y p e   = =   5 )   { o t   =   2 ; } ;   / / p o k e r   r o a d 
 	 i f   ( o u t p u t T y p e   = =   8 )   { o t   =   7 ; } ;   / / h t m l   f o r m a t t e d   s a m e   a s   H T M L 
 	 i f   ( o u t p u t T y p e   = =   1 0 )     { o t   = 7 ; } ;   / / P o c k e t   5 ' s   t a k e s   H T M L 
 	 i f   ( o u t p u t T y p e   = =   1 1 )   { o t   =   2 ; } ;   / / g e n e r i c   b b c o d e 
 	 i f   ( o u t p u t T y p e   = = 1 2 )   { o t = 9 ; } ;   / / t e x t - o n l y   H T M L   i s   u n f o r m a t t e d   A I M 
 	 
 	 
 	 / / c o l o r   s e t t i n g s 
 	 t i t l e C o l o r   =   ' # 0 0 0 0 A A ' ; 
 	 b e t C o l o r   =   ' # A A 0 0 0 0 ' ; 
 	 t e x t C o l o r   =   ' # 0 0 0 0 0 0 ' ; 
 	 f o l d C o l o r   =   ' # 8 8 8 8 8 8 ' ; 
 	 p l a y e r s L e f t C o l o r   =   ' # 0 0 6 6 0 0 ' ; 
 	 
 	 / / f o r m a t - s p e c i f i c   t e x t 
 	 v a r   l i n e B r e a k s   =   n e w   A r r a y ( ) ; 
 	 l i n e B r e a k s [ F C O ]   =   " \ n " ; 
 	 l i n e B r e a k s [ F C P ]   =   " \ n " ; 
 	 l i n e B r e a k s [ T P T ]   =   " \ n " ; 
 	 l i n e B r e a k s [ T P T 2 ]   =   " \ n " ; 
 	 l i n e B r e a k s [ T P T 3 ]   =   " \ n " ; 
 	 l i n e B r e a k s [ I R C ]   =   " \ n " ; 
 	 l i n e B r e a k s [ H T M L ]   =   " < b r > " ; 
 	 l i n e B r e a k s [ A I M ]   =   " < b r > " ; 
 	 l i n e B r e a k s [ F C O N C ]   =   " \ n " ; 
 	 l i n e B r e a k s [ D C ]   =   " \ n " ; 
 	 l i n e B r e a k s [ D C B ]   =   " \ n " ; 
 	 l i n e B r e a k s [ M I D ]   =   " \ n " ; 
 	 
 	 v a r   f e r a l c o w i c o n   =   n e w   A r r a y ( ) ; 
 	 f e r a l c o w i c o n [ F C O ]   =   " [ i m g ] h t t p : / / w w w . f e r a l c o w p o k e r . c o m / i m a g e s / f e r a l _ c o w _ i c o n . g i f [ / i m g ] " ; 
 	 f e r a l c o w i c o n [ F C O N C ]   =   " [ i m g ] h t t p : / / w w w . f e r a l c o w p o k e r . c o m / i m a g e s / f e r a l _ c o w _ i c o n . g i f [ / i m g ] " ; 
 	 f e r a l c o w i c o n [ F C P ]   =   " [ i m g ] h t t p : / / w w w . f e r a l c o w p o k e r . c o m / i m a g e s / f e r a l _ c o w _ i c o n . g i f [ / i m g ] " ; 
 	 f e r a l c o w i c o n [ T P T ]   =   " [ i m g ] h t t p : / / w w w . f e r a l c o w p o k e r . c o m / i m a g e s / f e r a l _ c o w _ i c o n . g i f [ / i m g ] " ; 
 	 f e r a l c o w i c o n [ T P T 2 ]   =   " [ i m g ] h t t p : / / w w w . f e r a l c o w p o k e r . c o m / i m a g e s / f e r a l _ c o w _ i c o n . g i f [ / i m g ] " ; 
 	 f e r a l c o w i c o n [ T P T 3 ]   =   " [ i m g ] h t t p : / / w w w . f e r a l c o w p o k e r . c o m / i m a g e s / f e r a l _ c o w _ i c o n . g i f [ / i m g ] " ; 
 	 f e r a l c o w i c o n [ I R C ]   =   " ` O . o '   " ; 
 	 f e r a l c o w i c o n [ H T M L ]   =   " < i m g   s r c = h t t p : / / w w w . f e r a l c o w p o k e r . c o m / i m a g e s / f e r a l _ c o w _ i c o n . g i f > " ; 
 	 f e r a l c o w i c o n [ A I M ]   =   " " ; 
 	 f e r a l c o w i c o n [ D C ]   =   " " ; 
 	 f e r a l c o w i c o n [ D C B ]   =   " ! h t t p : / / w w w . f e r a l c o w p o k e r . c o m / i m a g e s / f e r a l _ c o w _ i c o n . g i f ! " ; 
 	 f e r a l c o w i c o n [ M I D ]   =   " [ i m g ] h t t p : / / w w w . f e r a l c o w p o k e r . c o m / i m a g e s / f e r a l _ c o w _ i c o n . g i f [ / i m g ] " ; 
 
 	 v a r   c a r d P r e f i x   =   n e w   A r r a y ( ) ; 
 	 v a r   c a r d P o s t f i x   =   n e w   A r r a y ( ) ; 
 	 c a r d P r e f i x [ F C O ]   =   ' : ' ; 
 	 c a r d P o s t f i x [ F C O ]   =   ' : ' ; 
 	 c a r d P r e f i x [ F C O N C ]   =   ' [ i m g ] h t t p : / / w w w . f e r a l c o w p o k e r . c o m / i m a g e s / c a r d s / '   +   c a r d F o l d e r   +   ' / ' ; 
 	 c a r d P o s t f i x [ F C O N C ]   =   ' . g i f [ / i m g ] ' ; 
 	 c a r d P r e f i x [ F C P ]   =   ' : ' ; 
 	 c a r d P o s t f i x [ F C P ]   =   ' ' ; 
 	 c a r d P r e f i x [ T P T ]   =   ' [ i m g ] h t t p : / / w w w . f e r a l c o w p o k e r . c o m / i m a g e s / c a r d s / ' +   c a r d F o l d e r   +   ' / ' ; 
 	 c a r d P o s t f i x [ T P T ]   =   ' . g i f [ / i m g ] ' ; 
 	 c a r d P r e f i x [ T P T 2 ]   =   ' ' ; 
 	 c a r d P o s t f i x [ T P T 2 ]   =   ' ' ; 
 	 c a r d P r e f i x [ T P T 3 ]   =   ' [ b ] ' ; 
 	 c a r d P o s t f i x [ T P T 3 ]   =   ' [ / b ] ' ; 
 	 c a r d P r e f i x [ D C ]   =   ' [ b ] ' ; 
 	 c a r d P o s t f i x [ D C ]   =   ' [ / b ] ' ; 
 	 c a r d P r e f i x [ D C B ]   =   ' ! h t t p : / / w w w . f e r a l c o w p o k e r . c o m / i m a g e s / c a r d s / ' +   c a r d F o l d e r   +   ' / ' ; 
 	 c a r d P o s t f i x [ D C B ]   =   ' . g i f ! ' ; 
 	 c a r d P r e f i x [ I R C ]   =   S t r i n g . f r o m C h a r C o d e ( 2 ) ; ; 
 	 c a r d P o s t f i x [ I R C ]   =   S t r i n g . f r o m C h a r C o d e ( 2 ) ; ; 
 	 c a r d P r e f i x [ H T M L ]   =   ' < i m g   s r c = h t t p : / / w w w . f e r a l c o w p o k e r . c o m / i m a g e s / c a r d s / ' +   c a r d F o l d e r   +   ' / ' ; 
 	 c a r d P o s t f i x [ H T M L ]   =   ' . g i f > ' ; 
 	 c a r d P r e f i x [ A I M ]   =   ' ' ; 
 	 c a r d P o s t f i x [ A I M ]   =   ' ' ; 
 	 c a r d P r e f i x [ M I D ]   =   ' ' ; 
 	 c a r d P o s t f i x [ M I D ]   =   ' ' ; 
 
 
 	 
 	 v a r   t a g L i n e P r e f i x   =   n e w   A r r a y ( ) ; 
 	 v a r   t a g L i n e P o s t f i x   =   n e w   A r r a y ( ) ; 
 	 t a g L i n e P r e f i x [ F C O ]   =   ' [ c o l o r = '   +     t i t l e C o l o r   +   ' ] [ s i z e = 1 ] v ' + v e r s i o n + ' [ / s i z e ] [ / c o l o r ] ' ; 
 	 t a g L i n e P o s t f i x [ F C O ]   =   ' ' ; 
 	 t a g L i n e P r e f i x [ F C O N C ]   =   ' [ c o l o r = '   +     t i t l e C o l o r   +   ' ] [ s i z e = 1 ] v ' + v e r s i o n + ' [ / s i z e ] [ / c o l o r ] ' ; 
 	 t a g L i n e P o s t f i x [ F C O N C ]   =   ' ' ; 
 	 t a g L i n e P r e f i x [ F C P ]   =   ' [ u r l = h t t p : / / w w w . f e r a l c o w p o k e r . c o m / p o k e r - h a n d - h i s t o r y - c o n v e r t e r . p h p ? v e r s i o n = '   +   v e r s i o n   + ' ] ' ; 
 	 t a g L i n e P o s t f i x [ F C P ]   =   ' [ / u r l ] ' ; 
 	 t a g L i n e P r e f i x [ T P T ]   =   ' [ u r l = h t t p : / / w w w . f e r a l c o w p o k e r . c o m / p o k e r - h a n d - h i s t o r y - c o n v e r t e r . p h p ? v e r s i o n = '   +   v e r s i o n   + ' ] ' ; 
 	 t a g L i n e P o s t f i x [ T P T ]   =   ' [ / u r l ] ' ; 
 	 t a g L i n e P r e f i x [ T P T 2 ]   =   ' [ u r l = h t t p : / / w w w . f e r a l c o w p o k e r . c o m / p o k e r - h a n d - h i s t o r y - c o n v e r t e r . p h p ? v e r s i o n = '   +   v e r s i o n   + ' ] ' ; 
 	 t a g L i n e P o s t f i x [ T P T 2 ]   =   ' [ / u r l ] ' ; 
 	 t a g L i n e P r e f i x [ T P T 3 ]   =   ' [ u r l = h t t p : / / w w w . f e r a l c o w p o k e r . c o m / p o k e r - h a n d - h i s t o r y - c o n v e r t e r . p h p ? v e r s i o n = '   +   v e r s i o n   + ' ] ' ; 
 	 t a g L i n e P o s t f i x [ T P T 3 ]   =   ' [ / u r l ] ' ; 
 	 t a g L i n e P r e f i x [ I R C ]   =   S t r i n g . f r o m C h a r C o d e ( 2 ) ; 
 	 t a g L i n e P o s t f i x [ I R C ]   =   S t r i n g . f r o m C h a r C o d e ( 2 ) ; 
 	 t a g L i n e P r e f i x [ H T M L ]   =   ' < a   h r e f = h t t p : / / w w w . f e r a l c o w p o k e r . c o m / p o k e r - h a n d - h i s t o r y - c o n v e r t e r . p h p ? v e r s i o n = ' + v e r s i o n + ' > ' ; 
 	 t a g L i n e P o s t f i x [ H T M L ]   =   ' < / a > ' ; 
 	 t a g L i n e P r e f i x [ A I M ]   =   ' < a   h r e f = h t t p : / / w w w . f e r a l c o w p o k e r . c o m / p o k e r - h a n d - h i s t o r y - c o n v e r t e r . p h p ? v e r s i o n = ' + v e r s i o n + ' > ' ; 
 	 t a g L i n e P o s t f i x [ A I M ]   =   ' < / a > ' ; 
 	 t a g L i n e P r e f i x [ D C ]   =   ' [ u r l = h t t p : / / w w w . f e r a l c o w p o k e r . c o m / p o k e r - h a n d - h i s t o r y - c o n v e r t e r . p h p ? v e r s i o n = '   +   v e r s i o n   + ' ] ' ; 
 	 t a g L i n e P o s t f i x [ D C ]   =   ' [ / u r l ] ' ; 
 	 t a g L i n e P r e f i x [ D C ]   =   ' [ u r l = h t t p : / / w w w . f e r a l c o w p o k e r . c o m / p o k e r - h a n d - h i s t o r y - c o n v e r t e r . p h p ? v e r s i o n = '   +   v e r s i o n   + ' ] ' ; 
 	 t a g L i n e P o s t f i x [ D C ]   =   ' [ / u r l ] ' ; 
 	 t a g L i n e P r e f i x [ D C B ]   =   ' " ' ; 
 	 t a g L i n e P o s t f i x [ D C B ]   =   ' " : h t t p : / / w w w . f e r a l c o w p o k e r . c o m / p o k e r - h a n d - h i s t o r y - c o n v e r t e r . p h p ? v e r s i o n = '   +   v e r s i o n   ; 
 	 t a g L i n e P r e f i x [ M I D ]   =   ' [ u r l = h t t p : / / w w w . f e r a l c o w p o k e r . c o m / p o k e r - h a n d - h i s t o r y - c o n v e r t e r . p h p ? v e r s i o n = '   +   v e r s i o n   + ' ] ' ; 
 	 t a g L i n e P o s t f i x [ M I D ]   =   ' [ / u r l ] ' ; 
 
 	 
 	 v a r   g a m e I n f o P r e   =   n e w   A r r a y ( ) ; 
 	 v a r   g a m e I n f o P o s t   =   n e w   A r r a y ( ) ; 
 	 g a m e I n f o P r e [ F C O ]   =   " " ; 
 	 g a m e I n f o P o s t [ F C O ]   =   " " ; 
 	 g a m e I n f o P r e [ F C O N C ]   =   " " ; 
 	 g a m e I n f o P o s t [ F C O N C ]   =   " " ; 
 	 g a m e I n f o P r e [ F C P ]   =   " " ; 
 	 g a m e I n f o P o s t [ F C P ]   =   " " ; 
 	 g a m e I n f o P r e [ T P T ]   =   " " ; 
 	 g a m e I n f o P o s t [ T P T ]   =   " " ; 
 	 g a m e I n f o P r e [ T P T 2 ]   =   " " ; 
 	 g a m e I n f o P o s t [ T P T 2 ]   =   " " ; 
 	 g a m e I n f o P r e [ T P T 3 ]   =   " " ; 
 	 g a m e I n f o P o s t [ T P T 3 ]   =   " " ; 
 	 g a m e I n f o P r e [ I R C ]   =   S t r i n g . f r o m C h a r C o d e ( 3 )   +   " 0 , 1 4 "   +   S t r i n g . f r o m C h a r C o d e ( 2 )   +   S t r i n g . f r o m C h a r C o d e ( 3 1 ) ; 
 	 g a m e I n f o P o s t [ I R C ]   =   S t r i n g . f r o m C h a r C o d e ( 3 )   +   " 1 "   +   S t r i n g . f r o m C h a r C o d e ( 2 )   +   S t r i n g . f r o m C h a r C o d e ( 3 1 ) ; 
 	 g a m e I n f o P r e [ H T M L ]   =   " < b > " ; 
 	 g a m e I n f o P o s t [ H T M L ]   =   " < / b > " ; 
 	 g a m e I n f o P r e [ A I M ]   =   " < b > " ; 
 	 g a m e I n f o P o s t [ A I M ]   =   " < / b > " ; 
 	 g a m e I n f o P r e [ D C ]   =   " " ; 
 	 g a m e I n f o P o s t [ D C ]   =   " " ; 
 	 g a m e I n f o P r e [ D C B ]   =   " " ; 
 	 g a m e I n f o P o s t [ D C B ]   =   " " ; 
 	 g a m e I n f o P r e [ M I D ]   =   " " ; 
 	 g a m e I n f o P o s t [ M I D ]   =   " " ; 
 
 	 v a r   h o l e c a r d P r e   =   n e w   A r r a y ( ) ; 
 	 v a r   h o l e c a r d P o s t   =   n e w   A r r a y ( ) ; 
 	 h o l e c a r d P r e [ F C O ]   =   " [ h o l e c a r d ] " ; 
 	 h o l e c a r d P o s t [ F C O ]   =   " [ / h o l e c a r d ] " ; 
 	 h o l e c a r d P r e [ F C O N C ]   =   " [ h o l e c a r d ] " ; 
 	 h o l e c a r d P o s t [ F C O N C ]   =   " [ / h o l e c a r d ] " ; 
 	 h o l e c a r d P r e [ F C P ]   =   " [ : " ; 
 	 h o l e c a r d P o s t [ F C P ]   =   " ] " ; 
 	 h o l e c a r d P r e [ T P T ]   =   " [ [ i m g ] h t t p : / / w w w . f e r a l c o w p o k e r . c o m / i m a g e s / c a r d s / " +   c a r d F o l d e r   +   ' / ' ; 
 	 h o l e c a r d P o s t [ T P T ]   =   " . g i f [ / i m g ] ] " ; 
 	 h o l e c a r d P r e [ T P T 2 ]   =   " [ " ; 
 	 h o l e c a r d P o s t [ T P T 2 ] =   " ] " ; 
 	 h o l e c a r d P r e [ T P T 3 ]   =   " [ " ; 
 	 h o l e c a r d P o s t [ T P T 3 ] =   " ] " ; 
 	 h o l e c a r d P r e [ I R C ]   =   " [ " ; 
 	 h o l e c a r d P o s t [ I R C ]   =   " ] " ; 
 	 h o l e c a r d P r e [ H T M L ]   =   " [ " ; 
 	 h o l e c a r d P o s t [ H T M L ]   =   " ] " ; 
 	 h o l e c a r d P r e [ A I M ]   =   " [ " ; 
 	 h o l e c a r d P o s t [ A I M ]   =   " ] " ; 
 	 h o l e c a r d P r e [ D C ]   =   " [ " ; 
 	 h o l e c a r d P o s t [ D C ] =   " ] " ; 
 	 h o l e c a r d P r e [ D C B ]   =   " [ " ; 
 	 h o l e c a r d P o s t [ D C B ] =   " ] " ; 
 	 h o l e c a r d P r e [ M I D ]   =   " [ " ; 
 	 h o l e c a r d P o s t [ M I D ] =   " ] " ; 
 	 
 	 v a r   u n k n o w n C a r d   =   n e w   A r r a y ( ) ; 
 	 u n k n o w n C a r d [ F C O ]   =   " : 1 s : " ; 
 	 u n k n o w n C a r d [ F C O N C ]   =   " : 1 s : " ; 
 	 u n k n o w n C a r d [ F C P ]   =   " [ X ] " ; 
 	 u n k n o w n C a r d [ T P T ]   =   " [ X ] " ; 
 	 u n k n o w n C a r d [ T P T 2 ]   =   " [ X ] " ; 
 	 u n k n o w n C a r d [ T P T 3 ]   =   " [ X ] " ; 
 	 u n k n o w n C a r d [ I R C ]   =   " [ X ] " ; 
 	 u n k n o w n C a r d [ H T M L ]   =   " [ X ] " ; 
 	 u n k n o w n C a r d [ A I M ]   =   " [ X ] " ; 
 	 u n k n o w n C a r d [ D C ]   =   " [ X ] " ; 
 	 u n k n o w n C a r d [ D C B ]   =   " [ X ] " ; 
 	 u n k n o w n C a r d [ M I D ]   =   " [ X ] " ; 
 	 
 	 v a r   p o s i t i o n P r e   =   n e w   A r r a y ( ) ; 
 	 v a r   p o s i t i o n P o s t   =   n e w   A r r a y ( ) ; 
 	 p o s i t i o n P r e [ F C O ]   =   " " ; 
 	 p o s i t i o n P o s t [ F C O ]   =   " " ; 
 	 p o s i t i o n P r e [ F C O N C ]   =   " " ; 
 	 p o s i t i o n P o s t [ F C O N C ]   =   " " ; 
 	 p o s i t i o n P r e [ F C P ]   =   " " ; 
 	 p o s i t i o n P o s t [ F C P ]   =   " " ; 
 	 p o s i t i o n P r e [ T P T ]   =   " " ; 
 	 p o s i t i o n P o s t [ T P T ]   =   " " ; 
 	 p o s i t i o n P r e [ T P T 2 ]   =   " " ; 
 	 p o s i t i o n P o s t [ T P T 2 ]   =   " " ; 
 	 p o s i t i o n P r e [ T P T 3 ]   =   " " ; 
 	 p o s i t i o n P o s t [ T P T 3 ]   =   " " ; 
 	 p o s i t i o n P r e [ I R C ]   =   S t r i n g . f r o m C h a r C o d e ( 2 ) ; 
 	 p o s i t i o n P o s t [ I R C ]   =   S t r i n g . f r o m C h a r C o d e ( 2 ) ; 	 
 	 p o s i t i o n P r e [ H T M L ]   =   " " ; 
 	 p o s i t i o n P o s t [ H T M L ]   =   " " ; 
 	 p o s i t i o n P r e [ A I M ]   =   " " ; 
 	 p o s i t i o n P o s t [ A I M ]   =   " " ; 
 	 p o s i t i o n P r e [ D C ]   =   " " ; 
 	 p o s i t i o n P o s t [ D C ]   =   " " ; 
 	 p o s i t i o n P r e [ D C B ]   =   " " ; 
 	 p o s i t i o n P o s t [ D C B ]   =   " " ; 
 	 p o s i t i o n P r e [ M I D ]   =   " " ; 
 	 p o s i t i o n P o s t [ M I D ]   =   " " ; 
 	 
 	 v a r   p l a y e r N a m e P r e   =   n e w   A r r a y ( ) ; 
 	 v a r   p l a y e r N a m e P o s t   =   n e w   A r r a y ( ) ; 
 	 p l a y e r N a m e P r e [ F C O ]   =   " [ c o l o r = # 4 B 0 0 8 2 ] " ; 
 	 p l a y e r N a m e P o s t [ F C O ]   =   " [ / c o l o r ] " ; 
 	 p l a y e r N a m e P r e [ F C O N C ]   =   " [ c o l o r = # 4 B 0 0 8 2 ] " ; 
 	 p l a y e r N a m e P o s t [ F C O N C ]   =   " [ / c o l o r ] " ; 
 	 p l a y e r N a m e P r e [ F C P ]   =   " [ c o l o r = # 4 B 0 0 8 2 ] " ; 
 	 p l a y e r N a m e P o s t [ F C P ]   =   " [ / c o l o r ] " ; 
 	 p l a y e r N a m e P r e [ T P T ]   =   " [ c o l o r = # 4 B 0 0 8 2 ] " ; 
 	 p l a y e r N a m e P o s t [ T P T ]   =   " [ / c o l o r ] " ; 
 	 p l a y e r N a m e P r e [ T P T 2 ]   =   " [ c o l o r = # 4 B 0 0 8 2 ] " ; 
 	 p l a y e r N a m e P o s t [ T P T 2 ]   =   " [ / c o l o r ] " ; 
 	 p l a y e r N a m e P r e [ T P T 3 ]   =   " [ c o l o r = # 4 B 0 0 8 2 ] " ; 
 	 p l a y e r N a m e P o s t [ T P T 3 ]   =   " [ / c o l o r ] " ; 
 	 p l a y e r N a m e P r e [ I R C ]   =   " " ; 
 	 p l a y e r N a m e P o s t [ I R C ]   =   " " ; 	 
 	 p l a y e r N a m e P r e [ H T M L ]   =   " < f o n t   c o l o r = # 4 B 0 0 8 2 > " ; 
 	 p l a y e r N a m e P o s t [ H T M L ]   =   " < / f o n t > " ; 
 	 p l a y e r N a m e P r e [ A I M ]   =   " < f o n t   c o l o r = # 4 B 0 0 8 2 > " ; 
 	 p l a y e r N a m e P o s t [ A I M ]   =   " < / f o n t > " ; 
 	 p l a y e r N a m e P r e [ D C ]   =   " [ c o l o r = # 4 B 0 0 8 2 ] " ; 
 	 p l a y e r N a m e P o s t [ D C ]   =   " [ / c o l o r ] " ; 
 	 p l a y e r N a m e P r e [ D C B ]   =   " " ; 
 	 p l a y e r N a m e P o s t [ D C B ]   =   " " ; 
 	 
 	 v a r   e n d S t a c k L i n e   =   n e w   A r r a y ( ) ; 
 	 e n d S t a c k L i n e [ F C O ]   =   " \ n " ; 
 	 e n d S t a c k L i n e [ F C O N C ]   =   " \ n " ; 
 	 e n d S t a c k L i n e [ F C P ]   =   " \ n " ; 
 	 e n d S t a c k L i n e [ T P T ]   =   " \ n " ; 
 	 e n d S t a c k L i n e [ T P T 2 ]   =   " \ n " ; 
 	 e n d S t a c k L i n e [ T P T 3 ]   =   " \ n " ; 
 	 e n d S t a c k L i n e [ I R C ]   =   "   |   " ; 
 	 e n d S t a c k L i n e [ H T M L ]   =   " < b r > " ; 
 	 e n d S t a c k L i n e [ A I M ]   =   " < b r > " ; 
 	 e n d S t a c k L i n e [ D C ]   =   " \ n " ; 
 	 e n d S t a c k L i n e [ D C B ]   =   " \ n " ; 
 	 e n d S t a c k L i n e [ M I D ]   =   " \ n " ; 
 	 
 	 v a r   s t r e e t N a m e P r e   =   n e w   A r r a y ( ) ; 
 	 v a r   s t r e e t N a m e P o s t   =   n e w   A r r a y ( ) ; 
 	 s t r e e t N a m e P r e [ F C O ]   =   " [ b ] " ; 
 	 s t r e e t N a m e P o s t [ F C O ]   =   " [ / b ] " ; 
 	 s t r e e t N a m e P r e [ F C O N C ]   =   " [ b ] " ; 
 	 s t r e e t N a m e P o s t [ F C O N C ]   =   " [ / b ] " ; 
 	 s t r e e t N a m e P r e [ F C P ]   =   " [ b ] " ; 
 	 s t r e e t N a m e P o s t [ F C P ]   =   " [ / b ] " ; 
 	 s t r e e t N a m e P r e [ T P T ]   =   " [ b ] " ; 
 	 s t r e e t N a m e P o s t [ T P T ]   =   " [ / b ] " ; 
 	 s t r e e t N a m e P r e [ T P T 2 ]   =   " [ b ] " ; 
 	 s t r e e t N a m e P o s t [ T P T 2 ]   =   " [ / b ] " ; 
 	 s t r e e t N a m e P r e [ T P T 3 ]   =   " [ b ] " ; 
 	 s t r e e t N a m e P o s t [ T P T 3 ]   =   " [ / b ] " ; 
 	 s t r e e t N a m e P r e [ I R C ]   =   S t r i n g . f r o m C h a r C o d e ( 2 )   +   S t r i n g . f r o m C h a r C o d e ( 3 1 ) ; 
 	 s t r e e t N a m e P o s t [ I R C ]   =   S t r i n g . f r o m C h a r C o d e ( 2 )   +   S t r i n g . f r o m C h a r C o d e ( 3 1 ) ; 
 	 s t r e e t N a m e P r e [ H T M L ]   =   " < b > " ; 
 	 s t r e e t N a m e P o s t [ H T M L ]   =   " < / b > " ; 
 	 s t r e e t N a m e P r e [ A I M ]   =   " < b > " ; 
 	 s t r e e t N a m e P o s t [ A I M ]   =   " < / b > " ; 
 	 s t r e e t N a m e P r e [ D C ]   =   " [ b ] " ; 
 	 s t r e e t N a m e P o s t [ D C ]   =   " [ / b ] " ; 
 	 s t r e e t N a m e P r e [ D C B ]   =   " * " ; 
 	 s t r e e t N a m e P o s t [ D C B ]   =   " * " ; 
 	 s t r e e t N a m e P r e [ M I D ]   =   " [ b ] " ; 
 	 s t r e e t N a m e P o s t [ M I D ]   =   " [ / b ] " ; 
 	 
 	 v a r   p l a y e r s L e f t P r e   =   n e w   A r r a y ( ) ; 
 	 v a r   p l a y e r s L e f t P o s t   =   n e w   A r r a y ( ) ; 
 	 p l a y e r s L e f t P r e [ F C O ]   =   " [ c o l o r = "   +   p l a y e r s L e f t C o l o r   +   " ] " ; 
 	 p l a y e r s L e f t P o s t [ F C O ]   =   " [ / c o l o r ] " ; 
 	 p l a y e r s L e f t P r e [ F C O N C ]   =   " [ c o l o r = "   +   p l a y e r s L e f t C o l o r   +   " ] " ; 
 	 p l a y e r s L e f t P o s t [ F C O N C ]   =   " [ / c o l o r ] " ; 
 	 p l a y e r s L e f t P r e [ F C P ]   =   " [ c o l o r = "   +   p l a y e r s L e f t C o l o r   +   " ] " ; 
 	 p l a y e r s L e f t P o s t [ F C P ]   =   " [ / c o l o r ] " ; 
 	 p l a y e r s L e f t P r e [ T P T ]   =   " [ c o l o r = "   +   p l a y e r s L e f t C o l o r   +   " ] " ; 
 	 p l a y e r s L e f t P o s t [ T P T ]   =   " [ / c o l o r ] " ; 
 	 p l a y e r s L e f t P r e [ T P T 2 ]   =   " [ c o l o r = "   +   p l a y e r s L e f t C o l o r   +   " ] " ; 
 	 p l a y e r s L e f t P o s t [ T P T 2 ]   =   " [ / c o l o r ] " ; 
 	 p l a y e r s L e f t P r e [ T P T 3 ]   =   " [ c o l o r = "   +   p l a y e r s L e f t C o l o r   +   " ] " ; 
 	 p l a y e r s L e f t P o s t [ T P T 3 ]   =   " [ / c o l o r ] " ; 
 	 p l a y e r s L e f t P r e [ I R C ]   =   S t r i n g . f r o m C h a r C o d e ( 3 )   +   " 6 " ; 
 	 p l a y e r s L e f t P o s t [ I R C ]   =   S t r i n g . f r o m C h a r C o d e ( 3 )   +   " 1 " ; 
 	 p l a y e r s L e f t P r e [ H T M L ]   =   " < f o n t   c o l o r = "   +   p l a y e r s L e f t C o l o r   +   " > " ; 
 	 p l a y e r s L e f t P o s t [ H T M L ]   =   " < / f o n t > " ; 
 	 p l a y e r s L e f t P r e [ A I M ]   =   " < f o n t   c o l o r = "   +   p l a y e r s L e f t C o l o r   +   " > " ; 
 	 p l a y e r s L e f t P o s t [ A I M ]   =   " < / f o n t > " ; 
 	 p l a y e r s L e f t P r e [ D C ]   =   " [ c o l o r = "   +   p l a y e r s L e f t C o l o r   +   " ] " ; 
 	 p l a y e r s L e f t P o s t [ D C ]   =   " [ / c o l o r ] " ; 
 	 p l a y e r s L e f t P r e [ D C B ]   =   " " ; 
 	 p l a y e r s L e f t P o s t [ D C B ]   =   " " ; 
 	 p l a y e r s L e f t P r e [ M I D ]   =   " [ c o l o r = "   +   p l a y e r s L e f t C o l o r   +   " ] " ; 
 	 p l a y e r s L e f t P o s t [ M I D ]   =   " [ / c o l o r ] " ; 
 
 	 v a r   f o l d s P r e   =   n e w   A r r a y ( ) ; 
 	 v a r   f o l d s P o s t   =   n e w   A r r a y ( ) ; 
 	 f o l d s P r e [ F C O ]   =   " [ i ] [ c o l o r = "   +   f o l d C o l o r   +   " ] " ; 
 	 f o l d s P o s t [ F C O ]   =   " [ / i ] [ / c o l o r ] " ; 
 	 f o l d s P r e [ F C O N C ]   =   " [ i ] [ c o l o r = "   +   f o l d C o l o r   +   " ] " ; 
 	 f o l d s P o s t [ F C O N C ]   =   " [ / i ] [ / c o l o r ] " ; 
 	 f o l d s P r e [ F C P ]   =   " [ i ] [ c o l o r = "   +   f o l d C o l o r   +   " ] " ; 
 	 f o l d s P o s t [ F C P ]   =   " [ / i ] [ / c o l o r ] " ; 
 	 f o l d s P r e [ T P T ]   =   " [ i ] [ c o l o r = "   +   f o l d C o l o r   +   " ] " ; 
 	 f o l d s P o s t [ T P T ]   =   " [ / c o l o r ] [ / i ] " ; 
 	 f o l d s P r e [ T P T 2 ]   =   " [ i ] [ c o l o r = "   +   f o l d C o l o r   +   " ] " ; 
 	 f o l d s P o s t [ T P T 2 ]   =   " [ / c o l o r ] [ / i ] " ; 
 	 f o l d s P r e [ T P T 3 ]   =   " [ i ] [ c o l o r = "   +   f o l d C o l o r   +   " ] " ; 
 	 f o l d s P o s t [ T P T 3 ]   =   " [ / i ] [ / c o l o r ] " ; 
 	 f o l d s P r e [ I R C ]   =   " " ; 
 	 f o l d s P o s t [ I R C ]   =   " " ; 
 	 f o l d s P r e [ H T M L ]   =   " < i > < f o n t   c o l o r   = "   +   f o l d C o l o r   +   " > " ; 
 	 f o l d s P o s t [ H T M L ]   =   " < / i > < / f o n t > " ; 
 	 f o l d s P r e [ A I M ]   =   " < i > < f o n t   c o l o r   = "   +   f o l d C o l o r   +   " > " ; 
 	 f o l d s P o s t [ A I M ]   =   " < / i > < / f o n t > " ; 
 	 f o l d s P r e [ D C ]   =   " [ i ] [ c o l o r = "   +   f o l d C o l o r   +   " ] " ; 
 	 f o l d s P o s t [ D C ]   =   " [ / i ] [ / c o l o r ] " ; 
 	 f o l d s P r e [ D C B ]   =   " _ " ; 
 	 f o l d s P o s t [ D C B ]   =   " _ " ; 
 	 f o l d s P r e [ M I D ]   =   " [ i ] [ c o l o r = "   +   f o l d C o l o r   +   " ] " ; 
 	 f o l d s P o s t [ M I D ]   =   " [ / c o l o r ] [ / i ] " ; 
 	 
 	 v a r   b e t A c t i o n P r e   =   n e w   A r r a y ( ) ; 
 	 v a r   b e t A c t i o n P o s t   =   n e w   A r r a y ( ) ; 
 	 b e t A c t i o n P r e [ F C O ]   =   " [ c o l o r = "   +   b e t C o l o r   +   " ] " ;   
 	 b e t A c t i o n P o s t [ F C O ]   =   " [ / c o l o r ] " ; 
 	 b e t A c t i o n P r e [ F C O N C ]   =   " [ c o l o r = "   +   b e t C o l o r   +   " ] " ;   
 	 b e t A c t i o n P o s t [ F C O N C ]   =   " [ / c o l o r ] " ; 
 	 b e t A c t i o n P r e [ F C P ]   =   " [ c o l o r = "   +   b e t C o l o r   +   " ] " ;   
 	 b e t A c t i o n P o s t [ F C P ]   =   " [ / c o l o r ] " ; 
 	 b e t A c t i o n P r e [ T P T ]   =   " [ c o l o r = "   +   b e t C o l o r   +   " ] " ;   
 	 b e t A c t i o n P o s t [ T P T ]   =   " [ / c o l o r ] " ; 
 	 b e t A c t i o n P r e [ T P T 2 ]   =   " [ c o l o r = "   +   b e t C o l o r   +   " ] " ;   
 	 b e t A c t i o n P o s t [ T P T 2 ]   =   " [ / c o l o r ] " ; 
 	 b e t A c t i o n P r e [ T P T 3 ]   =   " [ c o l o r = "   +   b e t C o l o r   +   " ] " ;   
 	 b e t A c t i o n P o s t [ T P T 3 ]   =   " [ / c o l o r ] " ; 
 	 b e t A c t i o n P r e [ I R C ]   =   " " ;   
 	 b e t A c t i o n P o s t [ I R C ]   =   " " ; 
 	 b e t A c t i o n P r e [ H T M L ]   =   " < f o n t   c o l o r = "   +   b e t C o l o r   +   " > " ;   
 	 b e t A c t i o n P o s t [ H T M L ]   =   " < / f o n t > " ; 
 	 b e t A c t i o n P r e [ A I M ]   =   " < f o n t   c o l o r = "   +   b e t C o l o r   +   " > " ;   
 	 b e t A c t i o n P o s t [ A I M ]   =   " < / f o n t > " ; 
 	 b e t A c t i o n P r e [ D C ]   =   " [ c o l o r = "   +   b e t C o l o r   +   " ] " ;   
 	 b e t A c t i o n P o s t [ D C ]   =   " [ / c o l o r ] " ; 
 	 b e t A c t i o n P r e [ D C B ]   =   " " ;   
 	 b e t A c t i o n P o s t [ D C B ]   =   " " ; 
 	 b e t A c t i o n P r e [ M I D ]   =   " [ c o l o r = "   +   b e t C o l o r   +   " ] " ;   
 	 b e t A c t i o n P o s t [ M I D ]   =   " [ / c o l o r ] " ; 
 	 
 	 v a r   r e g A c t i o n P r e   =   n e w   A r r a y ( ) ; 
 	 v a r   r e g A c t i o n P o s t   =   n e w   A r r a y ( ) ; 
 	 r e g A c t i o n P r e [ F C O ]   =   " [ c o l o r = "   +   t e x t C o l o r   +   " ] " ;   
 	 r e g A c t i o n P o s t [ F C O ]   =   " [ / c o l o r ] " ; 
 	 r e g A c t i o n P r e [ F C O N C ]   =   " [ c o l o r = "   +   t e x t C o l o r   +   " ] " ;   
 	 r e g A c t i o n P o s t [ F C O N C ]   =   " [ / c o l o r ] " ; 
 	 r e g A c t i o n P r e [ F C P ]   =   " [ c o l o r = "   +   t e x t C o l o r   +   " ] " ;   
 	 r e g A c t i o n P o s t [ F C P ]   =   " [ / c o l o r ] " ; 
 	 r e g A c t i o n P r e [ T P T ]   =   " [ c o l o r = "   +   t e x t C o l o r   +   " ] " ;   
 	 r e g A c t i o n P o s t [ T P T ]   =   " [ / c o l o r ] " ; 
 	 r e g A c t i o n P r e [ T P T 2 ]   =   " [ c o l o r = "   +   t e x t C o l o r   +   " ] " ;   
 	 r e g A c t i o n P o s t [ T P T 2 ]   =   " [ / c o l o r ] " ; 
 	 r e g A c t i o n P r e [ T P T 3 ]   =   " [ c o l o r = "   +   t e x t C o l o r   +   " ] " ;   
 	 r e g A c t i o n P o s t [ T P T 3 ]   =   " [ / c o l o r ] " ; 
 	 r e g A c t i o n P r e [ I R C ]   =   " " ;   
 	 r e g A c t i o n P o s t [ I R C ]   =   " " ; 
 	 r e g A c t i o n P r e [ H T M L ]   =   " < f o n t   c o l o r = "   +   t e x t C o l o r   +   " > " ;   
 	 r e g A c t i o n P o s t [ H T M L ]   =   " < / f o n t > " ; 
 	 r e g A c t i o n P r e [ A I M ]   =   " < f o n t   c o l o r = "   +   t e x t C o l o r   +   " > " ;   
 	 r e g A c t i o n P o s t [ A I M ]   =   " < / f o n t > " ; 
 	 r e g A c t i o n P r e [ D C ]   =   " [ c o l o r = "   +   t e x t C o l o r   +   " ] " ;   
 	 r e g A c t i o n P o s t [ D C ]   =   " [ / c o l o r ] " ; 
 	 r e g A c t i o n P r e [ D C B ]   =   " " ;   
 	 r e g A c t i o n P o s t [ D C B ]   =   " " ; 
 	 r e g A c t i o n P r e [ M I D ]   =   " [ c o l o r = "   +   t e x t C o l o r   +   " ] " ;   
 	 r e g A c t i o n P o s t [ M I D ]   =   " [ / c o l o r ] " ; 
 
 	 
 	 v a r   s u i t P r e   =   n e w   A r r a y ( ) ; 
 	 v a r   s u i t P o s t   =   n e w   A r r a y ( ) ; 
 	 s u i t P r e [ ' h ' ]   =   n e w   A r r a y ( ) ; 
 	 s u i t P o s t [ ' h ' ]   =   n e w   A r r a y ( ) ; 
 	 s u i t P r e [ ' h ' ] [ F C O ]   =   " " ; 
 	 s u i t P o s t [ ' h ' ] [ F C O ]   =   " " ;   
 	 s u i t P r e [ ' h ' ] [ F C O N C ]   =   " " ; 
 	 s u i t P o s t [ ' h ' ] [ F C O N C ]   =   " " ;   
 	 s u i t P r e [ ' h ' ] [ F C P ]   =   " " ; 
 	 s u i t P o s t [ ' h ' ] [ F C P ]   =   " " ;   
 	 s u i t P r e [ ' h ' ] [ T P T ]   =   " " ; 
 	 s u i t P o s t [ ' h ' ] [ T P T ]   =   " " ;   
 	 s u i t P r e [ ' h ' ] [ T P T 2 ]   =   " " ; 
 	 s u i t P o s t [ ' h ' ] [ T P T 2 ]   =   " " ; 
 	 s u i t P r e [ ' h ' ] [ M I D ]   =   " " ; 
 	 s u i t P o s t [ ' h ' ] [ M I D ]   =   " " ; 
 	 s u i t P r e [ ' h ' ] [ D C ]   =   " " ; 
 	 s u i t P o s t [ ' h ' ] [ D C ]   =   " " ; 
 	 s u i t P r e [ ' h ' ] [ D C B ]   =   " " ; 
 	 s u i t P o s t [ ' h ' ] [ D C B ]   =   " " ; 
 	 s u i t P r e [ ' h ' ] [ T P T 3 ]   =   " [ c o l o r = r e d ] " ; 
 	 s u i t P o s t [ ' h ' ] [ T P T 3 ]   =   " [ / c o l o r ] " ; 
 	 s u i t P r e [ ' h ' ] [ I R C ]   =   S t r i n g . f r o m C h a r C o d e ( 3 )   +   " 4   " ; 
 	 s u i t P o s t [ ' h ' ] [ I R C ]   =   S t r i n g . f r o m C h a r C o d e ( 3 )   +   " 1   " ; 
 	 s u i t P r e [ ' h ' ] [ H T M L ]   =   " " ; 
 	 s u i t P o s t [ ' h ' ] [ H T M L ]   =   " " ;   
 	 s u i t P r e [ ' h ' ] [ A I M ]   =   " < b > < f o n t   c o l o r = # A A 0 0 0 0 > " ; 
 	 s u i t P o s t [ ' h ' ] [ A I M ]   =   " < / f o n t > < / b > " ;   
 	 s u i t P r e [ ' c ' ]   =   n e w   A r r a y ( ) ; 
 	 s u i t P o s t [ ' c ' ]   =   n e w   A r r a y ( ) ; 
 	 s u i t P r e [ ' c ' ] [ F C O ]   =   " " ; 
 	 s u i t P o s t [ ' c ' ] [ F C O ]   =   " " ;   
 	 s u i t P r e [ ' c ' ] [ F C O N C ]   =   " " ; 
 	 s u i t P o s t [ ' c ' ] [ F C O N C ]   =   " " ; 
 	 s u i t P r e [ ' c ' ] [ F C P ]   =   " " ; 
 	 s u i t P o s t [ ' c ' ] [ F C P ]   =   " " ;   
 	 s u i t P r e [ ' c ' ] [ T P T ]   =   " " ; 
 	 s u i t P o s t [ ' c ' ] [ T P T ]   =   " " ;   
 	 s u i t P r e [ ' c ' ] [ T P T 2 ]   =   " " ; 
 	 s u i t P o s t [ ' c ' ] [ T P T 2 ]   =   " " ;   
 	 s u i t P r e [ ' c ' ] [ M I D ]   =   " " ; 
 	 s u i t P o s t [ ' c ' ] [ M I D ]   =   " " ;   
 	 s u i t P r e [ ' c ' ] [ D C ]   =   " " ; 
 	 s u i t P o s t [ ' c ' ] [ D C ]   =   " " ;   
 	 s u i t P r e [ ' c ' ] [ D C B ]   =   " " ; 
 	 s u i t P o s t [ ' c ' ] [ D C B ]   =   " " ; 
 	 s u i t P r e [ ' c ' ] [ T P T 3 ]   =   " [ c o l o r = g r e e n ] " ; 
 	 s u i t P o s t [ ' c ' ] [ T P T 3 ]   =   " [ / c o l o r ] " ; 
 	 s u i t P r e [ ' c ' ] [ I R C ]   =   S t r i n g . f r o m C h a r C o d e ( 3 )   +   " 3   " ; 
 	 s u i t P o s t [ ' c ' ] [ I R C ]   =   S t r i n g . f r o m C h a r C o d e ( 3 )   +   " 1   " ; 
 	 s u i t P r e [ ' c ' ] [ H T M L ]   =   " " ; 
 	 s u i t P r e [ ' c ' ] [ A I M ]   =   " < b > < f o n t   c o l o r = # 0 0 A A 0 0 > " ;   
 	 s u i t P o s t [ ' c ' ] [ A I M ]   =   " < / f o n t > < / b > " ; 
 	 s u i t P o s t [ ' c ' ] [ H T M L ]   =   " " ; 
 	 s u i t P r e [ ' s ' ]   =   n e w   A r r a y ( ) ; 
 	 s u i t P o s t [ ' s ' ]   =   n e w   A r r a y ( ) ; 
 	 s u i t P r e [ ' s ' ] [ F C O ]   =   " " ; 
 	 s u i t P o s t [ ' s ' ] [ F C O ]   =   " " ;   
 	 s u i t P r e [ ' s ' ] [ F C O N C ]   =   " " ; 
 	 s u i t P o s t [ ' s ' ] [ F C O N C ]   =   " " ;   
 	 s u i t P r e [ ' s ' ] [ F C P ]   =   " " ; 
 	 s u i t P o s t [ ' s ' ] [ F C P ]   =   " " ;   
 	 s u i t P r e [ ' s ' ] [ T P T ]   =   " " ; 
 	 s u i t P o s t [ ' s ' ] [ T P T ]   =   " " ;   
 	 s u i t P r e [ ' s ' ] [ T P T 2 ]   =   " " ; 
 	 s u i t P o s t [ ' s ' ] [ T P T 2 ]   =   " " ;   
 	 s u i t P r e [ ' s ' ] [ M I D ]   =   " " ; 
 	 s u i t P o s t [ ' s ' ] [ M I D ]   =   " " ;   
 	 s u i t P r e [ ' s ' ] [ D C ]   =   " " ; 
 	 s u i t P o s t [ ' s ' ] [ D C ]   =   " " ;   
 	 s u i t P r e [ ' s ' ] [ D C B ]   =   " " ; 
 	 s u i t P o s t [ ' s ' ] [ D C B ]   =   " " ;   
 	 s u i t P r e [ ' s ' ] [ T P T 3 ]   =   " [ c o l o r = b l a c k ] " ; 
 	 s u i t P o s t [ ' s ' ] [ T P T 3 ]   =   " [ / c o l o r ] " ;   
 	 s u i t P r e [ ' s ' ] [ I R C ]   =   S t r i n g . f r o m C h a r C o d e ( 3 )   +   " 1 4   " ; 
 	 s u i t P o s t [ ' s ' ] [ I R C ]   =   S t r i n g . f r o m C h a r C o d e ( 3 )   +   " 1   " ; 
 	 s u i t P r e [ ' s ' ] [ H T M L ]   =   " " ; 
 	 s u i t P o s t [ ' s ' ] [ H T M L ]   =   " " ;   
 	 s u i t P r e [ ' s ' ] [ A I M ]   =   " < b > " ; 
 	 s u i t P o s t [ ' s ' ] [ A I M ]   =   " < / b > " ; 
 	 s u i t P r e [ ' d ' ]   =   n e w   A r r a y ( ) ; 
 	 s u i t P o s t [ ' d ' ]   =   n e w   A r r a y ( ) ; 
 	 s u i t P r e [ ' d ' ] [ F C O ]   =   " " ; 
 	 s u i t P o s t [ ' d ' ] [ F C O ]   =   " " ; 
 	 s u i t P r e [ ' d ' ] [ F C O N C ]   =   " " ; 
 	 s u i t P o s t [ ' d ' ] [ F C O N C ]   =   " " ;   
 	 s u i t P r e [ ' d ' ] [ F C P ]   =   " " ; 
 	 s u i t P o s t [ ' d ' ] [ F C P ]   =   " " ;   
 	 s u i t P r e [ ' d ' ] [ T P T ]   =   " " ; 
 	 s u i t P o s t [ ' d ' ] [ T P T ]   =   " " ;   
 	 s u i t P r e [ ' d ' ] [ T P T 2 ]   =   " " ; 
 	 s u i t P o s t [ ' d ' ] [ T P T 2 ]   =   " " ;   
 	 s u i t P r e [ ' d ' ] [ M I D ]   =   " " ; 
 	 s u i t P o s t [ ' d ' ] [ M I D ]   =   " " ; 
 	 s u i t P r e [ ' d ' ] [ D C ]   =   " " ; 
 	 s u i t P o s t [ ' d ' ] [ D C ]   =   " " ; 
 	 s u i t P r e [ ' d ' ] [ D C B ]   =   " " ; 
 	 s u i t P o s t [ ' d ' ] [ D C B ]   =   " " ;   
 	 s u i t P r e [ ' d ' ] [ T P T 3 ]   =   " [ c o l o r = b l u e ] " ; 
 	 s u i t P o s t [ ' d ' ] [ T P T 3 ]   =   " [ / c o l o r ] " ;   
 	 s u i t P r e [ ' d ' ] [ I R C ]   =   S t r i n g . f r o m C h a r C o d e ( 3 )   +   " 1 2   " ; 
 	 s u i t P o s t [ ' d ' ] [ I R C ]   =   S t r i n g . f r o m C h a r C o d e ( 3 )   +   " 1   " ; 
 	 s u i t P r e [ ' d ' ] [ H T M L ]   =   " " ; 
 	 s u i t P o s t [ ' d ' ] [ H T M L ]   =   " " ;   
 	 s u i t P r e [ ' d ' ] [ A I M ]   =   " < b > < f o n t   c o l o r = # 0 0 0 0 A A > " ; 
 	 s u i t P o s t [ ' d ' ] [ A I M ]   =   " < / f o n t > < / b > " ;   
 	 
 	 v a r   s u i t T e x t   =   n e w   A r r a y ( ) ; 
 	 s u i t T e x t [ ' h ' ]   =   n e w   A r r a y ( ) ; 
 	 s u i t T e x t [ ' s ' ]   =   n e w   A r r a y ( ) ; 
 	 s u i t T e x t [ ' d ' ]   =   n e w   A r r a y ( ) ; 
 	 s u i t T e x t [ ' c ' ]   =   n e w   A r r a y ( ) ; 
 	 s u i t T e x t [ ' h ' ] [ F C O ]   =   ' h ' ; 
 	 s u i t T e x t [ ' s ' ] [ F C O ]   =   ' s ' ; 
 	 s u i t T e x t [ ' d ' ] [ F C O ]   =   ' d ' ; 
 	 s u i t T e x t [ ' c ' ] [ F C O ]   =   ' c ' ; 
 	 s u i t T e x t [ ' h ' ] [ F C O N C ]   =   ' h ' ; 
 	 s u i t T e x t [ ' s ' ] [ F C O N C ]   =   ' s ' ; 
 	 s u i t T e x t [ ' d ' ] [ F C O N C ]   =   ' d ' ; 
 	 s u i t T e x t [ ' c ' ] [ F C O N C ]   =   ' c ' ; 
 	 s u i t T e x t [ ' h ' ] [ F C P ]   =   ' h ' ; 
 	 s u i t T e x t [ ' s ' ] [ F C P ]   =   ' s ' ; 
 	 s u i t T e x t [ ' d ' ] [ F C P ]   =   ' d ' ; 
 	 s u i t T e x t [ ' c ' ] [ F C P ]   =   ' c ' ; 
 	 s u i t T e x t [ ' h ' ] [ T P T ]   =   ' h ' ; 
 	 s u i t T e x t [ ' s ' ] [ T P T ]   =   ' s ' ; 
 	 s u i t T e x t [ ' d ' ] [ T P T ]   =   ' d ' ; 
 	 s u i t T e x t [ ' c ' ] [ T P T ]   =   ' c ' ; 
 	 s u i t T e x t [ ' h ' ] [ T P T 2 ]   =   ' : h e a r t : ' ; 
 	 s u i t T e x t [ ' s ' ] [ T P T 2 ]   =   ' : s p a d e : ' ; 
 	 s u i t T e x t [ ' d ' ] [ T P T 2 ]   =   ' : d i a m o n d : ' ; 
 	 s u i t T e x t [ ' c ' ] [ T P T 2 ]   =   ' : c l u b : ' ; 
 	 s u i t T e x t [ ' h ' ] [ D C ]   =   ' : h e a r t : ' ; 
 	 s u i t T e x t [ ' s ' ] [ D C ]   =   ' : s p a d e : ' ; 
 	 s u i t T e x t [ ' d ' ] [ D C ]   =   ' : d i a m o n d : ' ; 
 	 s u i t T e x t [ ' c ' ] [ D C ]   =   ' : c l u b : ' ; 
 	 s u i t T e x t [ ' h ' ] [ D C B ]   =   ' h ' ; 
 	 s u i t T e x t [ ' s ' ] [ D C B ]   =   ' s ' ; 
 	 s u i t T e x t [ ' d ' ] [ D C B ]   =   ' d ' ; 
 	 s u i t T e x t [ ' c ' ] [ D C B ]   =   ' c ' ; 
 	 s u i t T e x t [ ' h ' ] [ T P T 3 ]   =   ' h ' ; 
 	 s u i t T e x t [ ' s ' ] [ T P T 3 ]   =   ' s ' ; 
 	 s u i t T e x t [ ' d ' ] [ T P T 3 ]   =   ' d ' ; 
 	 s u i t T e x t [ ' c ' ] [ T P T 3 ]   =   ' c ' ; 
 	 s u i t T e x t [ ' h ' ] [ I R C ]   =   ' h ' ; 
 	 s u i t T e x t [ ' s ' ] [ I R C ]   =   ' s ' ; 
 	 s u i t T e x t [ ' d ' ] [ I R C ]   =   ' d ' ; 
 	 s u i t T e x t [ ' c ' ] [ I R C ]   =   ' c ' ; 
 	 s u i t T e x t [ ' h ' ] [ H T M L ]   =   ' h ' ; 
 	 s u i t T e x t [ ' s ' ] [ H T M L ]   =   ' s ' ; 
 	 s u i t T e x t [ ' d ' ] [ H T M L ]   =   ' d ' ; 
 	 s u i t T e x t [ ' c ' ] [ H T M L ]   =   ' c ' ; 
 	 s u i t T e x t [ ' h ' ] [ A I M ]   =   ' h ' ; 
 	 s u i t T e x t [ ' s ' ] [ A I M ]   =   ' s ' ; 
 	 s u i t T e x t [ ' d ' ] [ A I M ]   =   ' d ' ; 
 	 s u i t T e x t [ ' c ' ] [ A I M ]   =   ' c ' ; 
 	 s u i t T e x t [ ' h ' ] [ M I D ]   =   ' h ' ; 
 	 s u i t T e x t [ ' s ' ] [ M I D ]   =   ' s ' ; 
 	 s u i t T e x t [ ' d ' ] [ M I D ]   =   ' d ' ; 
 	 s u i t T e x t [ ' c ' ] [ M I D ]   =   ' c ' ; 
 	 
 	 v a r   w h i t e R e s u l t s P r e   =   n e w   A r r a y ( ) ; 
 	 v a r   w h i t e R e s u l t s P o s t   =   n e w   A r r a y ( ) ; 
 	 w h i t e R e s u l t s P r e [ F C O ]   =   " [ s p o i l e r ] " ; 
 	 w h i t e R e s u l t s P o s t [ F C O ]   =   " [ / s p o i l e r ] " ; 
 	 w h i t e R e s u l t s P r e [ F C O N C ]   =   " [ s p o i l e r ] " ; 
 	 w h i t e R e s u l t s P o s t [ F C O N C ]   =   " [ / s p o i l e r ] " ; 
 	 w h i t e R e s u l t s P r e [ F C P ]   =   " [ s p o i l e r ] " ; 
 	 w h i t e R e s u l t s P o s t [ F C P ]   =   " [ / s p o i l e r ] " ; 
 	 w h i t e R e s u l t s P r e [ T P T ]   =   " [ c o l o r = # F F F F F F ] " ; 
 	 w h i t e R e s u l t s P o s t [ T P T ]   =   " [ / c o l o r ] " ; 
 	 w h i t e R e s u l t s P r e [ T P T 2 ]   =   " [ c o l o r = # F F F F F F ] " ; 
 	 w h i t e R e s u l t s P o s t [ T P T 2 ]   =   " [ / c o l o r ] " ; 
 	 w h i t e R e s u l t s P r e [ T P T 3 ]   =   " [ c o l o r = # F F F F F F ] " ; 
 	 w h i t e R e s u l t s P o s t [ T P T 3 ]   =   " [ / c o l o r ] " ; 
 	 w h i t e R e s u l t s P r e [ I R C ]   =   S t r i n g . f r o m C h a r C o d e ( 3 )   +   " 0   " ; 
 	 w h i t e R e s u l t s P o s t [ I R C ]   =   S t r i n g . f r o m C h a r C o d e ( 3 )   +   " 1   " ; 
 	 w h i t e R e s u l t s P r e [ H T M L ]   =   " < f o n t   c o l o r = # F F F F F F > " ; 
 	 w h i t e R e s u l t s P o s t [ H T M L ]   =   " < / f o n t > " ; 
 	 w h i t e R e s u l t s P r e [ A I M ]   =   " < f o n t   c o l o r = # F F F F F F > " ; 
 	 w h i t e R e s u l t s P o s t [ A I M ]   =   " < / f o n t > " ; 
 	 w h i t e R e s u l t s P r e [ D C ]   =   " [ c o l o r = # F F F F F F ] " ; 
 	 w h i t e R e s u l t s P o s t [ D C ]   =   " [ / c o l o r ] " ; 
 	 w h i t e R e s u l t s P r e [ D C B ]   =   " " ; 
 	 w h i t e R e s u l t s P o s t [ D C B ]   =   " " ; 
 	 w h i t e R e s u l t s P r e [ M I D ]   =   " [ c o l o r = # F F F F F F ] " ; 
 	 w h i t e R e s u l t s P o s t [ M I D ]   =   " [ / c o l o r ] " ; 
 	 
 	 v a r   w h i t e C a r d s P r e   =   n e w   A r r a y ( ) ; 
 	 v a r   w h i t e C a r d s P o s t   =   n e w   A r r a y ( ) ; 
 	 w h i t e C a r d s P r e [ F C O ]   =   " " ; 
 	 w h i t e C a r d s P o s t [ F C O ]   =   " " ; 
 	 w h i t e C a r d s P r e [ F C O N C ]   =   " " ; 
 	 w h i t e C a r d s P o s t [ F C O N C ]   =   " " ; 
 	 w h i t e C a r d s P r e [ F C P ]   =   " " ; 
 	 w h i t e C a r d s P o s t [ F C P ]   =   " " ; 
 	 w h i t e C a r d s P r e [ T P T ]   =   " " ; 
 	 w h i t e C a r d s P o s t [ T P T ]   =   " " ; 
 	 w h i t e C a r d s P r e [ T P T 2 ]   =   " " ; 
 	 w h i t e C a r d s P o s t [ T P T 2 ]   =   " " ; 
 	 w h i t e C a r d s P r e [ T P T 3 ]   =   " " ; 
 	 w h i t e C a r d s P o s t [ T P T 3 ]   =   " " ; 
 	 w h i t e C a r d s P r e [ I R C ]   =   " " ; 
 	 w h i t e C a r d s P o s t [ I R C ]   =   " " ; 
 	 w h i t e C a r d s P r e [ H T M L ]   =   " " ; 
 	 w h i t e C a r d s P o s t [ H T M L ]   =   " " ; 
 	 w h i t e C a r d s P r e [ A I M ]   =   " " ; 
 	 w h i t e C a r d s P o s t [ A I M ]   =   " " ; 
 	 w h i t e C a r d s P r e [ D C ]   =   " " ; 
 	 w h i t e C a r d s P o s t [ D C ]   =   " " ; 
 	 w h i t e C a r d s P r e [ D C B ]   =   " " ; 
 	 w h i t e C a r d s P o s t [ D C B ]   =   " " ; 
 	 w h i t e C a r d s P r e [ M I D ]   =   " " ; 
 	 w h i t e C a r d s P o s t [ M I D ]   =   " " ; 
 
 	 
 	 
 	 i f   ( h a n d i n . e r r o r )   { 
 
 	 	 t x   =   h a n d i n . e r r o r ; 
 
 	 }   e l s e   i f   ( d e b u g )   { 
 
 	 	 / / f o r   f i r e b u g 
 	 	 
 	 	 
 	 	 / / p r i n t   o u t   a l l   t h e   i n f o   u n f o r m a t t e d   f o r   d e b u g g i n g   p u r p o s e s 
 	 	 t x   =   ' [ b ] F e r a l   C o n v e r t e r [ / b ] \ n ' ; 
 	 	 t x   =   t x   +   ' s i t e :   \ n '   +   h a n d i n . s i t e ; 
 	 	 t x   =   t x   +   ' \ n g a m e l o n g :   '   +   h a n d i n . g a m e L o n g ; 
 	 	 t x   =   t x   +   ' \ n g a m e s i z e :   '   +   h a n d i n . g a m e S i z e ; 
 	 	 t x   =   t x   +   ' \ n b l i n d s :   '   +   h a n d i n . s m a l l B l i n d   +   ' / '   +   h a n d i n . b i g B l i n d   +   ' \ n ' ; 
 	 	 t x   =   t x   +   ' G a m e t y p e :   '   +   h a n d i n . g a m e T y p e   +   ' \ n ' ; 
 	 	 t x   =   t x   +   ' P l a y e r s :   '   +   h a n d i n . n u m P l a y e r s ; 
 	 	 t x   =   t x   +   ' \ n P l a y e r s :   '   +   h a n d i n . p l a y e r s ; 
 	 	 t x   =   t x   +   ' \ n s e a t   n u m b e r s :   '   +   h a n d i n . s e a t N u m b e r s ; 
 	 	 t x   =   t x   +   ' \ n S t a c k s :   '   +   h a n d i n . s t a c k s ; 
 	 	 t x   =   t x   +   ' \ n B u t t o n :   S e a t   '   +   h a n d i n . b u t t o n ; 
 	 	 t x   =   t x   +   ' \ n H o l e   c a r d s :   ' 
 	 	 n u m X   =   h a n d i n . h o l e C a r d s . l e n g t h ; 
 	 	 f o r   ( x   =   0 ;   x < n u m X ;   x + + )   { 
 	 	 	 n u m Y   =   h a n d i n . h o l e C a r d s [ x ] . l e n g t h ; 
 	 	 	 f o r   ( y = 0 ; y < n u m Y ; y + + )   { 
 	 	 	 	 t x   =   t x   +   h a n d i n . h o l e C a r d s [ x ] [ y ] ; 
 	 	 	 } 
 	 	 	 t x   =   t x   +   ' \ n ' ; 
 	 	 } 
 	 	 t x   =   t x   +   ' \ n \ n p f   n a m e s :   '   +   h a n d i n . a c t i o n _ p l a y e r s [ 0 ] ; 
 	 	 t x   =   t x   +   ' \ n h e r o :   '   +   h a n d i n . h e r o ; 
 	 	 t x   =   t x   +   ' \ n b i g   b l i n d   p o s t e d   b y   '   +   h a n d i n . b i g B l i n d P o s t e d B y   +   ' ,   a m o u n t   =   '   +   h a n d i n . b i g B l i n d P o s t e d A m o u n t ; 
 	 	 t x   =   t x   +   ' \ n s m a l l   b l i n d   p o s t e d   b y   '   +   h a n d i n . s m a l l B l i n d P o s t e d B y   +   ' ,   a m o u n t   =   '   +   h a n d i n . s m a l l B l i n d P o s t e d A m o u n t ; 
 	 	 t x   =   t x   +   ' \ n a n t e :   '   +   h a n d i n . a n t e ; 
 	 	 t x   =   t x   +   ' \ n a n t e s t o t a l :   '   +   h a n d i n . a n t e s T o t a l ; 
 	 	 t x   =   t x   +   ' \ n p f   a c t i o n s :   '   +   h a n d i n . a c t i o n _ t y p e s [ 0 ] ; 
 	 	 t x   =   t x   +   ' \ n p f   v a l u e s :   '   +   h a n d i n . a c t i o n _ v a l u e s [ 0 ] ; 
 	 	 t x   =   t x   +   ' \ n p f   a d d e d :   '   +   h a n d i n . a c t i o n _ a d d e d T o P o t [ 0 ] ; 
 	 	 t x   =   t x   +   ' \ n \ n f l o p :   '   +   h a n d i n . c o m m u n i t y C a r d s [ 1 ] ; 
 	 	 t x   =   t x   +   ' \ n f   n a m e s :   '   +   h a n d i n . a c t i o n _ p l a y e r s [ 1 ] ; 
 	 	 t x   =   t x   +   ' \ n f   a c t i o n s :   '   +   h a n d i n . a c t i o n _ t y p e s [ 1 ] ; 
 	 	 t x   =   t x   +   ' \ n f   v a l u e s :   '   +   h a n d i n . a c t i o n _ v a l u e s [ 1 ] ; 
 	 	 t x   =   t x   +   ' \ n f   a d d e d :   '   +   h a n d i n . a c t i o n _ a d d e d T o P o t [ 1 ] ; 
 	 	 t x   =   t x   +   ' \ n \ n t u r n :   '   +   h a n d i n . c o m m u n i t y C a r d s [ 2 ] ; 
 	 	 t x   =   t x   +   ' \ n t   n a m e s :   '   +   h a n d i n . a c t i o n _ p l a y e r s [ 2 ] ; 
 	 	 t x   =   t x   +   ' \ n t   a c t i o n s :   '   +   h a n d i n . a c t i o n _ t y p e s [ 2 ] ; 
 	 	 t x   =   t x   +   ' \ n t   v a l u e s :   '   +   h a n d i n . a c t i o n _ v a l u e s [ 2 ] ; 
 	 	 t x   =   t x   +   ' \ n t   a d d e d :   '   +   h a n d i n . a c t i o n _ a d d e d T o P o t [ 2 ] ; 
 	 	 t x   =   t x   +   ' \ n \ n r i v e r :   '   +   h a n d i n . c o m m u n i t y C a r d s [ 3 ] ; 
 	 	 t x   =   t x   +   ' \ n r   n a m e s :   '   +   h a n d i n . a c t i o n _ p l a y e r s [ 3 ] ; 
 	 	 t x   =   t x   +   ' \ n r   a c t i o n s :   '   +   h a n d i n . a c t i o n _ t y p e s [ 3 ] ; 
 	 	 t x   =   t x   +   ' \ n r   v a l u e s :   '   +   h a n d i n . a c t i o n _ v a l u e s [ 3 ] ; 
 	 	 t x   =   t x   +   ' \ n r   a d d e d :   '   +   h a n d i n . a c t i o n _ a d d e d T o P o t [ 3 ] ; 
 	 	 t x   =   t x   +   ' \ n \ n s d   p l a y e r s :   '   +   h a n d i n . s h o w d o w n _ p l a y e r s ; 
 	 	 t x   =   t x   +   ' \ n s d   c a r d s :   '   +   h a n d i n . s h o w d o w n _ c a r d s ; 
 	 	 t x   =   t x   +   ' \ n s d   h a n d s :   '   +   h a n d i n . s h o w d o w n _ h a n d s ; 
 	 	 t x   =   t x   +   ' \ n r e s u l t   p l a y e r s :   '   +   h a n d i n . r e s u l t _ p l a y e r s ; 
 	 	 t x   =   t x   +   ' \ n r e s u l t   p l a y e r s :   '   +   h a n d i n . r e s u l t _ v a l u e s ; 
 	 	 t x   =   t x   +   ' \ n r a k e :   '   +   h a n d i n . r a k e ; 
 
 	 	 t x   =   t x   +   ' \ n \ n m e s s a g e :   '   +   h a n d i n . m e s s a g e ; 
 	 }   e l s e   { 
 	 	 
 	 	 / /   ! H a n d T o T e x t   M e a t 
 	 	 i f   ( h a n d i n . g a m e T y p e   = =   " C " )   { 
 	 	 	 i f   ( h a n d i n . c u r r e n c y T e x t )   { 
 	 	 	 	 c h i p P r e f i x   =   h a n d i n . c u r r e n c y T e x t ; 
 	 	 	 }   e l s e   { 
 	 	 	 	 c h i p P r e f i x   =   ' $ ' ; 
 	 	 	 } 
 	 	 } 
 	 	 e l s e   { 
 	 	 	 c h i p P r e f i x   =   ' t ' ; 
 	 	 } 
 
 	 	 / / a r e   w e   p l a y i n g   a   l i m i t   g a m e ?   
 	 	 i f   ( h a n d i n . g a m e S h o r t   = =   ' L H E '   | |   h a n d i n . g a m e L o n g   = =   ' L i m i t   O m a h a '   | |   h a n d i n . g a m e L o n g   = =   ' L i m i t   O m a h a   H i / L o ' )   { 
 	 	 	 i s L i m i t G a m e   =   1 ; 
 	 	 }   e l s e   { 
 	 	 	 i s L i m i t G a m e   =   0 ; 
 	 	 } 
 	 	 
 	 	 / / F o r   d r a w   g a m e s ,   h o w   m a n y   c a r d s   a r e   t h e r e ?   
 	 	 i f   ( h a n d i n . g a m e L o n g . m a t c h ( / D r a w / ) )   { 
 	 	 	 m a x C a r d s   =   5 ; 
 	 	 }   e l s e   i f   ( h a n d i n . g a m e L o n g . m a t c h ( / B a d u g i / ) )   { 
 	 	 	 m a x C a r d s   =   4 ; 
 	 	 } 
 	 	 
 	 	 / / a n y   g a r b a g e   t h a t   w a s   r e j e c t e d   p r i o r   t o   f i r s t   l i n e 
 	 	 t x   =   h a n d i n . p r e f i x ; 
 	 	 i f   ( h a n d i n . p r e f i x . l e n g t h   >   0 )   { t x   =   t x   +   ' \ n ' ; } 
 	 	 
 	 	 / / t a g l i n e 
 	 	 t a g L i n e   =   g e t R a n d o m T a g L i n e ( ) ; 
 	 	 t x   =   t x   +   f e r a l c o w i c o n [ o t ]   +   t a g L i n e P r e f i x [ o t ]   +   t a g L i n e   +   t a g L i n e P o s t f i x [ o t ]   +   l i n e B r e a k s [ o t ] ; 
 
 	 	 / / g a m e   i n f o 
 	 	 i f   ( h a n d i n . H E M O r i g i n a l S i t e )   { 
 	 	 	 t x   =   t x   +   g a m e I n f o P r e [ o t ]   +   ' H E M / '   +   h a n d i n . H E M O r i g i n a l S i t e   +   '   '   +   h a n d i n . g a m e L o n g   +   '   ' ; 
 	 	 }   e l s e   { 
 	 	 	 t x   =   t x   +   g a m e I n f o P r e [ o t ]   +   h a n d i n . s i t e   +   '   '   +   h a n d i n . g a m e L o n g   +   '   ' ; 
 	 	 } 
 	 	 
 	 	 / / t o u r n e y   b u y i n 
 	 	 i f   ( h a n d i n . t o u r n e y B u y i n )   { 
 	 	 	 t x   =   t x   +   ' ( '   +   h a n d i n . t o u r n e y B u y i n   +   ' )   ' ; 
 	 	 } 
 
 	 	 / / b l i n d s 
 	 	 t x   =   t x   +   c h i p P r e f i x   +   h a n d i n . s m a l l B l i n d   +   ' / '   +   c h i p P r e f i x   +   h a n d i n . b i g B l i n d   +   '   ' ; 
 
 	 	 / / a n t e s 
 	 	 i f   ( h a n d i n . a n t e )   { 
 	 	 	 t x   =   t x   +   ' a n t e   '   +   c h i p P r e f i x   +   h a n d i n . a n t e   +   '   ' ; 
 	 	 } 
 
 	 	 / / n u m b e r   o f   p l a y e r s 
 	 	 t x   =   t x   +   ' -   '   +   h a n d i n . n u m P l a y e r s   +   '   p l a y e r s '   +   g a m e I n f o P o s t [ o t ]   +   l i n e B r e a k s [ o t ] ; 
 
 	 	 / / s t r e e t   &   p o s i t i o n   n a m e s 
 	 	 h a n d i n . s t r e e t N a m e   =   n e w   A r r a y ; 
 	 	 i f   ( h a n d i n . g a m e S h o r t   = =   ' N L H E '   |   h a n d i n . g a m e S h o r t   = =   ' L H E '   |   h a n d i n . g a m e S h o r t   = =   ' O M A H A '   |   h a n d i n . g a m e S h o r t   = =   ' P L H E ' )   { 
 	 	 	 h a n d i n . s t r e e t N a m e [ 0 ]   =   ' P r e f l o p ' ; 
 	 	 	 h a n d i n . s t r e e t N a m e [ 1 ]   =   ' F l o p ' ; 
 	 	 	 h a n d i n . s t r e e t N a m e [ 2 ]   =   ' T u r n ' ; 
 	 	 	 h a n d i n . s t r e e t N a m e [ 3 ]   =   ' R i v e r ' ; 
 
 	 	 	 / / f i g u r e   o u t   p o s i t i o n   l a b e l s 
 	 	 	 g e t P o s i t i o n N a m e s ( h a n d i n ) ; 
 	 	 } 
 	 	 e l s e   i f   ( h a n d i n . g a m e S h o r t   = =   ' S T U D '   |   h a n d i n . g a m e S h o r t   = =   ' R A Z Z ' )   { 
 	 	 	 h a n d i n . s t r e e t N a m e [ 0 ]   =   ' 3 r d   S t r e e t ' ; 
 	 	 	 h a n d i n . s t r e e t N a m e [ 1 ]   =   ' 4 t h   S t r e e t ' ; 
 	 	 	 h a n d i n . s t r e e t N a m e [ 2 ]   =   ' 5 t h   S t r e e t ' ; 
 	 	 	 h a n d i n . s t r e e t N a m e [ 3 ]   =   ' 6 t h   S t r e e t ' ; 
 	 	 	 h a n d i n . s t r e e t N a m e [ 4 ]   =   ' R i v e r ' ; 
 
 	 	 	 / / f i g u r e   o u t   p o s i t i o n   l a b e l s 
 	 	 	 g e t P o s i t i o n N a m e s S t u d ( h a n d i n ) ; 
 	 	 } 
 	 	 e l s e   i f   ( h a n d i n . g a m e S h o r t   = =   ' D R A W ' )   { 
 	 	 	 h a n d i n . s t r e e t N a m e [ 0 ]   =   ' D e a l i n g   H a n d s ' ; 
 	 	 	 h a n d i n . s t r e e t N a m e [ 1 ]   =   ' F i r s t   D r a w ' ; 
 	 	 	 h a n d i n . s t r e e t N a m e [ 2 ]   =   ' S e c o n d   D r a w ' ; 
 	 	 	 h a n d i n . s t r e e t N a m e [ 3 ]   =   ' T h i r d   D r a w ' ; 
 
 	 	 	 / / f i g u r e   o u t   p o s i t i o n   l a b e l s 
 	 	 	 g e t P o s i t i o n N a m e s ( h a n d i n ) ; 
 	 	 } 
 	 
 	 	 
 	 	 n u m D i g i t s   =   0 ; 
 	 	 / / n u m b e r   o f   d i g i t s   t o   p r i n t   o u t   p o t   s i z e s   t o 
 	 	 i f   ( h a n d i n . g a m e T y p e   = =   " C " )   { 
 	 	 	 n u m D i g i t s   =   2 ; 
 	 	 	 n u m D i g i t s P o t   =   2 ; 
 	 	 }   e l s e   { 
 	 	 	 n u m D i g i t s   =   0 ; 
 	 	 	 i f   ( i s L i m i t G a m e )   { 
 	 	 	 	 n u m D i g i t s P o t   =   2 ; 
 	 	 	 }   e l s e   { 
 	 	 	 	 n u m D i g i t s P o t   =   0 ; 
 	 	 	 } 
 	 	 } 
 
 	 	 / / s t a c k   s i z e s 
 	 	 t x   =   t x   +   l i n e B r e a k s [ o t ] ; 
 	 	 m a x i   =   h a n d i n . p l a y e r s . l e n g t h ; 
 	 	 f o r   ( i = 0 ; i < m a x i ; i + + )   { 
 	 	 	 i f   ( h a n d i n . p l a y e r s [ i ]   = =   h a n d i n . h e r o )   { 
 	 	 	 	 i f   ( ! s h o w N a m e s )   { 
 	 	 	 	 	 h e r o t e x t   =   '   ( H e r o ) ' ; 
 	 	 	 	 }   e l s e   { 
 	 	 	 	 	 h e r o t e x t   =   ' ' ; 
 	 	 	 	 } 
 	 	 	 }   e l s e   { 
 	 	 	 	 h e r o t e x t   =   ' ' ; 
 	 	 	 } 
 	 	 	 
 	 	 	 v a r   t e m p S t a c k   =   c l e a n N u m ( h a n d i n . s t a c k s [ i ] ) ; 
 	 	 	 	 	 	 
 	 	 	 / /   t e m p S t a c k . t o F l o a t ( h a n d i n . s t a c k s [ i ] ) ; 
 	 	 	 t x   =   t x   +   p o s i t i o n P r e [ o t ]   +   h a n d i n . p o s i t i o n s [ i ]   +   p o s i t i o n P o s t [ o t ] ; 
 	 	 	 i f   ( s h o w N a m e s )   { 
 	 	 	 	 i f   ( h a n d i n . p l a y e r s [ i ]   = =   h a n d i n . h e r o )   { 
 	 	 	 	 	 / / e v e n   t h o u g h   w e   s h o w   n a m e s ,   w e   h i d e   h e r o ' s   n a m e 
 	 	 	 	 	 t x   =   t x   +   p l a y e r N a m e P r e [ o t ] +   "   H e r o "   +   p l a y e r N a m e P o s t [ o t ] ;   
 	 	 	 	 }   e l s e   { 
 	 	 	 	 	 t x   =   t x   +   p l a y e r N a m e P r e [ o t ] +   "   "   +   h a n d i n . p l a y e r s [ i ]   +   p l a y e r N a m e P o s t [ o t ] ; 
 	 	 	 	 } 
 	 	 	 } 
 	 	 	 t x   =   t x   +   ' :   '   +   c h i p P r e f i x   +   a d d C o m m a s ( t e m p S t a c k . t o F i x e d ( n u m D i g i t s ) ) ; 
 	 	 	 i f   ( h a n d i n . g a m e S h o r t   = =   ' S T U D '   |   h a n d i n . g a m e S h o r t   = =   ' R A Z Z ' )   { 
 	 	 	 	 m a x K   =   h a n d i n . h o l e C a r d s [ i ] . l e n g t h ; 
 	 	 	 	 
 	 	 	 	 f o r   ( k = 0 ; k < m a x K ; k + + )   { 
 	 	 	 	 	 i f   ( ( h a n d i n . h o l e C a r d s [ i ] . l e n g t h   = =   7 )   & &   ( h e r o t e x t   = =   ' ' )   & &   ( ( k   <   2 )   | |   ( k   = =   6 ) ) )   { 
 	 	 	 	 	 	 t x   =   t x   +   '   '   +   h o l e c a r d P r e [ o t ]   +   h a n d i n . h o l e C a r d s [ i ] [ k ] . c a p i t a l i z e ( )   +   h o l e c a r d P o s t [ o t ] ; 
 	 	 	 	 	 	 
 	 	 	 	 	 } 
 	 	 	 	 	 e l s e   { 
 	 	 	 	 	 	 i f   ( h a n d i n . h o l e C a r d s [ i ] [ k ]   = =   ' 1 s ' )   { 
 	 	 	 	 	 	 	 t x   =   t x   +   '   '   +   u n k n o w n C a r d [ o t ] ; 
 	 	 	 	 	 	 }   e l s e   { 
 	 	 	 	 	 	 	 t x   =   t x   +   '   '   +   c a r d P r e f i x [ o t ]   +   h a n d i n . h o l e C a r d s [ i ] [ k ] . c a p i t a l i z e ( )   +   c a r d P o s t f i x [ o t ] ; 
 	 	 	 	 	 	 } 
 	 	 	 	 	 } 
 	 	 	 	 } 
 	 	 	 } 
 	 	 	 t x   =   t x   +   '   '   +   h e r o t e x t   +   e n d S t a c k L i n e [ o t ] ; 
 	 	 } 
 
 	 	 t x   =   t x   +   l i n e B r e a k s [ o t ] ; 
 
 	 	 
 
 	 	 h a n d i n . p o t S i z e   =   c l e a n N u m ( h a n d i n . a n t e s T o t a l ) ; 
 
 	 	 n u m P l a y e r s L e f t   =   h a n d i n . n u m P l a y e r s ; 
 
 	 	 / / a c t i o n s   b y   s t r e e t         
 	 	 c a r d o u t   =   0 ; 
 	 	 m a x X   =   h a n d i n . a c t i o n _ p l a y e r s . l e n g t h ; 
 	 	 r e m a x X   =   h a n d i n . c o m m u n i t y C a r d s . l e n g t h ; 
 	 	 / / a l e r t ( " m a x X   i s   "   +   m a x X ) ; 
 	 	 f o r   ( x   = 0 ; x   <   m a x X ;   x + + )   { 
 
 	 	 	 d p D i s c o   =   1 
 	 	 	 / / s t r e e t   n a m e   a n d   s t r e e t - s p e c i f i c   s t u f f         
 	 	 	 i f   ( n u m P l a y e r s L e f t   >   1 )   { 
 	 	 	 	 t x   =   t x   +   s t r e e t N a m e P r e [ o t ]   +   h a n d i n . s t r e e t N a m e [ x ]   +   ' : '   +   s t r e e t N a m e P o s t [ o t ] ; 
 	 	 	 } 
 	 	 	 i f   ( ( h a n d i n . s t r e e t N a m e [ x ]   = =   ' P r e f l o p ' )   | |   ( h a n d i n . s t r e e t N a m e [ x ]   = =   ' D e a l i n g   H a n d s ' ) )   { 
 	 	 	 	 / / p r e f l o p   h a s   s p e c i a l   h e a d i n g s 
 	 	 	 	 h a n d i n . p o t S i z e   =   c l e a n N u m ( h a n d i n . p o t S i z e )   +   c l e a n N u m ( h a n d i n . s m a l l B l i n d P o s t e d A m o u n t )   +   c l e a n N u m ( h a n d i n . b i g B l i n d P o s t e d A m o u n t ) ; 
 	 	 	 	 i f   ( i s L i m i t G a m e )   { 
 	 	 	 	 	 / / f o r   l i m i t   g a m e s   c o n v e r t   p o t   s i z e   t o   S B 
 	 	 	 	 	 p o t s i z e i n b e t s   =   h a n d i n . p o t S i z e / h a n d i n . s m a l l B l i n d ; 
 	 	 	 	 	 t x   =   t x   +   '   ( '   +   p o t s i z e i n b e t s . t o F i x e d ( n u m D i g i t s P o t )   +   '   S B )   ' ; 
 	 	 	 	 }   e l s e   { 
 	 	 	 	 	 t x   =   t x   +   '   ( '   +   c h i p P r e f i x   +   a d d C o m m a s ( h a n d i n . p o t S i z e . t o F i x e d ( n u m D i g i t s P o t ) )   +   ' )   ' ; 
 	 	 	 	 } 
 	 	 	 	 i f   ( h a n d i n . h e r o )   { 
 	 	 	 	 	 i f   ( h a n d i n . g a m e S h o r t   = =   ' D R A W ' )   { 
 	 	 	 	 	 	 
 	 	 	 	 	 	 f o r   ( c o u n t C a r d   =   0 ;   c o u n t C a r d   <   m a x C a r d s ;   c o u n t C a r d + + )   { 
 	 	 	 	 	 	 	 t x   =   t x   +   '   '   + c a r d P r e f i x [ o t ]   +   s u i t P r e [ h a n d i n . h o l e C a r d s [ f i n d I n d e x ( h a n d i n . p l a y e r s ,   h a n d i n . h e r o ) ] [ c a r d o u t ] . s u b s t r i n g ( 1 ) ] [ o t ]   +   h a n d i n . h o l e C a r d s [ f i n d I n d e x ( h a n d i n . p l a y e r s ,   h a n d i n . h e r o ) ] [ c a r d o u t ] . s u b s t r i n g ( 0 , 1 ) . c a p i t a l i z e ( )   +   s u i t T e x t [ h a n d i n . h o l e C a r d s [ f i n d I n d e x ( h a n d i n . p l a y e r s ,   h a n d i n . h e r o ) ] [ c a r d o u t ] . s u b s t r i n g ( 1 ) ] [ o t ]   +   s u i t P o s t [ h a n d i n . h o l e C a r d s [ f i n d I n d e x ( h a n d i n . p l a y e r s ,   h a n d i n . h e r o ) ] [ c a r d o u t ] . s u b s t r i n g ( 1 ) ] [ o t ]   +   c a r d P o s t f i x [ o t ] ; 
 	 	 	 	 	 	 	 c a r d o u t + + 
 	 	 	 	 	 	 } 
 	 	 	 	 	 } 
 	 	 	 	 	 e l s e   { 
 	 	 	 	 	 	 / / t x   =   t x   +   '   H e r o   i s   '   +   h a n d i n . p o s i t i o n s [ h a n d i n . p l a y e r s . i n d e x O f ( h a n d i n . h e r o ) ] ; 
 	 	 	 	 	 	 t x   =   t x   +   '   H e r o   i s   '   +   h a n d i n . p o s i t i o n s [ f i n d I n d e x ( h a n d i n . p l a y e r s ,   h a n d i n . h e r o ) ] ; 
 	 	 	 	 	 	 t x   =   t x   +   '   w i t h ' ; 
 	 	 	 	 	 	 m a x W   =   h a n d i n . h o l e C a r d s . l e n g t h ; 
 	 	 	 	 	 	 f o r   ( w   = 0 ; w < m a x W ; w + + )   { 
 	 	 	 	 	 	 	 m a x V   =   h a n d i n . h o l e C a r d s [ w ] . l e n g t h ; 
 	 	 	 	 	 	 	 f o r   ( v   = 0 ; v   <   m a x V ;   v + + )   { 
 	 	 	 	 	 	 	 	 
 	 	 	 	 	 	 	 	 t x   =   t x   +   '   '   +   c a r d P r e f i x [ o t ]   +   s u i t P r e [ h a n d i n . h o l e C a r d s [ w ] [ v ] . s u b s t r i n g ( 1 ) ] [ o t ]   +   h a n d i n . h o l e C a r d s [ w ] [ v ] . s u b s t r i n g ( 0 , 1 ) . c a p i t a l i z e ( )   +   s u i t T e x t [ h a n d i n . h o l e C a r d s [ w ] [ v ] . s u b s t r i n g ( 1 ) ] [ o t ]   +   s u i t P o s t [ h a n d i n . h o l e C a r d s [ w ] [ v ] . s u b s t r i n g ( 1 ) ] [ o t ] +   c a r d P o s t f i x [ o t ] ; 
 	 	 	 	 	 	 	 } 
 	 	 	 	 	 	 } 
 	 	 	 	 	 } 
 	 	 	 	 } 
 	 	 	 	 t x   =   t x   +   p l a y e r s L e f t P r e [ o t ] +   '   ( '   +   n u m P l a y e r s L e f t   +   '   p l a y e r s ) '   +   p l a y e r s L e f t P o s t [ o t ] ; 
 
 	 	 	 }   e l s e   { 
 	 	 	 	 
 	 	 	 	 / / f o r   o t h e r   s t r e e t s   w e   j u s t   p r i n t   o u t   n a m e   o f   s t r e e t ,   p o t   s i z e ,   c a r d s ,   a n d   n u m b e r   o f   p l a y e r s 
 	 	 	 	 / / f o r   l i m i t   g a m e s ,   c o n v e r t   p o t   s i z e   t o   n u m b e r   o f   b e t s 
 	 	 	 	 i f   ( n u m P l a y e r s L e f t   >   1 )   { 
 	 	 	 	 	 i f   ( i s L i m i t G a m e )   { 
 	 	 	 	 	 	 i f   ( x < 2 )   { 
 	 	 	 	 	 	 	 p o t s i z e i n b e t s   =   h a n d i n . p o t S i z e / h a n d i n . s m a l l B l i n d ; 
 	 	 	 	 	 	 	 b e t t e x t   =   " S B " ; 
 	 	 	 	 	 	 }   e l s e   { 
 	 	 	 	 	 	 	 p o t s i z e i n b e t s   =   h a n d i n . p o t S i z e / h a n d i n . b i g B l i n d ; 
 	 	 	 	 	 	 	 b e t t e x t   =   " B B " ; 
 	 	 	 	 	 	 } 
 	 	 	 	 	 	 
 	 	 	 	 	 	 t x   =   t x   +   '   ( '   +   p o t s i z e i n b e t s . t o F i x e d ( n u m D i g i t s P o t )   +   '   '   +   b e t t e x t +   ' )   ' ; 
 	 	 	 	 	 }   e l s e   { 
 	 	 	 	 	 	 t x   =   t x   +   '   ( '   +   c h i p P r e f i x   +   a d d C o m m a s ( h a n d i n . p o t S i z e . t o F i x e d ( n u m D i g i t s P o t ) )   +   ' )   ' ; 
 	 	 	 	 	 } 
 	 	 	 	 	 i f   ( h a n d i n . c o m m u n i t y C a r d s [ x ] )   { 
 	 	 	 	 	 	 m a x Y   =   h a n d i n . c o m m u n i t y C a r d s [ x ] . l e n g t h ; 
 	 	 	 	 	 }   e l s e   { 
 	 	 	 	 	 	 m a x Y = 0 ; 
 	 	 	 	 	 } 
 	 	 	 	 	 
 	 	 	 	 	 / / a l e r t ( " w e   h a v e   "   +   m a x Y   +   "   c a r d s . " ) ; 
 	 	 	 	 	 
 	 	 	 	 	 f o r   ( y   =   0 ;   y < m a x Y ; y + + )   { 
 	 
 	 	 	 	 	 	 t x   =   t x   +   '   '   +   c a r d P r e f i x [ o t ]   +   s u i t P r e [ h a n d i n . c o m m u n i t y C a r d s [ x ] [ y ] . s u b s t r i n g ( 1 ) ] [ o t ] +   h a n d i n . c o m m u n i t y C a r d s [ x ] [ y ] . s u b s t r i n g ( 0 , 1 ) . c a p i t a l i z e ( )   +   s u i t T e x t [ h a n d i n . c o m m u n i t y C a r d s [ x ] [ y ] . s u b s t r i n g ( 1 ) ] [ o t ] +   s u i t P o s t [ h a n d i n . c o m m u n i t y C a r d s [ x ] [ y ] . s u b s t r i n g ( 1 ) ] [ o t ]   +   c a r d P o s t f i x [ o t ] ; 
 	 
 	 	 	 	 	 } 
 	 	 	 	 	 t x   =   t x   +   p l a y e r s L e f t P r e [ o t ]   +   '   ( '   +   n u m P l a y e r s L e f t   +   '   p l a y e r s ) '   +   p l a y e r s L e f t P o s t [ o t ] ; 
 	 	 	 	 } 
 	 	 	 } 
 
 	 	 	 t x   =   t x   +   l i n e B r e a k s [ o t ] ; 
 
 	 	 	 / / a c t i o n   o n   t h i s   s t r e e t 
 	 	 	 n u m F o l d s   =   0 ; 
 	 	 	 f o l d s D o n e   =   0 ; 
 	 	 	 d p D i s c o N u m   =   0 ; 
 	 	 	 
 	 	 	 / / s o m e t i m e s   i n   5 C D   t h e r e   i s   n o   f i r s t   a c t o r   o n   s e c o n d   s t r e e t ,   s o   w e   s t a r t   w i t h   n e x t   i n   l i s t 
 	 	 	 / / s h o u l d   r e a l l y   f i x   5 C D   a c t i o n _ p l a y e r s   o n   f i r s t   d r a w 
 	 	 	 i f   ( h a n d i n . a c t i o n _ p l a y e r s [ 1 ] ) { 
 	 	 	 	 i f   ( h a n d i n . a c t i o n _ p l a y e r s [ 1 ] [ 0 ] )   { 
 	 	 	 	 	 s t a r t N u m   =   0 ; 
 	 	 	 	 }   e l s e   { 
 	 	 	 	 	 s t a r t N u m   =   1 ; 
 	 	 	 	 } 
 	 	 	 } 
 
 	 	 	 f o r   ( i   = 0 ; i < h a n d i n . a c t i o n _ p l a y e r s [ x ] . l e n g t h ; i + + )   { 
 	 	 	 	 i f   ( h a n d i n . a c t i o n _ p l a y e r s [ x ] [ i ] )   { 
 	 	 	 	 	 i f   ( ( h a n d i n . a c t i o n _ p l a y e r s [ x ] [ i ]   = =   h a n d i n . h e r o )   & &   ( h a n d i n . a c t i o n _ t y p e s [ x ] [ i ]   = =   ' d i s c a r d s ' ) )   { 
 	 	 	 	 	 	 d p D i s c o N u m   =   h a n d i n . a c t i o n _ v a l u e s [ x ] [ i ] ; 
 	 	 	 	 	 	 
 	 	 	 	 	 } 
 	 
 	 	 	 	 	 i f   ( ( h a n d i n . g a m e S h o r t   = =   ' D R A W ' )     & &   ( h a n d i n . h e r o )   & &   ( h a n d i n . a c t i o n _ t y p e s [ x ] [ i ]   ! =   ' d i s c a r d s ' )   & &   ( h a n d i n . a c t i o n _ t y p e s [ x ] [ i ]   ! =   ' s t a n d s ' )   & &   ( d p D i s c o   = =   1 )   & &   ( x   >   0 ) )   { 
 	 	 	 	 	 	 / / p r i n t   o u t   h e r o s   h o l e   c a r d s ,   o n l y   i f   t h e r e   i s   a   h e r o   a n d   t h e   d i s c a r d i n g / s t a n d i n g   a c t i o n   i s   o v e r 
 	 	 	 	 	 	 / / a l s o ,   o n l y   i f   t h e r e   a r e   m o r e   h o l e   c a r d s ,   i . e .   t h e   h e r o   d i d n ' t   s t a n d   p a t   o n   t h e   l a s t   a c t i o n 
 	 	 	 	 	 	 i f   ( c a r d o u t   <   h a n d i n . h o l e C a r d s [ f i n d I n d e x ( h a n d i n . p l a y e r s ,   h a n d i n . h e r o ) ] . l e n g t h )   { 
 	 	 	 	 	 	 	 t x   =   t x   +   l i n e B r e a k s [ o t ] ; 
 	 	 	 	 	 	 	 f o r   ( c o u n t C a r d   =   0 ;   c o u n t C a r d   <   m a x C a r d s ;   c o u n t C a r d + + )   { 
 	 	 	 	 	 	 	 	 
 	 	 	 	 	 	 	 	 i f   ( ( d p D i s c o N u m   >   0 )   & &   ( c o u n t C a r d   = =   ( m a x C a r d s   -   d p D i s c o N u m ) ) )   { 
 	 	 	 	 	 	 	 	 	 t x   =   t x   +   '   | | ' ; 
 	 	 	 	 	 	 	 	 } 
 	 	 	 	 	 	 	 	 t x   =   t x   +   '   '   +   c a r d P r e f i x [ o t ]   +   s u i t P r e [ h a n d i n . h o l e C a r d s [ f i n d I n d e x ( h a n d i n . p l a y e r s ,   h a n d i n . h e r o ) ] [ c a r d o u t ] . s u b s t r i n g ( 1 ) ] [ o t ]   +   h a n d i n . h o l e C a r d s [ f i n d I n d e x ( h a n d i n . p l a y e r s ,   h a n d i n . h e r o ) ] [ c a r d o u t ] . s u b s t r i n g ( 0 , 1 ) . c a p i t a l i z e ( )   +   s u i t T e x t [ h a n d i n . h o l e C a r d s [ f i n d I n d e x ( h a n d i n . p l a y e r s ,   h a n d i n . h e r o ) ] [ c a r d o u t ] . s u b s t r i n g ( 1 ) ] [ o t ]   +   s u i t P o s t [ h a n d i n . h o l e C a r d s [ f i n d I n d e x ( h a n d i n . p l a y e r s ,   h a n d i n . h e r o ) ] [ c a r d o u t ] . s u b s t r i n g ( 1 ) ] [ o t ]   +   c a r d P o s t f i x [ o t ] ; 
 	 	 	 	 	 	 	 	 c a r d o u t + + 
 	 	 	 	 	 	 	 } 
 	 	 	 	 	 	 	 d p D i s c o   =   0 ; 
 	 	 	 	 	 	 	 t x   =   t x   +   l i n e B r e a k s [ o t ] ; 
 	 	 	 	 	   } 
 	 	 	 	 	 } 
 	 
 	 	 	 	 	 / / t h e   a c t i o n 
 	 	 	 	 	 i f   ( h a n d i n . a c t i o n _ t y p e s [ x ] [ i ]   = =   ' r a i s e s '   |   h a n d i n . a c t i o n _ t y p e s [ x ] [ i ]   = =   ' b e t s ' )   { 
 	 	 	 	 	 	 
 	 	 	 	 	 	 a c t i o n P r e   =   b e t A c t i o n P r e [ o t ] ; 
 	 	 	 	 	 	 a c t i o n P o s t   =   b e t A c t i o n P o s t [ o t ] ; 
 	 	 	 	 	 	 
 	 	 	 	 	 	 i f   ( i s L i m i t G a m e )   { 
 	 	 	 	 	 	 	 / / c o n v e r t   t o   3 b e t   a n d   4 b e t 
 	 	 	 	 	 	 	 i f   ( h a n d i n . a c t i o n _ t y p e s [ x ] [ i ] = = ' r a i s e s ' )   { 
 	 	 	 	 	 	 	 	 r a i s e c o u n t e r   =   0 ; 
 	 	 	 	 	 	 	 	 f o r   ( b   =   0 ;   b   < =   i ;   + + b )   { 
 	 	 	 	 	 	 	 	 	 i f   ( h a n d i n . a c t i o n _ t y p e s [ x ] [ b ]   = =   ' r a i s e s '   | |   h a n d i n . a c t i o n _ t y p e s [ x ] [ b ]   = =   ' 3 - b e t s '   | |   h a n d i n . a c t i o n _ t y p e s [ x ] [ b ]   = =   ' 4 - b e t s ' | |   h a n d i n . a c t i o n _ t y p e s [ x ] [ b ]   = =   ' 5 - b e t s ' )   { + + r a i s e c o u n t e r ; } 
 	 	 	 	 	 	 	 	 	 
 	 	 	 	 	 	 	 	 } 
 	 	 	 	 	 	 	 	 i f   ( r a i s e c o u n t e r = = 2 )   { h a n d i n . a c t i o n _ t y p e s [ x ] [ i ]   =   ' 3 - b e t s ' ; } 
 	 	 	 	 	 	 	 	 i f   ( r a i s e c o u n t e r = = 3 )   { h a n d i n . a c t i o n _ t y p e s [ x ] [ i ]   =   ' 4 - b e t s ' ; } 
 	 	 	 	 	 	 	 	 i f   ( r a i s e c o u n t e r = = 4 )   { h a n d i n . a c t i o n _ t y p e s [ x ] [ i ]   =   ' 5 - b e t s ' ; } 
 	 	 	 	 	 	 	 	 i f   ( r a i s e c o u n t e r = = 5 )   { h a n d i n . a c t i o n _ t y p e s [ x ] [ i ]   =   ' 6 - b e t s ' ; } 	 	 	 	 	 	 	 
 	 	 	 	 	 	 	 } 
 	 	 	 	 	 	 } 
 	 	 	 	 	 	 
 	 	 	 	 	 }   e l s e   i f   ( h a n d i n . a c t i o n _ t y p e s [ x ] [ i ]   = =   ' f o l d s ' )   { 
 	 	 	 	 	 	 / / m u l t i p l e   c o n s e c u t i v e   f o l d s   w i l l   b e   c o l l a p s e d 
 	 	 	 	 	 	 n u m P l a y e r s L e f t   =   n u m P l a y e r s L e f t   -   1 ; 
 	 	 	 	 	 	 n u m F o l d s   =   n u m F o l d s   +   1 ; 
 	 	 	 	 	 	 a c t i o n C o l o r   =   f o l d C o l o r ; 
 	 	 	 	 	 	 s t y l e s t a r t   =   ' [ i ] ' ; 
 	 	 	 	 	 	 s t y l e e n d   =   ' [ / i ] ' ; 
 	 	 	 	 	 	 i f   ( h a n d i n . a c t i o n _ t y p e s [ x ] [ p a r s e I n t ( i )   +   1 ]   = =   ' f o l d s ' )   { 
 	 	 	 	 	 	 	 / / i f   w e   a r e   h e r o ,   i t   d o e s n ' t   g e t   c o l l a p s e d 
 	 	 	 	 	 	 	 i f   ( h a n d i n . a c t i o n _ p l a y e r s [ x ] [ i ]   = =   h a n d i n . h e r o )   { 
 	 	 	 	 	 	 	 	 f o l d s D o n e   =   1 ; 
 	 	 	 	 	 	 	 }   e l s e   { 
 	 	 	 	 	 	 	 	 / / t h e r e ' s   a n o t h e r   f o l d   c o m i n g   u p         
 	 	 	 	 	 	 	 	 i f   ( h a n d i n . a c t i o n _ p l a y e r s [ x ] [ p a r s e I n t ( i )   +   1 ]   = =   h a n d i n . h e r o )   { 
 	 	 	 	 	 	 	 	 	 / / b u t   i t s   h e r o ,   s o   w e ' r e   d o n e 
 	 	 	 	 	 	 	 	 	 f o l d s D o n e   =   1 ; 
 	 	 	 	 	 	 	 	 }   e l s e   { 
 	 	 	 	 	 	 	 	 	 / / i t s   n o t   h e r o ,   c o l l a p s e   t h i s   o n e   i n 
 	 	 	 	 	 	 	 	 	 f o l d s D o n e   =   0 ; 
 	 	 	 	 	 	 	 	 } 
 	 	 	 	 	 	 	 } 
 	 	 	 	 	 	 }   e l s e   { 
 	 	 	 	 	 	 	 / / n o   m o r e   f o l d s ,   w e r e   d o n e 
 	 	 	 	 	 	 	 f o l d s D o n e   =   1 ; 
 	 	 	 	 	 	 } 
 	 
 	 	 	 	 	 }   e l s e   { 
 	 	 	 	 	 	 a c t i o n P r e   =   r e g A c t i o n P r e [ o t ] ; 
 	 	 	 	 	 	 a c t i o n P o s t   =   r e g A c t i o n P o s t [ o t ] ; 
 	 	 	 	 	 } 
 	 
 	 	 	 	 	 / / t h e   a c t o r 
 	 	 	 	 	 / / a c t o r   =   h a n d i n . p o s i t i o n s [ h a n d i n . p l a y e r s . i n d e x O f ( h a n d i n . a c t i o n _ p l a y e r s [ x ] [ i ] ) ] ; 
 	 	 	 	 	 i f   ( s h o w N a m e s )   { 
 	 	 	 	 	 	 a c t o r   =   h a n d i n . a c t i o n _ p l a y e r s [ x ] [ i ] ; 
 	 	 	 	 	 }   e l s e   { 
 	 	 	 	 	 	 a c t o r   =   h a n d i n . p o s i t i o n s [ f i n d I n d e x ( h a n d i n . p l a y e r s ,   h a n d i n . a c t i o n _ p l a y e r s [ x ] [ i ] ) ] ; 
 	 	 	 	 	 } 
 	 
 	 	 	 	 	 i f   ( h a n d i n . a c t i o n _ p l a y e r s [ x ] [ i ]   = =   h a n d i n . h e r o )   { 
 	 	 	 	 	 	 a c t o r   =   " H e r o " ; 
 	 	 	 	 	 } 
 	 
 	 	 	 	 	 / / p r i n t   p l a y e r   a n d   a c t i o n 
 	 	 	 	 	 / / c o l l a p s e   f o l d s 
 	 	 	 	 	 i f   ( h a n d i n . a c t i o n _ t y p e s [ x ] [ i ]   = =   ' f o l d s ' )   { 
 	 	 	 	 	 	 i f   ( f o l d s D o n e )   { 
 	 	 	 	 	 	 	 / / p r i n t   o u t   f o l d s 
 	 	 	 	 	 	 	 i f   ( n u m F o l d s   = =   1 )   { 
 	 	 	 	 	 	 	 	 / / j u s t   a   s i n g l e   o n e 
 	 	 	 	 	 	 	 	 t x   =   t x   +   f o l d s P r e [ o t ]   +   a c t o r   +   '   '   +   h a n d i n . a c t i o n _ t y p e s [ x ] [ i ] ; 
 	 	 	 	 	 	 	 	 n u m F o l d s   =   0 ; 
 	 	 	 	 	 	 	 }   e l s e   { 
 	 	 	 	 	 	 	 	 / / s e v e r a l 
 	 	 	 	 	 	 	 	 t x   =   t x   +   f o l d s P r e [ o t ]     +   n u m F o l d s   +   '   f o l d s ' ; 
 	 	 	 	 	 	 	 	 n u m F o l d s   =   0 ; 
 	 	 	 	 	 	 	 } 
 	 	 	 	 	 	 	 t x   =   t x   +   f o l d s P o s t [ o t ] ; 
 	 
 	 	 	 	 	 	 	 / / i f   t h i s   i s   t h e   l a s t   a c t i o n   w e   w a n t   a   n e w   l i n e ,   o t h e r w i s e   a   c o m m a 
 	 	 	 	 	 	 	 i f   ( i   <   h a n d i n . a c t i o n _ p l a y e r s [ x ] . l e n g t h   -   1   & &   h a n d i n . a c t i o n _ t y p e s [ x ] [ p a r s e F l o a t ( i )   +   1 ]   ! =   ' c o l l e c t e d ' )   { 
 	 	 	 	 	 	 	 	 t x   =   t x   +   ' ,   ' ; 
 	 	 	 	 	 	 	 }   e l s e   i f   ( h a n d i n . a c t i o n _ t y p e s [ x ] [ p a r s e F l o a t ( i )   +   1 ]   = =   ' c o l l e c t e d ' )   { 
 	 	 	 	 	 	 	 	 t x   =   t x   +   l i n e B r e a k s [ o t ]   +   l i n e B r e a k s [ o t ] ; 
 	 	 	 	 	 	 	 	 i f   ( h a n d i n . s i t e   ! = ' H o l d e m   M a n a g e r ' )   { s k i p s h o w d o w n   =   1 ; } 
 	 
 	 	 	 	 	 	 	 }   e l s e   { 
 	 	 	 	 	 	 	 	 t x   =   t x   +   l i n e B r e a k s [ o t ] ; 
 	 	 	 	 	 	 	 } 
 	 
 	 	 	 	 	 	 }   e l s e   { 
 	 	 	 	 	 	 	 / / d o   n o t h i n g   - -   f o l d s   c o l l a p s e d 
 	 	 	 	 	 	 } 
 	 	 	 	 	 }   e l s e   { 
 	 	 	 	 	 	 / / n o n f o l d   a c t i o n 
 	 	 	 	 	 	 t x   =   t x   +   a c t i o n P r e   +   a c t o r   +   '   '   +   h a n d i n . a c t i o n _ t y p e s [ x ] [ i ] ; 
 	 	 	 	 	 	 / / t h e   v a l u e s 
 	 	 	 	 	 	 i f   ( h a n d i n . a c t i o n _ v a l u e s [ x ] [ i ] )   { 
 	 	 	 	 	 	 	 i f   ( ! i s L i m i t G a m e )   { 
 	 	 	 	 	 	 	 	 / / f o r   l i m i t   g a m e s   w e   d o n t   p r i n t   t h e   v a l u e s 
 	 	 	 	 	 	 	 	 i f   ( h a n d i n . a c t i o n _ t y p e s [ x ] [ i ]   = =   ' r a i s e s ' )   { 
 	 	 	 	 	 	 	 	 	 t x   =   t x   +   '   t o   '   +   c h i p P r e f i x   +   h a n d i n . a c t i o n _ v a l u e s [ x ] [ i ] ; 
 	 	 
 	 	 	 	 	 	 	 	 }   e l s e   i f   ( h a n d i n . a c t i o n _ t y p e s [ x ] [ i ]   = =   ' d i s c a r d s ' )   { 
 	 	 	 	 	 	 	 	 	 t x   =   t x   +   '   '   +   h a n d i n . a c t i o n _ v a l u e s [ x ] [ i ] ; 
 	 	 	 	 	 	 	 	 }   e l s e   { 
 	 	 	 	 	 	 	 	 	 t x   =   t x   +   '   '   +   c h i p P r e f i x   +   h a n d i n . a c t i o n _ v a l u e s [ x ] [ i ] ; 
 	 	 	 	 	 	 	 	 } 
 	 	 	 	 	 	 	 	 
 	 	 	 	 	 	       }   e l s e   { 
 	 	 	 	 	 	       	     	 / / f o r   l i m i t   g a m e s   w e   d o   s h o w   v a l u e s   c o l l e c t e d 
 	 	 	 	 	 	       	     	 i f   ( h a n d i n . a c t i o n _ t y p e s [ x ] [ i ]   = =   ' c o l l e c t e d ' )   { 
 	 	 	 	 	 	       	     	 	 t x   =   t x   +   '   '   +   c h i p P r e f i x   +   h a n d i n . a c t i o n _ v a l u e s [ x ] [ i ] ; 
 	 	 	 	 	 	       	     	 } 
 	 	 	 	 	 	       
 	 	 	 	 	 	       } 
 	 	 	 	 	 	 } 
 	 	 	 	 	 	 t x   =   t x   +   a c t i o n P o s t ; 
 	 
 	 	 	 	 	 	 / / i f   t h i s   i s   t h e   l a s t   a c t i o n   w e   w a n t   a   n e w   l i n e ,   o t h e r w i s e   a   c o m m a 
 	 	 	 	 	 	 i f   ( i   <   h a n d i n . a c t i o n _ p l a y e r s [ x ] . l e n g t h   -   1   & &   h a n d i n . a c t i o n _ t y p e s [ x ] [ p a r s e I n t ( i )   +   1 ]   ! =   ' c o l l e c t e d ' )   { 
 	 	 	 	 	 	 	 t x   =   t x   +   ' ,   ' ; 
 	 	 	 	 	 	 }   e l s e   i f   ( h a n d i n . a c t i o n _ t y p e s [ x ] [ p a r s e I n t ( i )   +   1 ]   = =   ' c o l l e c t e d ' )   { 
 	 	 	 	 	 	 	 t x   =   t x   +   l i n e B r e a k s [ o t ]   +   l i n e B r e a k s [ o t ] ; 
 	 	 	 	 	 	 	 i f   ( h a n d i n . s i t e   ! = ' H o l d e m   M a n a g e r ' )   { s k i p s h o w d o w n   =   1 ; } 
 	 
 	 	 	 	 	 	 }   e l s e   { 
 	 	 	 	 	 	 	 t x   =   t x   +   l i n e B r e a k s [ o t ] ; 
 	 	 	 	 	 	 } 
 	 
 	 	 	 	 	 } 
 	 	 	 	 } 
 	 	 	 } 
 
 	 	 	 t x   =   t x   +   l i n e B r e a k s [ o t ] ; 
 
 	 	 	 / / u p d a t e   p o t   s i z e 
 	 	 	 h a n d i n . p o t S i z e   =   c l e a n N u m ( h a n d i n . p o t S i z e )   +   c l e a n N u m ( h a n d i n . a c t i o n _ a d d e d T o P o t [ x ] ) ; 
 	 	 } 
 	 	 
 	 	 i f   ( m a x X   <   r e m a x X )   { 
 	 	 	 / / w h i l e   ( m a x X   <   r e m a x X )   { 
 	 	 	 m a x Y   =   0 ; 
 	 	 	 t m a x X   =   m a x X ; 
 	 	 	 t r e m a x X   =   r e m a x X ; 
 	 	 	 f o r   ( z z   =   0 ;   z z   <   h a n d i n . r u n t i m e s ;   z z + + )   { 
 	 	 	 	 f o r   ( x x   =   m a x X ;   x x   <   r e m a x X ;   x x + + )   { 
 	 	 	 	 	 t x   =   t x   +   s t r e e t N a m e P r e [ o t ]   +   h a n d i n . s t r e e t N a m e [ x x ]   +     '   '   +   ( z z   +   1 )   + ' : '   +   s t r e e t N a m e P o s t [ o t ] ; 
 	 	 	 	 	 i f   ( h a n d i n . c o m m u n i t y C a r d s [ x x ] )   { 
 	 	 	 	 	 	 m a x Y   =   h a n d i n . c o m m u n i t y C a r d s [ x x ] . l e n g t h   /   h a n d i n . r u n t i m e s ; 
 	 	 	 	 	 } 
 	 	 	 	 	 f o r   ( y   =   0 ;   y   <   m a x Y ; y + + )   { 
 	 	 	 	 	 	 t e m p e r   =   ( z z   *   m a x Y )   +   y ; 
 	 	 	 	 	 	 / / a l e r t ( " a l e r t   1   : :   z z   "   +   z z   +   "   : :   h a n d i n . c o m m u n i t y C a r d s [ x x ] [ t e m p e r ]   "   +   h a n d i n . c o m m u n i t y C a r d s [ x x ] [ t e m p e r ] ) ; 
 	 	 	 	 	 	 t x   =   t x   +   '   '   +   c a r d P r e f i x [ o t ]   +   s u i t P r e [ h a n d i n . c o m m u n i t y C a r d s [ x x ] [ t e m p e r ] . s u b s t r i n g ( 1 ) ] [ o t ] +   h a n d i n . c o m m u n i t y C a r d s [ x x ] [ t e m p e r ] . s u b s t r i n g ( 0 , 1 ) . c a p i t a l i z e ( )   +   s u i t T e x t [ h a n d i n . c o m m u n i t y C a r d s [ x x ] [ t e m p e r ] . s u b s t r i n g ( 1 ) ] [ o t ] +   s u i t P o s t [ h a n d i n . c o m m u n i t y C a r d s [ x x ] [ t e m p e r ] . s u b s t r i n g ( 1 ) ] [ o t ]   +   c a r d P o s t f i x [ o t ] ; 
 	 	 	 	 	 } 
 	 	 	 	 	 t x   =   t x   +   l i n e B r e a k s [ o t ] ; 
 	 	 	 	 } 
 	 	 	 	 t x   =   t x   +   l i n e B r e a k s [ o t ] ; 
 	 	 	 } 
 	 	 } 
 	 	 
 	 	 i f   ( s h o w R e s u l t s   = =   2 )   { s k i p s h o w d o w n = 1 ; } 
 
 	 	 / / s h o w d o w n 
 	 	 i f   ( ! s k i p s h o w d o w n )   { 
 	 	 	 
 	 	 	 i f   ( s h o w R e s u l t s = = 1 )   { 
 	 	 	 	 t x   =   t x   +   w h i t e R e s u l t s P r e [ o t ] ; 
 	 	 	 	 c a r d s P r e   =   w h i t e C a r d s P r e [ o t ] ; 
 	 	 	 	 c a r d s P o s t   =   w h i t e C a r d s P o s t [ o t ] ; 
 	 	 	 }   e l s e   { 
 	 	 	 	 c a r d s P r e   =   c a r d P r e f i x [ o t ] ; 
 	 	 	 	 c a r d s P o s t   =   c a r d P o s t f i x [ o t ] ; 
 	 	 	 } 
 	 	 	 m a x i   =   h a n d i n . s h o w d o w n _ p l a y e r s . l e n g t h ; 
 	 	 	 f o r   ( i   = 0 ; i < m a x i ; i + + )   { 
 	 	 	 	 / /   c o n v e r t   p l a y e r   n a m e   t o   p o s i t i o n / h e r o   f o r   s h o w d o w n 
 	 	 	 	 i f   ( h a n d i n . s h o w d o w n _ p l a y e r s [ i ]   = =   h a n d i n . h e r o )   { 
 	 	 	 	 	 s h o w d o w n p l a y e r   =   ' H e r o ' ; 
 	 	 	 	 } 
 	 	 	 	 e l s e   { 
 	 	 	 	 	 i f   ( s h o w N a m e s )   { 
 	 	 	 	 	 	 s h o w d o w n p l a y e r   =   h a n d i n . s h o w d o w n _ p l a y e r s [ i ] ; 
 	 	 	 	 	 }   e l s e   { 
 	 	 	 	 	 	 s h o w d o w n p l a y e r   =   h a n d i n . p o s i t i o n s [ f i n d I n d e x ( h a n d i n . p l a y e r s ,   h a n d i n . s h o w d o w n _ p l a y e r s [ i ] ) ] ; 
 	 	 	 	 	 } 
 	 	 	 	 } 
 	 	 	 	 i f   ( h a n d i n . s h o w d o w n _ c a r d s [ i ] ) { 
 	 	 	 	 	 i f   ( h a n d i n . s h o w d o w n _ c a r d s [ i ] [ 0 ]   = =   ' m u c k s ' )   { 
 	 	 	 	 	 	 t x   =   t x   +   s h o w d o w n p l a y e r   +   '   m u c k e d '   +   l i n e B r e a k s [ o t ] ; 
 	 	 	 	 	 }   e l s e   { 
 	 	 	 	 	 	 i f   ( h a n d i n . s h o w d o w n _ t y p e s [ i ]   = =   ' m u c k e d ' )   { 
 	 	 	 	 	 	 	 t y p e t e x t   =   " m u c k e d " ; 
 	 	 	 	 	 	 }   e l s e   { 
 	 	 	 	 	 	 	 t y p e t e x t   =   " s h o w e d " ; 
 	 	 	 	 	 	 } 
 	 	 	 	 	 	 i f   ( h a n d i n . s h o w d o w n _ t y p e s [ i ]   ! =   ' c o l l e c t e d ' )   { 
 	 	 	 	 	 	 	 t x   =   t x   +   s h o w d o w n p l a y e r   +   '   '   +   t y p e t e x t ; 
 	 	 	 	 	 	 	 i f   ( h a n d i n . s h o w d o w n _ c a r d s [ i ] [ 1 ] )   { 
 	 	 	 	 	 	 	 	 f o r   ( w   = 0 ; w < h a n d i n . s h o w d o w n _ c a r d s [ i ] . l e n g t h ; w + + )   { 
 	 	 	 	 	 	 	 	 	 i f   ( s h o w R e s u l t s   = = 0 )   { 
 	 	 	 	 	 	 	 	 	 	 c a r d T e x t   =   h a n d i n . s h o w d o w n _ c a r d s [ i ] [ w ] . s u b s t r i n g ( 0 , 1 ) . c a p i t a l i z e ( )   +   s u i t T e x t [ h a n d i n . s h o w d o w n _ c a r d s [ i ] [ w ] . s u b s t r i n g ( 1 ) ] [ o t ] ; 
 	 	 	 	 	 	 	 	 	 }   e l s e   { 
 	 	 	 	 	 	 	 	 	 	 c a r d T e x t   =   h a n d i n . s h o w d o w n _ c a r d s [ i ] [ w ] . c a p i t a l i z e ( ) ; 
 	 	 	 	 	 	 	 	 	 } 
 	 	 	 	 	 	 	 	 	 t x   =   t x   +   '   '   +   c a r d s P r e   +   s u i t P r e [ h a n d i n . s h o w d o w n _ c a r d s [ i ] [ w ] . s u b s t r i n g ( 1 ) ] [ o t ]   +   c a r d T e x t   +   s u i t P o s t [ h a n d i n . s h o w d o w n _ c a r d s [ i ] [ w ] . s u b s t r i n g ( 1 ) ] [ o t ]   +   c a r d s P o s t ; 
 	 	 	 	 	 	 	 	 } 
 	 	 	 	 	 	 	 } 
 	 	 	 	 	 	 	 i f   ( h a n d i n . s h o w d o w n _ t y p e s [ i ]   ! =   " m u c k e d " )   { 
 	 	 	 	 	 	 	 	 t x   =   t x   +   ' ,   '   +   h a n d i n . s h o w d o w n _ h a n d s [ i ] ; 
 	 	 	 	 	 	 	 } 
 	 	 	 	 	 	 	 t x   =   t x   +   l i n e B r e a k s [ o t ] ; 
 	 	 	 	 	 	 } 
 	 	 	 	 	 } 
 	 	 	 	 } 
 	 	 	 	 / / } 
 	 	 	 } 
 	 	 	 / / r e s u l t s 
 	 	 	 f o r   ( i = 0 ; i <   h a n d i n . r e s u l t _ p l a y e r s . l e n g t h ; i + + )   { 
 	 	 	 	 / / c o n v e r t   p l a y e r   n a m e   t o   p o s i t i o n / h e r o   f o r   s h o w d o w n 
 	 	 	 	 i f   ( h a n d i n . r e s u l t _ p l a y e r s [ i ]   = =   h a n d i n . h e r o )   { 
 	 	 	 	 	 r e s u l t p l a y e r   =   ' H e r o ' ; 
 	 	 	 	 }   e l s e   { 
 	 	 	 	 	 i f   ( s h o w N a m e s )   { 
 	 	 	 	 	 	 r e s u l t p l a y e r   =   h a n d i n . r e s u l t _ p l a y e r s [ i ] ; 
 	 	 	 	 	 }   e l s e   { 
 	 	 	 	 	 	 r e s u l t p l a y e r   =   h a n d i n . p o s i t i o n s [ f i n d I n d e x ( h a n d i n . p l a y e r s ,   h a n d i n . r e s u l t _ p l a y e r s [ i ] ) ] ; 
 	 	 	 	 	 } 
 
 	 	 	 	 } 
 	 	 	 	 t x   =   t x   +   r e s u l t p l a y e r   +   '   w o n   '   +   c h i p P r e f i x   +   h a n d i n . r e s u l t _ v a l u e s [ i ]   +   l i n e B r e a k s [ o t ] ; 
 	 	 	 } 
 	 	 	 i f   ( s h o w R e s u l t s = = 1 )   { 
 	 	 	 	 t x   =   t x   +   w h i t e R e s u l t s P o s t [ o t ] ; 
 	 	 	 } 
 	 	 } 
 	 	 i f   ( h a n d i n . r a k e   & &   h a n d i n . g a m e T y p e   = =   " C " )   { 
 	 	 	 t x   =   t x   +   ' ( R a k e :   '   +   c h i p P r e f i x   +   h a n d i n . r a k e   +   ' ) '   +   l i n e B r e a k s [ o t ] ; 
 	 	 } 
 
 	 	 i f   ( h a n d i n . e r r o r )   { 
 	 	 	 t x   =   t x   +   ' \ n \ n '   +   h a n d i n . e r r o r ; 
 	 	 } 
 
 	 } 
 
 	 r e t u r n   t x ; 
 
 } 
 
 
 
 
 f u n c t i o n   g e t P o s i t i o n N a m e s S t u d ( h a n d i n )   { 
 	 / / t a k e s   l i s t   o f   p l a y e r s   a n d   s e a t s   a n d   f i g u r e s   o u t   p o s i t i o n   l a b e l s 
 	 h a n d i n . p o s i t i o n s   =   n e w   A r r a y ; 
 	 f o r   ( x   = 0 ; x < h a n d i n . s e a t N u m b e r s . l e n g t h ; + + x )   { 
 	 	 h a n d i n . p o s i t i o n s [ x ]   =   " S e a t   "   +   h a n d i n . s e a t N u m b e r s [ x ] ; 
 	 } 
 	 r e t u r n   h a n d i n ; 
 } 
 
 f u n c t i o n   g e t P o s i t i o n N a m e s ( h a n d i n )   { 
 
 	 / / t a k e s   l i s t   o f   p l a y e r s   a n d   s e a t s   a n d   f i g u r e s   o u t   p o s i t i o n   l a b e l s 
 	 / / b u t t o n I n d e x   =   h a n d i n . s e a t N u m b e r s . i n d e x O f ( h a n d i n . b u t t o n ) ; 
 	 b u t t o n I n d e x   =   f i n d I n d e x ( h a n d i n . s e a t N u m b e r s ,   h a n d i n . b u t t o n ) 
 	 h a n d i n . p o s i t i o n s   =   n e w   A r r a y ; 
 	 h a n d i n . p o s i t i o n s [ b u t t o n I n d e x ]   =   ' B u t t o n ' ; 
 	 m a x I n d e x   =   h a n d i n . n u m P l a y e r s   -   1 ; 
 
 	 i f   ( h a n d i n . n u m P l a y e r s   = =   2 )   { 
 	 	 / / h e a d s   u p   t h e   g u y   n o t   o n   b u t t o n   i s   B B 
 	 	 b b I n d e x   =   b u t t o n I n d e x   +   1 ; 
 	 	 i f   ( b b I n d e x   >   m a x I n d e x )   { 
 	 	 	 b b I n d e x   =   0 ; 
 	 	 } 
 	 	 h a n d i n . p o s i t i o n s [ b b I n d e x ]   =   ' B B ' ; 
 
 	 }   e l s e   { 
 
 	 	 s b I n d e x   =   b u t t o n I n d e x   +   1 ; 
 	 	 i f   ( s b I n d e x   >   m a x I n d e x )   { 
 	 	 	 s b I n d e x   =   0 ; 
 	 	 } 
 	 	 h a n d i n . p o s i t i o n s [ s b I n d e x ]   =   ' S B ' ; 
 
 	 	 b b I n d e x   =   s b I n d e x   +   1 ; 
 	 	 i f   ( b b I n d e x   >   m a x I n d e x )   { 
 	 	 	 b b I n d e x   =   0 ; 
 	 	 } 
 	 	 h a n d i n . p o s i t i o n s [ b b I n d e x ]   =   ' B B ' ; 
 
 	 	 i f   ( h a n d i n . n u m P l a y e r s   >   3 )   { 
 
 	 	 	 u t g I n d e x   =   b b I n d e x   +   1 ; 
 	 	 	 i f   ( u t g I n d e x   >   m a x I n d e x )   { 
 	 	 	 	 u t g I n d e x   =   0 ; 
 	 	 	 } 
 	 	 	 h a n d i n . p o s i t i o n s [ u t g I n d e x ]   =   ' U T G ' ; 
 
 	 	 	 i f   ( h a n d i n . n u m P l a y e r s   >   4 )   { 
 
 	 	 	 	 c o I n d e x   =   b u t t o n I n d e x   -   1 ; 
 	 	 	 	 i f   ( c o I n d e x   <   0 )   { 
 	 	 	 	 	 c o I n d e x   =   h a n d i n . n u m P l a y e r s   -   1 ; 
 	 	 	 	 } 
 	 	 	 	 h a n d i n . p o s i t i o n s [ c o I n d e x ]   =   " C O " ; 
 
 	 	 	 	 i f   ( h a n d i n . n u m P l a y e r s   >   5 )   { 
 	 	 	 	 	 u t g 1 I n d e x   =   u t g I n d e x   +   1 ; 
 	 	 	 	 	 i f   ( u t g 1 I n d e x   >   m a x I n d e x )   { 
 	 	 	 	 	 	 u t g 1 I n d e x   =   0 ; 
 	 	 	 	 	 } 
 	 	 	 	 	 h a n d i n . p o s i t i o n s [ u t g 1 I n d e x ]   =   " U T G + 1 " ; 
 
 	 	 	 	 	 i f   ( h a n d i n . n u m P l a y e r s   >   6 )   { 
 	 	 	 	 	 	 h j I n d e x   =   c o I n d e x   -   1 ; 
 	 	 	 	 	 	 i f   ( h j I n d e x   <   0 )   { 
 	 	 	 	 	 	 	 h j I n d e x   =   m a x I n d e x ; 
 	 	 	 	 	 	 } 
 	 	 	 	 	 	 h a n d i n . p o s i t i o n s [ h j I n d e x ]   =   " H J " ; 
 
 	 	 	 	 	 	 i f   ( h a n d i n . n u m P l a y e r s   >   7 )   { 
 	 	 	 	 	 	 	 m p I n d e x   =   u t g 1 I n d e x   +   1 ; 
 	 	 	 	 	 	 	 i f   ( m p I n d e x   >   m a x I n d e x )   { 
 	 	 	 	 	 	 	 	 m p I n d e x   =   0 ; 
 	 	 	 	 	 	 	 } 
 	 	 	 	 	 	 	 h a n d i n . p o s i t i o n s [ m p I n d e x ]   =   " M P " ; 
 
 	 	 	 	 	 	 	 i f   ( h a n d i n . n u m P l a y e r s   >   8 )   { 
 	 	 	 	 	 	 	 	 m p 2 I n d e x   =   m p I n d e x   +   1 ; 
 	 	 	 	 	 	 	 	 i f   ( m p 2 I n d e x   >   m a x I n d e x )   { 
 	 	 	 	 	 	 	 	 	 m p 2 I n d e x   =   0 ; 
 	 	 	 	 	 	 	 	 } 
 	 	 	 	 	 	 	 	 h a n d i n . p o s i t i o n s [ m p 2 I n d e x ]   =   " M P 2 " ; 
 
 	 	 	 	 	 	 	 	 i f   ( h a n d i n . n u m P l a y e r s   >   9 )   { 
 	 	 	 	 	 	 	 	 	 m p 3 I n d e x   =   m p 2 I n d e x   +   1 ; 
 	 	 	 	 	 	 	 	 	 i f   ( m p 3 I n d e x   >   m a x I n d e x )   { 
 	 	 	 	 	 	 	 	 	 	 m p 3 I n d e x   =   0 ; 
 	 	 	 	 	 	 	 	 	 } 
 	 	 	 	 	 	 	 	 	 h a n d i n . p o s i t i o n s [ m p 3 I n d e x ]   =   " M P 3 " ; 
 
 	 	 	 	 	 	 	 	 	 i f   ( h a n d i n . n u m P l a y e r s   >   1 0 )   { 
 
 	 	 	 	 	 	 	 	 	 	 h a n d i n . e r r o r   =   " W T F ,   m o r e   t h a n   1 0   p l a y e r s ? !   I   c a n n o t   h a n d l e   t h i s . " ; 
 
 	 	 	 	 	 	 	 	 	 } 
 	 	 	 	 	 	 	 	 } 
 	 	 	 	 	 	 	 } 
 	 	 	 	 	 	 } 
 	 	 	 	 	 } 
 	 	 	 	 } 
 	 	 	 } 
 	 	 } 
 	 } 
 
 	 r e t u r n   h a n d i n ; 
 
 } 
 
 f u n c t i o n   g e t R a n d o m T a g L i n e ( )   { 
 
 	 / / r e t u r n s   a   r a n d o m   t a g l i n e   f r o m   t h e   l i s t 
 	 t a g L i n e s   =   [ ' M i l k e d   f r o m   t h e   t e a t   o f   a   f e r a l   c o w ' ,   ' C o n v e r t e d   b y   a   h e r d   o f   f e r a l   c o w s ' ,   ' A   p a c k   o f   f e r a l   c o w s   c h e w e d   t h e i r   c u d s   f o r   . 0 0 4 3   s e c o n d s   t o   c o n v e r t   t h i s   h a n d ' ,   ' M o o o o o o o o o o o r a a a w w w r . ' ,   ' F e r a l   C o w   P o k e r   H a n d   C o n v e r t e r ' ,   ' F e r a l   C o w   P o k e r   H a n d   C o n v e r t e r ' ,   ' F e r a l   C o w   P o k e r   H a n d   C o n v e r t e r ' ,   ' F e r a l   C o w   P o k e r   H a n d   C o n v e r t e r ' ,   ' F e r a l   C o w   P o k e r   H a n d   C o n v e r t e r ' ,   ' C o n v e r t i n g   h a n d s   t i l l   t h e   c o w s   c o m e   h o m e ' ,   ' C o w s   p l a y   p o k e r   w i t h   c o w   c h i p s ' ,   ' D o n t   h a v e   a   c o w ,   h e r e s   y o u r   c o n v e r t e d   h a n d ' ,   ' T h i s   c o n v e r t e r   i s   g o i n g   t o   b e   a   c a s h   c o w . . . ' ,   ' Y o u r   c o n v e r t e d   h a n d ,   n o w   w i t h   m o r e   c o w b e l l . ' ,   ' F e r a l   C o w   P o k e r ' ,   ' F e r a l   C o w   P o k e r ' ,   ' F e r a l   C o w   P o k e r ' ,   ' o n c e   a   c o w   h a s   a   t a s t e   f o r   v i o l e n c e ,   i t   r e v e r t s .   i t   b e c o m e s   f e r a l . ' ,   ' b e w a r e   t h e   f e r a l   c o w   p a c k s .   t h e y   h u n g e r . ' ,   ' C o n v e r t e d   b y   t h e   c o w s   o f   F e r a l   C o w   P o k e r ' ,   ' F e r a l   C o w   C o n v e r t e r :   B y   o l d   g u y s ,   f o r   o l d   g u y s ' 
 
 	 ] ; 
 
 	 r a n d _ n o   =   M a t h . f l o o r ( M a t h . r a n d o m ( )   *   ( t a g L i n e s . l e n g t h   -   1 ) ) ; 
 	 t h e L i n e   =   t a g L i n e s [ r a n d _ n o ] ; 
 
 	 r e t u r n   t h e L i n e ; 
 
 } 
 
 f u n c t i o n   H E M P a r s e A c t i o n   ( h a n d i n , t e x t , s t r e e t )   { 
 
 	 	 / / t h i s   f u n c t i o n   p a r s e s   t h e   a c t i o n   l i n e s   o n   e a c h   s t r e e t 
 
 	 	 l i n e s   =   t e x t . s p l i t ( /  %/ ) ; 
 	 	 
 	 	 h a n d i n . a c t i o n _ t y p e s [ s t r e e t ]   =   n e w   A r r a y ; 
 	 	 h a n d i n . a c t i o n _ p l a y e r s [ s t r e e t ]   =   n e w   A r r a y ; 
 	 	 h a n d i n . a c t i o n _ v a l u e s [ s t r e e t ]   =   n e w   A r r a y ; 
 	 	 h a n d i n . a c t i o n _ a d d e d T o P o t [ s t r e e t ]   =   n e w   A r r a y ; 
 	 	 h a n d i n . a c t i o n _ a d d e d T o P o t [ s t r e e t ]   =   0 ; 
 	 	 
 	 	 / / l o o p   t h r o u g h   a c t i o n   l i n e s 
 	 	 p l a y e r C o u n t   =   0 ; 
 	 	 c u r r e n t M a x B e t   =   0 ; 
 	 	 
 	 	 f o r ( i   =   0 ;   i   <   l i n e s . l e n g t h ;   i   =   i   +   1 )   { 
 	 	 	 
 	 	 	 / / s k i p   t h e   l i n e s   t h a t   h a v e   s t u f f   w e   d o n ' t   w a n t   t o   t r e a t   a s   a c t i o n 
 	 	 	 i f   ( ! l i n e s [ i ] . m a t c h ( / D e a l t   t o / )   & &   ! l i n e s [ i ] . m a t c h ( / \ * / )   & &   ! l i n e s [ i ] . m a t c h ( / d o e s n \ ' t / ) )   {   / / ' 
 	 	 	 	 
 	 	 	 	 i f   ( l i n e s [ i ] . m a t c h ( /   w i n s / ) )   { 
 	 	 	 	 
 	 	 	 	 	 / / i f   t h e r e   i s   a n   u n c a l l e d   b e t ,   s u b t r a c t   t h a t   a m o u n t   f r o m   t h e   p o t 
 	 	 	 	 	 r e g e x s t r i n g   =   / ( . * )   w i n s   [ \ $ ] ? ( [ \ d | \ . | \ , ] + ) / ; 
 	 	 	 	 	 r e s u l t   =   l i n e s [ i ] . m a t c h ( r e g e x s t r i n g ) ; 
 	 	 	 	 	 i f   ( r e s u l t )   { 
 	 	 	 	 	 	 u n c a l l e d A m o u n t   =   r e s u l t [ 2 ] ; 
 	 	 	 	 	 	 u n c a l l e d P l a y e r   =   r e s u l t [ 1 ] ; 
 	 	 	 	 	 	 	 	 	 	 
 	 	 	 	 	 	 h a n d i n . a c t i o n _ a d d e d T o P o t [ s t r e e t ]   =   p a r s e F l o a t ( h a n d i n . a c t i o n _ a d d e d T o P o t [ s t r e e t ] )   -   p a r s e F l o a t ( u n c a l l e d A m o u n t ) ; 
 	 	 	 	 	 } 
 	 	 	 	 }   e l s e   { 
 
 	 	 	 	 	 
 	 	 	 	 	 / / g e t   a c t i o n   n a m e s 
 	 	 	 	 	 r e s u l t = l i n e s [ i ] . m a t c h ( / ( . * )   ( ? : f o l d s | r a i s e s | c a l l s | b e t s | c h e c k s ) / ) ; 
 	 	 	 	 	 i f   ( r e s u l t )   { h a n d i n . a c t i o n _ p l a y e r s [ s t r e e t ] [ p l a y e r C o u n t ]   =   r e s u l t [ 1 ] ; } 
 	 	 	 	 	 
 	 	 	 	 	 / / g e t   a c t i o n   t y p e s 
 	 	 	 	 	 r e s u l t = l i n e s [ i ] . m a t c h ( / ( ( ? : f o l d s | r a i s e s | c a l l s | b e t s | c h e c k s ) ) / ) ; 
 	 	 	 	 	 i f   ( r e s u l t )   { h a n d i n . a c t i o n _ t y p e s [ s t r e e t ] [ p l a y e r C o u n t ]   =   r e s u l t [ 1 ] ; } 
 	 	 	 	 	 
 	 	 	 	 	 i f   ( l i n e s [ i ] . m a t c h ( / ( ( ? : f o l d s | r a i s e s | c a l l s | b e t s | c h e c k s ) ) / ) )   { 
 	 	 	 	 	 	 / / g e t   a c t i o n   v a l u e s 
 	 	 	 	 	 	 r e g e x s t r i n g = / \ [ [ \ $ ] ? ( [ \ d | \ . | \ , ] + ) . * \ ] / ; 
 	 	 	 	 	 	 r e s u l t = l i n e s [ i ] . m a t c h ( r e g e x s t r i n g ) ; 
 	 	 	 	 	 	 i f   ( r e s u l t )   { 
 	 	 	 	 	 	 	 h a n d i n . a c t i o n _ v a l u e s [ s t r e e t ] [ p l a y e r C o u n t ]   =   r e s u l t [ 1 ] ; 
 	 	 	 	 	 	 	 a c t i o n D i g i t s   =   g e t P r e c i s i o n ( h a n d i n . a c t i o n _ v a l u e s [ s t r e e t ] [ p l a y e r C o u n t ] ) ; 	 
 	 	 	 	 	 	 }   e l s e   i f   ( h a n d i n . a c t i o n _ t y p e s [ s t r e e t ] [ p l a y e r C o u n t ]   = =   ' d i s c a r d s ' )   { 
 	 	                                         / /   d i s c a r d s 
 	 	                                         r e g e x s t r i n g = / d i s c a r d s   ( \ d + ) / ; 
 	 	                                         r e s u l t = l i n e s [ i ] . m a t c h ( r e g e x s t r i n g ) ; 
 	 	                                         i f   ( r e s u l t )   { 
 	 	                                                 h a n d i n . a c t i o n _ v a l u e s [ s t r e e t ] [ p l a y e r C o u n t ]   =   r e s u l t [ 1 ] ; 
 	 	                                         } 
 	                                 	 }       	 	 	 	 	 
 	 	 	 	 	 	 / / g e t   $   a d d e d   t o   p o t 
 	 	 	 	 	 	 i f   ( h a n d i n . a c t i o n _ v a l u e s [ s t r e e t ] [ p l a y e r C o u n t ] ) { 
 	 	 	 	 	 	 	 
 	 	 	 	 	 	 	 p l a y e r I n d e x   =   f i n d I n d e x ( h a n d i n . p l a y e r s , h a n d i n . a c t i o n _ p l a y e r s [ s t r e e t ] [ p l a y e r C o u n t ] ) ; 	 	 	 	 	 
 	 	 	 	 	 	 	 
 	 	 	 	 	 	 	 i f   ( h a n d i n . a c t i o n _ t y p e s [ s t r e e t ] [ p l a y e r C o u n t ]   = =   ' r a i s e s ' ) { 
 	 	 	 	 	 	 	 	 	 
 	 	 	 	 	 	 	 	 	 n e w v a l   =   p a r s e F l o a t ( h a n d i n . a c t i o n _ v a l u e s [ s t r e e t ] [ p l a y e r C o u n t ] )   +   p a r s e F l o a t ( h a n d i n . a c t i o n _ p l a y e r s P o t [ p l a y e r I n d e x ] ) ; 
 	 	 	 	 	 	 	 	 	 h a n d i n . a c t i o n _ p l a y e r s P o t [ p l a y e r I n d e x ]   =   n e w v a l ; 
 	 	 	 	 	 	 	 	 	 h a n d i n . a c t i o n _ a d d e d T o P o t [ s t r e e t ]   =   p a r s e F l o a t ( h a n d i n . a c t i o n _ a d d e d T o P o t [ s t r e e t ] )   +   p a r s e F l o a t ( h a n d i n . a c t i o n _ v a l u e s [ s t r e e t ] [ p l a y e r C o u n t ] ) ; 
 	 	 	 	 	 	 	 	 	 h a n d i n . a c t i o n _ v a l u e s [ s t r e e t ] [ p l a y e r C o u n t ]   =   n e w v a l . t o F i x e d ( a c t i o n D i g i t s ) ; 
 	 	 	 	 	 	 	 	 
 	 	 	 	 	 	 	 	 
 	 	 	 	 	 	 	 
 	 	 	 	 	 	 	 }   e l s e   { 
 	 	 	 	 	 	 	 	 / / f o r   b e t s   a n d   c a l l s   j u s t   a d d   t h e   a m o u n t   b e t   o r   c a l l e d 
 	 	 	 	 	 	 	 	 n e w v a l   =   p a r s e F l o a t ( h a n d i n . a c t i o n _ p l a y e r s P o t [ p l a y e r I n d e x ] )   +   p a r s e F l o a t ( h a n d i n . a c t i o n _ v a l u e s [ s t r e e t ] [ p l a y e r C o u n t ] ) ; 
 	 	 	 	 	 	 	 	 h a n d i n . a c t i o n _ p l a y e r s P o t [ p l a y e r I n d e x ]   =   n e w v a l ; 
 	 	 	 	 	 	 	 	 h a n d i n . a c t i o n _ a d d e d T o P o t [ s t r e e t ]   =   p a r s e F l o a t ( h a n d i n . a c t i o n _ a d d e d T o P o t [ s t r e e t ] )   +   p a r s e F l o a t ( h a n d i n . a c t i o n _ v a l u e s [ s t r e e t ] [ p l a y e r C o u n t ] ) ; 
 	 	 	 	 	 	 	 	 
 	 	 	 	 	 	 	 	 
 	 	 	 	 	 	 	 } 
 	 	 	 	 	 	 
 	 	 	 	 	 	 } 
 	 	 	 	 	 } 
 	 	 	 	 	 / / d e a l   w i t h   a c t i o n   e n d i n g   a n d   s o m e o n e   c o l l e c t i n g 
 	 	 	 	 	 i f   ( l i n e s [ i ] . m a t c h ( /   w i n s / ) )   { 
 	 	 	 	 	 	 r e s u l t   =   l i n e s [ i ] . m a t c h ( / ( . + )   w i n s / ) ; 
 	 	 	 	 	 	 i f   ( r e s u l t )   { h a n d i n . a c t i o n _ p l a y e r s [ s t r e e t ] [ p l a y e r C o u n t ]   =   r e s u l t [ 1 ] ; } 
 	 	 	 	 	 	 
 	 	 	 	 	 	 h a n d i n . a c t i o n _ t y p e s [ s t r e e t ] [ p l a y e r C o u n t ]   =   ' c o l l e c t e d ' ; 
 	 	 	 	 	 	 
 	 	 	 	 	 	 r e g e x s t r i n g   =   / w i n s   [ \ $ ] ? ( [ \ d | \ . | \ , ] + ) / ; 
 	 	 	 	 	 	 	 
 	 	 	 	 	 	 r e s u l t = l i n e s [ i ] . m a t c h ( r e g e x s t r i n g ) ; 
 	 	 	 	 	 	 i f   ( r e s u l t )   { h a n d i n . a c t i o n _ v a l u e s [ s t r e e t ] [ p l a y e r C o u n t ]   =   r e s u l t [ 1 ] ; } 
 	 	 	 	 	 } 
 	 	 	 	 	 
 	 	 	 	 	 p l a y e r C o u n t   =   p l a y e r C o u n t   +   1 ; 
 	 	 	 	 } 
 	 	 	 	 
 	 	 	 	 
 	 	 	 	 
 	 	 	 } 
 	 	 
 	 	 } 
 
 	 	 r e t u r n   h a n d i n ; 
 } 
 
 
 f u n c t i o n   p o k e r S t a r s P a r s e A c t i o n   ( h a n d i n , t e x t , s t r e e t )   { 
 
 	 	 / / t h i s   f u n c t i o n   p a r s e s   t h e   a c t i o n   l i n e s   o n   e a c h   s t r e e t 
 
 	 	 l i n e s   =   t e x t . s p l i t ( /  %/ ) ; 
 	 	 
 	 	 h a n d i n . a c t i o n _ t y p e s [ s t r e e t ]   =   n e w   A r r a y ; 
 	 	 h a n d i n . a c t i o n _ p l a y e r s [ s t r e e t ]   =   n e w   A r r a y ; 
 	 	 h a n d i n . a c t i o n _ v a l u e s [ s t r e e t ]   =   n e w   A r r a y ; 
 	 	 h a n d i n . a c t i o n _ a d d e d T o P o t [ s t r e e t ]   =   n e w   A r r a y ; 
 	 	 h a n d i n . a c t i o n _ a d d e d T o P o t [ s t r e e t ]   =   0 ; 
 	 	 
 	 	 / / l o o p   t h r o u g h   a c t i o n   l i n e s 
 	 	 p l a y e r C o u n t   =   0 ; 
 	 	 f o r ( i   =   0 ;   i   <   l i n e s . l e n g t h ;   i   =   i   +   1 )   { 
 	 	 	 
 	 	 	 / / s k i p   t h e   l i n e s   t h a t   h a v e   s t u f f   w e   d o n ' t   w a n t   t o   t r e a t   a s   a c t i o n 
 	 	 	 i f   ( ! l i n e s [ i ] . m a t c h ( / D e a l t   t o / )   & &   ! l i n e s [ i ] . m a t c h ( / \ * / )   & &   ! l i n e s [ i ] . m a t c h ( / d o e s n \ ' t / ) )   {   / / ' 
 	 	 	 	 
 	 	 	 	 i f   ( l i n e s [ i ] . m a t c h ( / U n c a l l e d   b e t / ) )   { 
 	 	 	 	 
 	 	 	 	 	 / / i f   t h e r e   i s   a n   u n c a l l e d   b e t ,   s u b t r a c t   t h a t   a m o u n t   f r o m   t h e   p o t 
 	 	 	 	 	 i f   ( h a n d i n . g a m e T y p e   = =   " C " )   { r e g e x s t r i n g   =   / U n c a l l e d   b e t   \ ( \ $ ( \ S + ) \ )   r e t u r n e d   t o   ( . * ) / ; } 
 	 	 	 	 	 e l s e   { r e g e x s t r i n g   =   / U n c a l l e d   b e t   \ ( ( \ S + ) \ )   r e t u r n e d   t o   ( . * ) / ; } 
 	 	 	 	 	 r e s u l t   =   l i n e s [ i ] . m a t c h ( r e g e x s t r i n g ) ; 
 	 	 	 	 	 i f   ( r e s u l t )   { 
 	 	 	 	 	 	 u n c a l l e d A m o u n t   =   r e s u l t [ 1 ] ; 
 	 	 	 	 	 	 u n c a l l e d P l a y e r   =   r e s u l t [ 2 ] ; 
 	 	 	 	 	 	 	 	 	 	 
 	 	 	 	 	 	 h a n d i n . a c t i o n _ a d d e d T o P o t [ s t r e e t ]   =   p a r s e F l o a t ( h a n d i n . a c t i o n _ a d d e d T o P o t [ s t r e e t ] )   -   p a r s e F l o a t ( u n c a l l e d A m o u n t ) ; 
 	 	 	 	 	 } 
 	 	 	 	 }   e l s e   { 
 
 	 	 	 	 
 	 	 	 	 	 / / g e t   a c t i o n   n a m e s 
 	 	 	 	 	 r e s u l t = l i n e s [ i ] . m a t c h ( / ( . * ) \ :   / ) ; 
 	 	 	 	 	 i f   ( r e s u l t )   { h a n d i n . a c t i o n _ p l a y e r s [ s t r e e t ] [ p l a y e r C o u n t ]   =   r e s u l t [ 1 ] ; } 
 	 	 	 	 	 
 	 	 	 	 	 / / g e t   a c t i o n   t y p e s 
 	 	 	 	 	 r e s u l t = l i n e s [ i ] . m a t c h ( / \ :   ( \ S * ) / ) ; 
 	 	 	 	 	 i f   ( r e s u l t )   { h a n d i n . a c t i o n _ t y p e s [ s t r e e t ] [ p l a y e r C o u n t ]   =   r e s u l t [ 1 ] ; } 
 	 	 	 	 	 
 	 	 	 	 	 / / g e t   a c t i o n   v a l u e s 
 	 	 	 	 	 r e g e x s t r i n g   =   / ( ? : c h e c k s | r a i s e s | b e t s | f o l d s | c a l l s )   [ \ $ ] ? ( . + ) / ; 
 	 	 	 	 	 r e s u l t = l i n e s [ i ] . m a t c h ( r e g e x s t r i n g ) ; 
 	 	 	 	 	 i f   ( r e s u l t )   { h a n d i n . a c t i o n _ v a l u e s [ s t r e e t ] [ p l a y e r C o u n t ]   =   r e s u l t [ 1 ] ; 
 	 	 	 	 	 
 	 	 	 	 	 }   e l s e   i f   ( h a n d i n . a c t i o n _ t y p e s [ s t r e e t ] [ p l a y e r C o u n t ]   = =   ' d i s c a r d s ' )   { 
 	                                         / /   d i s c a r d s 
 	                                         r e g e x s t r i n g = / d i s c a r d s   ( \ d + ) / ; 
 	                                         r e s u l t = l i n e s [ i ] . m a t c h ( r e g e x s t r i n g ) ; 
 	                                         i f   ( r e s u l t )   { 
 	                                                 h a n d i n . a c t i o n _ v a l u e s [ s t r e e t ] [ p l a y e r C o u n t ]   =   r e s u l t [ 1 ] ; 
 	                                         } 
                                 	 }       	 	 	 	 	 
 	 	 	 	 	 / / g e t   $   a d d e d   t o   p o t 
 	 	 	 	 	 i f   ( h a n d i n . a c t i o n _ v a l u e s [ s t r e e t ] [ p l a y e r C o u n t ] ) { 
 	 	 	 	 	 	 
 	 	 	 	 	 	 / / p l a y e r I n d e x   =   h a n d i n . p l a y e r s . i n d e x O f ( h a n d i n . a c t i o n _ p l a y e r s [ s t r e e t ] [ p l a y e r C o u n t ] ) ; 
 	 	 	 	 	 	 p l a y e r I n d e x   =   f i n d I n d e x ( h a n d i n . p l a y e r s , h a n d i n . a c t i o n _ p l a y e r s [ s t r e e t ] [ p l a y e r C o u n t ] ) ; 	 	 	 	 	 
 	 	 	 	 	 	 
 	 	 	 	 	 	 i f   ( h a n d i n . a c t i o n _ t y p e s [ s t r e e t ] [ p l a y e r C o u n t ]   = =   ' r a i s e s ' ) { 
 	 	 	 	 	 	 	 / / f o r   r a i s e s ,   w e   h a v e   t o   s u b t r a c t   a m o u n t   a l r e a d y   b e t   b y   t h e   s a m e   p l a y e r 
 	 	 	 	 	 	 	 r e g e x s t r i n g   =   / t o   [ \ $ ] ? ( [ \ d | , | \ . ] + ) / ; 
 	 	 	 	 	 	 	 r e s u l t = h a n d i n . a c t i o n _ v a l u e s [ s t r e e t ] [ p l a y e r C o u n t ] . m a t c h ( r e g e x s t r i n g ) ; 
 	 	 	 	 	 	 	 i f   ( r e s u l t )   { n e w v a l   =   p a r s e F l o a t ( r e s u l t [ 1 ] )   -   p a r s e F l o a t ( h a n d i n . a c t i o n _ p l a y e r s P o t [ p l a y e r I n d e x ] ) ; 
 	 	 	 	 	 	 	 	 h a n d i n . a c t i o n _ p l a y e r s P o t [ p l a y e r I n d e x ]   =   n e w v a l ; 
 	 	 	 	 	 	 	 	 h a n d i n . a c t i o n _ a d d e d T o P o t [ s t r e e t ]   =   p a r s e F l o a t ( h a n d i n . a c t i o n _ a d d e d T o P o t [ s t r e e t ] )   +   p a r s e F l o a t ( n e w v a l ) ; 
 	 	 	 	 	 	 	 	 / / t a k e   o f   b e g i n n i n g   f o r   f o r m a t t i n g 
 	 	 	 	 	 	 	 	 r e s u l t   =   h a n d i n . a c t i o n _ v a l u e s [ s t r e e t ] [ p l a y e r C o u n t ] . m a t c h ( / t o   [ \ $ ] ? ( . * ) / ) ; 
 	 	 	 	 	 	 	 	 i f   ( r e s u l t )   { h a n d i n . a c t i o n _ v a l u e s [ s t r e e t ] [ p l a y e r C o u n t ]   =   r e s u l t [ 1 ] ; } 
 	 	 	 	 	 	 	   } 
 	 	 	 	 	 	 
 	 	 	 	 	 	 }   e l s e   i f   ( ( h a n d i n . a c t i o n _ t y p e s [ s t r e e t ] [ p l a y e r C o u n t ]   = =   ' b e t s ' )   | |   ( h a n d i n . a c t i o n _ t y p e s [ s t r e e t ] [ p l a y e r C o u n t ]   = =   ' c a l l s ' ) )   { 
 	 	 	 	 	 	         
 	 	 	 	 	 	 	 / / f o r   b e t s   a n d   c a l l s   j u s t   a d d   t h e   a m o u n t   b e t   o r   c a l l e d 
 	 	 	 	 	 	 	 r e g e x s t r i n g   =   / [ \ $ ] ? ( [ \ d | , | \ . ] + ) / ; 
 	 	 	 	 	 	 	 r e s u l t = h a n d i n . a c t i o n _ v a l u e s [ s t r e e t ] [ p l a y e r C o u n t ] . m a t c h ( r e g e x s t r i n g ) ; 
 	 	 	 	 	 	 	 i f   ( r e s u l t )   { 
 	 	 	 	 	 	 	 	 n e w v a l   =   p a r s e F l o a t ( h a n d i n . a c t i o n _ p l a y e r s P o t [ p l a y e r I n d e x ] )   +   p a r s e F l o a t ( r e s u l t [ 1 ] ) ; 
 	 	 	 	 	 	 	 	 h a n d i n . a c t i o n _ p l a y e r s P o t [ p l a y e r I n d e x ]   =   n e w v a l ; 
 	 	 	 	 	 	 	 	 h a n d i n . a c t i o n _ a d d e d T o P o t [ s t r e e t ]   =   p a r s e F l o a t ( h a n d i n . a c t i o n _ a d d e d T o P o t [ s t r e e t ] )   +   p a r s e F l o a t ( r e s u l t [ 1 ] ) ; 
 	 	 	 	 	 	 	 } 
 	 	 	 	 	 	 	 
 	 	 	 	 	 	 	 
 	 	 	 	 	 	 } 
 	 	 	 	 	 
 	 	 	 	 	 } 
 	 	 	 	 	 / / d e a l   w i t h   a c t i o n   e n d i n g   a n d   s o m e o n e   c o l l e c t i n g 
 	 	 	 	 	 i f   ( l i n e s [ i ] . m a t c h ( / c o l l e c t e d / ) )   { 
 	 	 	 	 	 	 r e s u l t   =   l i n e s [ i ] . m a t c h ( / ( . + )   c o l l e c t e d / ) ; 
 	 	 	 	 	 	 i f   ( r e s u l t )   { h a n d i n . a c t i o n _ p l a y e r s [ s t r e e t ] [ p l a y e r C o u n t ]   =   r e s u l t [ 1 ] ; } 
 	 	 	 	 	 	 h a n d i n . a c t i o n _ t y p e s [ s t r e e t ] [ p l a y e r C o u n t ]   =   ' c o l l e c t e d ' ; 
 	 	 	 	 	 	 
 	 	 	 	 	 	 r e g e x s t r i n g   =   / c o l l e c t e d   [ \ $ ] ? ( [ \ d | , | \ . ] + )   f r o m / ; 
 	 	 	 	 	 	 r e s u l t = l i n e s [ i ] . m a t c h ( r e g e x s t r i n g ) ; 
 	 	 	 	 	 	 i f   ( r e s u l t )   { h a n d i n . a c t i o n _ v a l u e s [ s t r e e t ] [ p l a y e r C o u n t ]   =   r e s u l t [ 1 ] ; } 
 	 	 	 	 	 	 
 	 	 	 	 	 } 
 	 	 	 	 	 
 	 	 	 	 	 p l a y e r C o u n t   =   p l a y e r C o u n t   +   1 ; 
 	 	 	 	 } 
 	 	 	 	 
 	 	 	 	 
 	 	 	 	 
 	 	 	 } 
 	 	 
 	 	 } 
 
 	 	 r e t u r n   h a n d i n ; 
 } 
 
 
 f u n c t i o n   f t p P a r s e A c t i o n ( h a n d i n ,   t e x t ,   s t r e e t )   { 
 
 	 / / t h i s   f u n c t i o n   p a r s e s   t h e   a c t i o n   l i n e s   o n   e a c h   s t r e e t 
 	 l i n e s   =   t e x t . s p l i t ( /  %/ ) ; 
 
 	 h a n d i n . a c t i o n _ t y p e s [ s t r e e t ]   =   n e w   A r r a y ; 
 	 h a n d i n . a c t i o n _ p l a y e r s [ s t r e e t ]   =   n e w   A r r a y ; 
 	 h a n d i n . a c t i o n _ v a l u e s [ s t r e e t ]   =   n e w   A r r a y ; 
 	 h a n d i n . a c t i o n _ a d d e d T o P o t [ s t r e e t ]   =   n e w   A r r a y ; 
 	 h a n d i n . a c t i o n _ a d d e d T o P o t [ s t r e e t ]   =   0 ; 
 
 	 / / l o o p   t h r o u g h   a c t i o n   l i n e s 
 	 p l a y e r C o u n t   =   0 ; 
 	 f o r   ( i   =   0 ;   i   <   l i n e s . l e n g t h ;   i   =   i   +   1 )   { 
 
 	 	 / / s k i p   t h e   l i n e s   t h a t   h a v e   s t u f f   w e   d o n ' t   w a n t   t o   t r e a t   a s   a c t i o n 	 	 	 
 	 	 i f   ( ! l i n e s [ i ] . m a t c h ( / ( ? : D e a l t   t o | \ * | d o e s n \ ' t | b l i n d s | \ : | m u c k s | s i t t i n g   o u t | a d d s | d i s c o n n e c t e d | r e c o n n e c t e d | s e c o n d s | s t a n d s   u p | h a s   r e t u r n e d | i s   d e a l t ) / ) )   {   / / ' 
 	 	 	 i f   ( l i n e s [ i ] . m a t c h ( / U n c a l l e d   b e t / ) )   { 
 	 	 	 	 	 	 	 	 
 	 	 	 	 / / i f   t h e r e   i s   a n   u n c a l l e d   b e t ,   s u b t r a c t   t h a t   a m o u n t   f r o m   t h e   p o t 
 	 	 	 	 r e g e x s t r i n g   =   / U n c a l l e d   b e t   o f   [ ? : \ $ ] ( [ \ d | , | \ . ] + )   r e t u r n e d   t o   ( . * ) / ; 
 	 	 	 	 
 	 	 	 	 r e s u l t   =   l i n e s [ i ] . m a t c h ( r e g e x s t r i n g ) ; 
 	 	 	 	 i f   ( r e s u l t )   { 
 	 	 	 	 	 u n c a l l e d A m o u n t   =   r e s u l t [ 1 ] ; 
 	 	 	 	 	 u n c a l l e d P l a y e r   =   r e s u l t [ 2 ] ; 
 	 	 	 	 	 h a n d i n . a c t i o n _ a d d e d T o P o t [ s t r e e t ]   =   c l e a n N u m ( h a n d i n . a c t i o n _ a d d e d T o P o t [ s t r e e t ] )   -   c l e a n N u m ( u n c a l l e d A m o u n t ) ; 
 	 	 	 	 	 	 
 	 	 	 	 } 
 	 	 	 }   e l s e   { 
 
 	 	 	 	 / / g e t   a c t i o n   n a m e s 
 	 	 	 	 r e s u l t   =   l i n e s [ i ] . m a t c h ( / ( . * ? )   ( c h e c k s | r a i s e s | b e t s | f o l d s | c a l l s | d i s c a r d s | c o m p l e t e s   i t   t o ) / ) ; 
 	 	 	 	 i f   ( r e s u l t )   { 
 	 	 	 	 	 h a n d i n . a c t i o n _ p l a y e r s [ s t r e e t ] [ p l a y e r C o u n t ]   =   r e s u l t [ 1 ] ; 
 	 	 	 	 } 
 
 	 	 	 	 / / g e t   a c t i o n   t y p e s 
 	 	 	 	 r e s u l t   =   l i n e s [ i ] . m a t c h ( /   ( c h e c k s | r a i s e s | b e t s | f o l d s | c a l l s | c o m p l e t e s   i t   t o ) / ) ; 
 	 	 	 	 i f   ( r e s u l t )   { 
 	 	 	 	 	 h a n d i n . a c t i o n _ t y p e s [ s t r e e t ] [ p l a y e r C o u n t ]   =   r e s u l t [ 1 ] ; 
 	 	 	 	 }   e l s e   { 
 	 	 	 	 	 r e s u l t   =   l i n e s [ i ] . m a t c h ( /   d i s c a r d s   ( \ d + ) / ) ;   
 	 	 	 	 	 i f   ( r e s u l t )   { 
 	 	 	 	 	         
 	 	 	 	 	 	 h a n d i n . a c t i o n _ t y p e s [ s t r e e t ] [ p l a y e r C o u n t ]   =   ' d i s c a r d s ' ; 
 	 	 	 	 	 	 h a n d i n . a c t i o n _ v a l u e s [ s t r e e t ] [ p l a y e r C o u n t ]   =   r e s u l t [ 1 ] ; 
 	 	 	 	 	 	 
 	 	 	 	 	 } 
 	 	 	 	 	 
 	 	 	 	 } 
 
 
 
 	 	 	 	 / / g e t   a c t i o n   v a l u e s 
 	 	 	 	 r e g e x s t r i n g   =   /   ( ? : c h e c k s | r a i s e s | b e t s | f o l d s | c a l l s | c o m p l e t e s   i t   t o )   [ \ $ ] ? ( . + ) / ; 
 	 	 	 	 / / 	 e l s e   { r e g e x s t r i n g = /   ( ? : c h e c k s | r a i s e s   t o | b e t s | f o l d s | c a l l s )   ( . + ) / ; } 
 	 	 	 	 r e s u l t   =   l i n e s [ i ] . m a t c h ( r e g e x s t r i n g ) ; 
 	 	 	 	 i f   ( r e s u l t )   { 
 	 	 	 	 	 h a n d i n . a c t i o n _ v a l u e s [ s t r e e t ] [ p l a y e r C o u n t ]   =   r e s u l t [ 1 ] ; 
 	 	 	 	 } 
 
 	 	 	 	 
 	 	 	 	 / / a d j u s t   f o r   l h e 
 	 	 	 	 i f   ( h a n d i n . g a m e S h o r t   = =   " L H E " )   { 
 	 	 	 	 	 i f   ( h a n d i n . a c t i o n _ t y p e s [ s t r e e t ] [ p l a y e r C o u n t ]   = =   " r a i s e s " )   { 
 	 	 	 	 	 	 h a n d i n . a c t i o n _ v a l u e s [ s t r e e t ] [ p l a y e r C o u n t ]   =   " t o   "   +   h a n d i n . a c t i o n _ v a l u e s [ s t r e e t ] [ p l a y e r C o u n t ] ; 
 	 	 	 	 	 } 
 	 	 	 	 } 
 
 	 	 	 	 / / g e t   $   a d d e d   t o   p o t 
 	 	 	 	 i f   ( h a n d i n . a c t i o n _ v a l u e s [ s t r e e t ] [ p l a y e r C o u n t ] )   { 
 
 	 	 	 	 	 / / p l a y e r I n d e x   =   h a n d i n . p l a y e r s . i n d e x O f ( h a n d i n . a c t i o n _ p l a y e r s [ s t r e e t ] [ p l a y e r C o u n t ] ) ; 
 	 	 	 	 	 p l a y e r I n d e x   =   f i n d I n d e x ( h a n d i n . p l a y e r s ,   h a n d i n . a c t i o n _ p l a y e r s [ s t r e e t ] [ p l a y e r C o u n t ] ) ; 
 
 	 	 	 	 	 i f   ( h a n d i n . a c t i o n _ t y p e s [ s t r e e t ] [ p l a y e r C o u n t ]   = =   ' r a i s e s ' )   { 
 	 	 	 	 	 	 / / f o r   r a i s e s ,   w e   h a v e   t o   s u b t r a c t   a m o u n t   a l r e a d y   b e t   b y   t h e   s a m e   p l a y e r 
 	 	 	 	 	 	 
 	 	 	 	 	 	 r e s u l t   =   h a n d i n . a c t i o n _ v a l u e s [ s t r e e t ] [ p l a y e r C o u n t ] . m a t c h ( / t o   [ \ $ ] ? ( [ \ d | , | \ . ] + ) / ) ; 
 	 	 	 	 	 	 i f   ( r e s u l t )   { 
 	 	 	 	 	 	 	 n e w v a l   =   c l e a n N u m ( r e s u l t [ 1 ] )   -   c l e a n N u m ( h a n d i n . a c t i o n _ p l a y e r s P o t [ p l a y e r I n d e x ] ) ; 
 	 	 	 	 	 	 	 h a n d i n . a c t i o n _ p l a y e r s P o t [ p l a y e r I n d e x ]   =   n e w v a l ; 
 	 	 	 	 	 	 	 h a n d i n . a c t i o n _ a d d e d T o P o t [ s t r e e t ]   =   c l e a n N u m ( h a n d i n . a c t i o n _ a d d e d T o P o t [ s t r e e t ] )   +   c l e a n N u m ( n e w v a l ) ; 
 	 	 	 	 	 	 	 r e s u l t   =   h a n d i n . a c t i o n _ v a l u e s [ s t r e e t ] [ p l a y e r C o u n t ] . m a t c h ( / t o   [ \ $ ] ? ( . * ) / ) ; 
 	 	 	 	 	 	 	 i f   ( r e s u l t )   { h a n d i n . a c t i o n _ v a l u e s [ s t r e e t ] [ p l a y e r C o u n t ]   =   r e s u l t [ 1 ] ; } 
 	 	 	 	 	 	 } 
 
 	 	 	 	 	 }   e l s e   i f   ( h a n d i n . a c t i o n _ t y p e s [ s t r e e t ] [ p l a y e r C o u n t ]   = =   ' b e t s ' | | h a n d i n . a c t i o n _ t y p e s [ s t r e e t ] [ p l a y e r C o u n t ]   = =   ' c a l l s ' | | h a n d i n . a c t i o n _ t y p e s [ s t r e e t ] [ p l a y e r C o u n t ]   = =   ' c o m p l e t e s   i t   t o ' ) { 
 	 	 	 	 	 	 / / f o r   b e t s   a n d   c a l l s   j u s t   a d d   t h e   a m o u n t   b e t   o r   c a l l e d 
 	 	 	 	 	 	 r e g e x s t r i n g   =   / ( [ \ d | , | \ . ] + ) / ; 
 	 	 	 	 	 	 
 	 	 	 	 	 	 r e s u l t   =   h a n d i n . a c t i o n _ v a l u e s [ s t r e e t ] [ p l a y e r C o u n t ] . m a t c h ( r e g e x s t r i n g ) ; 
 	 	 	 	 	 	 i f   ( r e s u l t )   { 
 	 	 	 	 	 	 	 n e w v a l   =   c l e a n N u m ( h a n d i n . a c t i o n _ p l a y e r s P o t [ p l a y e r I n d e x ] )   +   c l e a n N u m ( r e s u l t [ 1 ] ) ; 
 	 	 	 	 	 	 	 h a n d i n . a c t i o n _ p l a y e r s P o t [ p l a y e r I n d e x ]   =   n e w v a l ; 
 	 	 	 	 	 	 	 h a n d i n . a c t i o n _ a d d e d T o P o t [ s t r e e t ]   =   c l e a n N u m ( h a n d i n . a c t i o n _ a d d e d T o P o t [ s t r e e t ] )   +   c l e a n N u m ( r e s u l t [ 1 ] ) ; 
 	 	 	 	 	 	 } 
 
 	 	 	 	 	 } 
 
 	 	 	 	 } 
 	 	 	 	 / / d e a l   w i t h   a c t i o n   e n d i n g   a n d   s o m e o n e   c o l l e c t i n g 
 	 	 	 	 i f   ( l i n e s [ i ] . m a t c h ( /   w i n s / ) )   { 
 	 	 	 	 	 / * 
 r e s u l t   =   l i n e s [ i ] . m a t c h ( / ( . + )   w i n s / ) ; 
 	 	 	 	 	 	 i f   ( r e s u l t )   { h a n d i n . a c t i o n _ p l a y e r s [ s t r e e t ] [ p l a y e r C o u n t ]   =   r e s u l t [ 1 ] ; } 
 	 	 	 	 	 	 
 	 	 	 	 	 	 h a n d i n . a c t i o n _ t y p e s [ s t r e e t ] [ p l a y e r C o u n t ]   =   ' c o l l e c t e d ' ; 
 	 	 	 	 	 	 
 	 	 	 	 	 	 i f   ( h a n d i n . g a m e T y p e   = =   " C " )   { r e g e x s t r i n g   =   / w i n s   t h e   p o t   \ ( ( \ $ . + ) \ ) / ; } 
 	 	 	 	 	 	 	 e l s e   { r e g e x s t r i n g = / w i n s   t h e   p o t   \ ( ( . + ) \ ) / ; } 
 	 	 	 	 	 	 r e s u l t = l i n e s [ i ] . m a t c h ( r e g e x s t r i n g ) ; 
 	 	 	 	 	 	 i f   ( r e s u l t )   { h a n d i n . a c t i o n _ v a l u e s [ s t r e e t ] [ p l a y e r C o u n t ]   =   r e s u l t [ 1 ] ; } 
 * / 
 
 	 	 	 	 } 
 
 	 	 	 	 p l a y e r C o u n t   =   p l a y e r C o u n t   +   1 ; 
 	 	 	 } 
 
 	 	 } 
 
 	 } 
 
 	 r e t u r n   h a n d i n ; 
 } 
 
 
 f u n c t i o n   c e r e u s P a r s e A c t i o n ( h a n d i n ,   t e x t ,   s t r e e t )   { 
 
 	 / / t h i s   f u n c t i o n   p a r s e s   t h e   a c t i o n   l i n e s   o n   e a c h   s t r e e t 
 	 l i n e s   =   t e x t . s p l i t ( /  %/ ) ; 
 
 	 h a n d i n . a c t i o n _ t y p e s [ s t r e e t ]   =   n e w   A r r a y ; 
 	 h a n d i n . a c t i o n _ p l a y e r s [ s t r e e t ]   =   n e w   A r r a y ; 
 	 h a n d i n . a c t i o n _ v a l u e s [ s t r e e t ]   =   n e w   A r r a y ; 
 	 h a n d i n . a c t i o n _ a d d e d T o P o t [ s t r e e t ]   =   n e w   A r r a y ; 
 	 h a n d i n . a c t i o n _ a d d e d T o P o t [ s t r e e t ]   =   0 ; 
 
 	 / / l o o p   t h r o u g h   a c t i o n   l i n e s 
 	 p l a y e r C o u n t   =   0 ; 
 	 f o r   ( i   =   0 ;   i   <   l i n e s . l e n g t h ;   i   =   i   +   1 )   { 
 
 	 	 / / s k i p   t h e   l i n e s   t h a t   h a v e   s t u f f   w e   d o n ' t   w a n t   t o   t r e a t   a s   a c t i o n 	 	 	 
 	 	 i f   ( ! l i n e s [ i ] . m a t c h ( / ( ? : D e a l t   t o | \ * | d o e s n \ ' t | \ [ | b l i n d s | \ : | m u c k s | s i t t i n g   o u t | a d d s ) / ) )   {   / / ' 
 	 	 	 i f   ( l i n e s [ i ] . m a t c h ( / U n c a l l e d   b e t / ) )   { 
 
 	 	 	 	 / / i f   t h e r e   i s   a n   u n c a l l e d   b e t ,   s u b t r a c t   t h a t   a m o u n t   f r o m   t h e   p o t 
 	 	 	 	 i f   ( h a n d i n . g a m e T y p e   = =   " C " )   { 
 	 	 	 	 	 / / r e g e x s t r i n g   =   / U n c a l l e d   b e t   \ ( \ $ ( \ S + ) \ )   r e t u r n e d   t o   ( . * ) / ; 
 	 	 	 	 	 r e g e x s t r i n g   =   / ( . * )   \ -   r e t u r n e d   \ ( \ $ ( \ S + ) \ )   \ :   n o t   c a l l e d / ; 
 	 	 	 	 } 
 	 	 	 	 e l s e   { 
 	 	 	 	 	 r e g e x s t r i n g   =   / ( . * )   \ -   r e t u r n e d   \ ( ( \ S + ) \ )   \ :   n o t   c a l l e d / ; 
 	 	 	 	 } 
 	 	 	 	 r e s u l t   =   l i n e s [ i ] . m a t c h ( r e g e x s t r i n g ) ; 
 	 	 	 	 i f   ( r e s u l t )   { 
 	 	 	 	 	 u n c a l l e d A m o u n t   =   r e s u l t [ 2 ] ; 
 	 	 	 	 	 u n c a l l e d P l a y e r   =   r e s u l t [ 1 ] ; 
 	 	 	 	 	 h a n d i n . a c t i o n _ a d d e d T o P o t [ s t r e e t ]   =   c l e a n N u m ( h a n d i n . a c t i o n _ a d d e d T o P o t [ s t r e e t ] )   -   c l e a n N u m ( u n c a l l e d A m o u n t ) ; 
 	 	 	 	 } 
 	 	 	 }   e l s e   { 
 
 	 	 	 	 / / g e t   a c t i o n   n a m e s 
 	 	 	 	 r e s u l t   =   l i n e s [ i ] . m a t c h ( / ( . * ? )   \ -   ( C h e c k s | R a i s e s | B e t s | F o l d s | C a l l s | A l l \ - I n ) / ) ; 
 	 	 	 	 i f   ( r e s u l t )   { 
 	 	 	 	 	 h a n d i n . a c t i o n _ p l a y e r s [ s t r e e t ] [ p l a y e r C o u n t ]   =   r e s u l t [ 1 ] ; 
 	 	 	 	 } 
 
 	 	 	 	 / / g e t   a c t i o n   t y p e s 
 	 	 	 	 r e s u l t   =   l i n e s [ i ] . m a t c h ( / \ -   ( C h e c k s | R a i s e s | B e t s | F o l d s | C a l l s | A l l \ - I n ) / ) ; 
 	 	 	 	 i f   ( r e s u l t )   { 
 	 	 	 	 	 h a n d i n . a c t i o n _ t y p e s [ s t r e e t ] [ p l a y e r C o u n t ]   =   r e s u l t [ 1 ] . t o L o w e r C a s e ( ) ; 
 	 	 	 	 } 
 
 	 	 	 	 / / g e t   a c t i o n   v a l u e s 
 	 	 	 	 i f   ( h a n d i n . g a m e T y p e   = =   " C " )   { 
 	 	 	 	 	 r e g e x s t r i n g   =   / \ $ ( . * ) / ; 
 	 	 	 	 } 
 	 	 	 	 e l s e   { 
 	 	 	 	 	 r e g e x s t r i n g   =   /   ( ? : C h e c k s | R a i s e s | B e t s | F o l d s | C a l l s | A l l \ - I n ) . * ?   ( . + ) / ; 
 	 	 	 	 } 
 	 	 	 	 r e s u l t   =   l i n e s [ i ] . m a t c h ( r e g e x s t r i n g ) ; 
 	 	 	 	 i f   ( r e s u l t )   { 
 	 	 	 	 	 h a n d i n . a c t i o n _ v a l u e s [ s t r e e t ] [ p l a y e r C o u n t ]   =   r e s u l t [ 1 ] ; 
 	 	 	 	 } 
 
 	 	 	 	 / / d e a l   w i t h   c e r e u s   a l l - i n   n o n s e n s e 
 	 	 	 	 i f   ( h a n d i n . a c t i o n _ t y p e s [ s t r e e t ] [ p l a y e r C o u n t ]   = =   ' a l l - i n ' )   { 
 	 	 	 	 	 	 	 	 	 	 
 	 	 	 	 	 i f   ( p l a y e r C o u n t   >   0 )   { 
 	 	 	 	 	 	 
 	 	 	 	 	 	 p r e v V a l u e   =   h a n d i n . a c t i o n _ v a l u e s [ s t r e e t ] [ p l a y e r C o u n t - 1 ] ; 
 	 	 	 	 	 	 c u r r e n t V a l u e   =   h a n d i n . a c t i o n _ v a l u e s [ s t r e e t ] [ p l a y e r C o u n t ] ; 
 	 	 	 	 	 	 
 	 	 	 	 	 	 
 	 	 	 	 	 	 
 	 	 	 	 	 	 i f   ( p r e v V a l u e )   { 
 	 	 	 	 	 
 	 	 	 	 	 	 	 
 	 	 	 	 	 	 	 i f   ( c l e a n N u m ( p r e v V a l u e )   <   c l e a n N u m ( c u r r e n t V a l u e ) )   { 
 	 	 	 	 	 	 	 	 h a n d i n . a c t i o n _ t y p e s [ s t r e e t ] [ p l a y e r C o u n t ]   =   ' r a i s e s ' ; 
 	 	 	 	 	 	 	 	 h a n d i n . a c t i o n _ v a l u e s [ s t r e e t ] [ p l a y e r C o u n t ]   =   h a n d i n . a c t i o n _ v a l u e s [ s t r e e t ] [ p l a y e r C o u n t ]   +   '   a n d   i s   a l l - i n ' ; 
 	 	 	 	 	 	 	 }   e l s e   { 
 	 	 	 	 	 	 	 	 h a n d i n . a c t i o n _ t y p e s [ s t r e e t ] [ p l a y e r C o u n t ]   =   ' c a l l s ' ; 
 	 	 	 	 	 	 	 	 h a n d i n . a c t i o n _ v a l u e s [ s t r e e t ] [ p l a y e r C o u n t ]   =   h a n d i n . a c t i o n _ v a l u e s [ s t r e e t ] [ p l a y e r C o u n t ]   +   '   a n d   i s   a l l - i n ' ; 
 	 	 	 	 	 	 	 
 	 	 	 	 	 	 	 } 
 	 	 	 	 	 	 }   e l s e   { 
 	 	 	 	 	 	 	 
 	 	 	 	 	 	 	 h a n d i n . a c t i o n _ t y p e s [ s t r e e t ] [ p l a y e r C o u n t ]   =   ' b e t s ' ; 
 	 	 	 	 	 	 	 h a n d i n . a c t i o n _ v a l u e s [ s t r e e t ] [ p l a y e r C o u n t ]   =   h a n d i n . a c t i o n _ v a l u e s [ s t r e e t ] [ p l a y e r C o u n t ]   +   '   a n d   i s   a l l - i n ' ; 
 
 	 	 	 	 	 	 } 
 	 	 	 	 	 }   e l s e   { 
 	 	 	 	 	 	 
 	 	 	 	 	 	 h a n d i n . a c t i o n _ t y p e s [ s t r e e t ] [ p l a y e r C o u n t ]   =   ' b e t s ' ; 
 	 	 	 	 	 	 h a n d i n . a c t i o n _ v a l u e s [ s t r e e t ] [ p l a y e r C o u n t ]   =   h a n d i n . a c t i o n _ v a l u e s [ s t r e e t ] [ p l a y e r C o u n t ]   +   '   a n d   i s   a l l - i n ' ; 
 	 	 	 	 	 } 
 	 	 	 	 
 	 	 	 	 } 
 	 	 	 
 	 	 	 	 / / g e t   $   a d d e d   t o   p o t 
 	 	 	 	 i f   ( h a n d i n . a c t i o n _ v a l u e s [ s t r e e t ] [ p l a y e r C o u n t ] )   { 
 
 	 	 	 	 	 / / p l a y e r I n d e x   =   h a n d i n . p l a y e r s . i n d e x O f ( h a n d i n . a c t i o n _ p l a y e r s [ s t r e e t ] [ p l a y e r C o u n t ] ) ; 
 	 	 	 	 	 p l a y e r I n d e x   =   f i n d I n d e x ( h a n d i n . p l a y e r s ,   h a n d i n . a c t i o n _ p l a y e r s [ s t r e e t ] [ p l a y e r C o u n t ] ) ; 
 
 	 	 	 	 	 i f   ( h a n d i n . a c t i o n _ t y p e s [ s t r e e t ] [ p l a y e r C o u n t ]   = =   ' r a i s e s ' )   { 
 	 	 	 	 	 	 
 	 	 	 	 	 	 / / f o r   r a i s e s ,   w e   h a v e   t o   s u b t r a c t   a m o u n t   a l r e a d y   b e t   b y   t h e   s a m e   p l a y e r 
 	 	 	 	 	 	 i f   ( h a n d i n . g a m e T y p e   = =   " C " )   { 
 	 	 	 	 	 	 	 r e g e x s t r i n g   =   / t o   \ $ ( . + ) / ; 
 	 	 	 	 	 	 } 
 	 	 	 	 	 	 e l s e   { 
 	 	 	 	 	 	 	 r e g e x s t r i n g   =   / t o   ( \ d + . * ) / ; 
 	 	 	 	 	 	 } 
 	 	 	 	 	 	 r e s u l t   =   h a n d i n . a c t i o n _ v a l u e s [ s t r e e t ] [ p l a y e r C o u n t ] . m a t c h ( r e g e x s t r i n g ) ; 
 	 	 	 	 	 	 i f   ( r e s u l t )   { 
 	 	 	 	 	 	 	 n e w v a l   =   c l e a n N u m ( r e s u l t [ 1 ] )   -   c l e a n N u m ( h a n d i n . a c t i o n _ p l a y e r s P o t [ p l a y e r I n d e x ] ) ; 
 	 	 	 	 	 	 	 h a n d i n . a c t i o n _ v a l u e s [ s t r e e t ] [ p l a y e r C o u n t ]   =   r e s u l t [ 1 ] ; 
 	 	 	 	 	 	 	 h a n d i n . a c t i o n _ p l a y e r s P o t [ p l a y e r I n d e x ]   =   n e w v a l ; 
 	 	 	 	 	 	 	 h a n d i n . a c t i o n _ a d d e d T o P o t [ s t r e e t ]   =   c l e a n N u m ( h a n d i n . a c t i o n _ a d d e d T o P o t [ s t r e e t ] )   +   c l e a n N u m ( n e w v a l ) ; 
 	 	 	 	 	 	 } 
 
 	 	 	 	 	 }   e l s e   { 
 	 	 	 	 	 	 / / f o r   b e t s   a n d   c a l l s   j u s t   a d d   t h e   a m o u n t   b e t   o r   c a l l e d 	 
 	 	 	 	 	 	 n e w v a l   =   c l e a n N u m ( h a n d i n . a c t i o n _ p l a y e r s P o t [ p l a y e r I n d e x ] )   +   c l e a n N u m ( h a n d i n . a c t i o n _ v a l u e s [ s t r e e t ] [ p l a y e r C o u n t ] ) ; 
 	 	 	 	 	 	 h a n d i n . a c t i o n _ p l a y e r s P o t [ p l a y e r I n d e x ]   =   n e w v a l ; 
 	 	 	 	 	 	 h a n d i n . a c t i o n _ a d d e d T o P o t [ s t r e e t ]   =   c l e a n N u m ( h a n d i n . a c t i o n _ a d d e d T o P o t [ s t r e e t ] )   +   c l e a n N u m ( h a n d i n . a c t i o n _ v a l u e s [ s t r e e t ] [ p l a y e r C o u n t ] ) ; 
 
 	 	 	 	 	 } 
 
 	 	 	 	 } 
 	 	 	 	 / / d e a l   w i t h   a c t i o n   e n d i n g   a n d   s o m e o n e   c o l l e c t i n g 
 	 	 	 	 i f   ( l i n e s [ i ] . m a t c h ( / w i n s / ) )   { 
 	 	 	 	 	 / * 
 r e s u l t   =   l i n e s [ i ] . m a t c h ( / ( . + )   w i n s / ) ; 
 	 	 	 	 	 	 i f   ( r e s u l t )   { h a n d i n . a c t i o n _ p l a y e r s [ s t r e e t ] [ p l a y e r C o u n t ]   =   r e s u l t [ 1 ] ; } 
 	 	 	 	 	 	 
 	 	 	 	 	 	 h a n d i n . a c t i o n _ t y p e s [ s t r e e t ] [ p l a y e r C o u n t ]   =   ' c o l l e c t e d ' ; 
 	 	 	 	 	 	 
 	 	 	 	 	 	 i f   ( h a n d i n . g a m e T y p e   = =   " C " )   { r e g e x s t r i n g   =   / w i n s   t h e   p o t   \ ( ( \ $ . + ) \ ) / ; } 
 	 	 	 	 	 	 	 e l s e   { r e g e x s t r i n g = / w i n s   t h e   p o t   \ ( ( . + ) \ ) / ; } 
 	 	 	 	 	 	 r e s u l t = l i n e s [ i ] . m a t c h ( r e g e x s t r i n g ) ; 
 	 	 	 	 	 	 i f   ( r e s u l t )   { h a n d i n . a c t i o n _ v a l u e s [ s t r e e t ] [ p l a y e r C o u n t ]   =   r e s u l t [ 1 ] ; } 
 * / 
 
 	 	 	 	 } 
 
 	 	 	 	 p l a y e r C o u n t   =   p l a y e r C o u n t   +   1 ; 
 	 	 	 } 
 
 	 	 } 
 
 	 } 
 
 	 r e t u r n   h a n d i n ; 
 } 
 
 f u n c t i o n   t i t a n P a r s e A c t i o n ( h a n d i n ,   t e x t ,   s t r e e t )   { 
 
 	 
 	 h a n d i n . a c t i o n _ t y p e s [ s t r e e t ]   =   n e w   A r r a y ; 
 	 h a n d i n . a c t i o n _ p l a y e r s [ s t r e e t ]   =   n e w   A r r a y ; 
 	 h a n d i n . a c t i o n _ v a l u e s [ s t r e e t ]   =   n e w   A r r a y ; 
 	 h a n d i n . a c t i o n _ a d d e d T o P o t [ s t r e e t ]   =   n e w   A r r a y ; 
 	 h a n d i n . a c t i o n _ a d d e d T o P o t [ s t r e e t ]   =   0 ; 
 	 
 	 c u r r e n t A c t i o n   =   h a n d i n . c u r r e n t A c t i o n   +   1 ; 
 	 m o r e T o G o   =   1 ; 
 	 a c t i o n T h i s S t r e e t   =   0 ; 
 	 m a x B e t   =   0 ; 
 	 w h i l e   ( m o r e T o G o )   { 
 	 
 	 	 
 	 	 m y R e g E x   =   n e w   R e g E x p ; 
 	 	 m y R e g E x . c o m p i l e ( ' ( a c t i o n   n o = \ " '   +   c u r r e n t A c t i o n   + ' \ " . * ? / > ) ' ) ; 
 	 	 r e s u l t   =   m y R e g E x . e x e c ( t e x t ) ; 
 	 	 i f ( r e s u l t )   { 
 	 	 	 t h i s A c t i o n   =   r e s u l t [ 1 ] ; 
 	 	 	 
 	 	 	 / / g e t   n a m e 
 	 	 	 n a m e   =   t h i s A c t i o n . m a t c h ( / p l a y e r = \ " ( . * ? ) \ " / ) ; 
 	 	 	 i f ( n a m e )   { h a n d i n . a c t i o n _ p l a y e r s [ s t r e e t ] [ a c t i o n T h i s S t r e e t ]   =   R e g E x p . $ 1 ; } 
 	 	 	 
 	 	 	 
 	 	 	 / / g e t   a c t i o n   t y p e 
 	 	 	 t y p e   =   t h i s A c t i o n . m a t c h ( / t y p e = \ " ( \ d + ) \ " / ) ; 
 	 	 	 i f   ( t y p e )   { 
 	 	 	 	 
 	 	 	 	 
 	 	 	 	 i f ( t y p e [ 1 ]   = =   0 )   { t y p e n a m e   =   " f o l d s " ; } 
 	 	 	 	 i f ( t y p e [ 1 ]   = =   3 )   { t y p e n a m e   =   " c a l l s " ; } 
 	 	 	 	 i f ( t y p e [ 1 ]   = =   4 )   { t y p e n a m e   =   " c h e c k s " ; } 
 	 	 	 	 i f ( t y p e [ 1 ]   = =   5 )   { t y p e n a m e   =   " b e t s " ; } 
 	 	 	 	 i f ( t y p e [ 1 ]   = =   7 )   { t y p e n a m e   =   " c a l l s   a l l - i n " ; } 
 	 	 	 	 i f ( t y p e [ 1 ]   = =   2 3 )   { t y p e n a m e   =   " r a i s e s " ; } 
 	 	 	 	 
 	 	 	 	 
 	 	 	 	 h a n d i n . a c t i o n _ t y p e s [ s t r e e t ] [ a c t i o n T h i s S t r e e t ]   =   t y p e n a m e ; 
 	 	 	 	 
 	 	 	 } 
 	 	 	 
 	 	 	 / / g e t   v a l u e s 
 	 	 	 i f   ( t y p e n a m e   ! =   " c h e c k s "   & &   t y p e n a m e   ! =   " f o l d s " )   { 
 	 	 	 	 v a l u e   =   t h i s A c t i o n . m a t c h ( / s u m = \ " . * ? ( [ \ d | , | \ . ] + ) \ " / ) ; 
 	 	 	 	 i f   ( v a l u e )   { h a n d i n . a c t i o n _ v a l u e s [ s t r e e t ] [ a c t i o n T h i s S t r e e t ]   =   v a l u e [ 1 ] ; } 
 	 	 	 } 
 	 	 	 
 	 	 	 / / s e t   m a x   b e t 
 	 	 	 i f   ( ( h a n d i n . a c t i o n _ t y p e s [ s t r e e t ] [ a c t i o n T h i s S t r e e t ]   = =   " b e t s " )   | |   ( h a n d i n . a c t i o n _ t y p e s [ s t r e e t ] [ a c t i o n T h i s S t r e e t ]   = =   " r a i s e s " ) )   { 
 	 	 	 	 m a x B e t   =   h a n d i n . a c t i o n _ v a l u e s [ s t r e e t ] [ a c t i o n T h i s S t r e e t ] ; 
 	 	 	 } 
 	 	 	 
 	 	 	 / / c a l c u l a t e   v a l u e   a d d e d   t o   p o t 
 	 	 	 i f   ( h a n d i n . a c t i o n _ v a l u e s [ s t r e e t ] [ a c t i o n T h i s S t r e e t ] )   { 
 	 	 	 	 
 	 	 	 	 	 p l a y e r I n d e x   =   f i n d I n d e x ( h a n d i n . p l a y e r s , h a n d i n . a c t i o n _ p l a y e r s [ s t r e e t ] [ a c t i o n T h i s S t r e e t ] ) ; 
 	 	 	 	 	 
 	 	 	 	 	 i f   ( h a n d i n . a c t i o n _ t y p e s [ s t r e e t ] [ a c t i o n T h i s S t r e e t ]   = =   ' r a i s e s ' ) { 
 	 	 	 	 	 	 
 	 	 	 	 	 	 / / f o r   r a i s e s ,   w e   h a v e   t o   s u b t r a c t   a m o u n t   a l r e a d y   b e t   b y   t h e   s a m e   p l a y e r 
 	 	 	 	 	 	 n e w v a l   =   p a r s e F l o a t ( h a n d i n . a c t i o n _ v a l u e s [ s t r e e t ] [ a c t i o n T h i s S t r e e t ] )   -   p a r s e F l o a t ( h a n d i n . a c t i o n _ p l a y e r s P o t [ p l a y e r I n d e x ] ) ;   
 	 	 	 	 	 	 h a n d i n . a c t i o n _ p l a y e r s P o t [ p l a y e r I n d e x ]   =   n e w v a l ; 
 	 	 	 	 	 	 h a n d i n . a c t i o n _ a d d e d T o P o t [ s t r e e t ]   =   p a r s e F l o a t ( h a n d i n . a c t i o n _ a d d e d T o P o t [ s t r e e t ] )   +   n e w v a l ; 	 	 	 	 	 	 
 	 	 	 	 	 	 
 	 	 	 	 	 }   e l s e   i f   (   h a n d i n . a c t i o n _ t y p e s [ s t r e e t ] [ a c t i o n T h i s S t r e e t ] . m a t c h ( / b e t s / )     )   { 
 	 	 	 	 	 
 	 	 	 	 	 	 / / f o r   b e t s   a n d   c a l l s   j u s t   a d d   t h e   a m o u n t   b e t   o r   c a l l e d 
 	 	 	 	 	 	 n e w v a l   =   p a r s e F l o a t ( h a n d i n . a c t i o n _ v a l u e s [ s t r e e t ] [ a c t i o n T h i s S t r e e t ] )   +   p a r s e F l o a t ( h a n d i n . a c t i o n _ p l a y e r s P o t [ p l a y e r I n d e x ] ) ;   
 	 	 	 	 	 	 h a n d i n . a c t i o n _ p l a y e r s P o t [ p l a y e r I n d e x ]   =   n e w v a l ; 
 	 	 	 	 	 	 
 	 	 	 	 	 	 h a n d i n . a c t i o n _ a d d e d T o P o t [ s t r e e t ]   =   p a r s e F l o a t ( h a n d i n . a c t i o n _ a d d e d T o P o t [ s t r e e t ] )   +   p a r s e F l o a t ( h a n d i n . a c t i o n _ v a l u e s [ s t r e e t ] [ a c t i o n T h i s S t r e e t ] ) ; 
 
 	 	 	 	 	 }   e l s e   i f   ( h a n d i n . a c t i o n _ t y p e s [ s t r e e t ] [ a c t i o n T h i s S t r e e t ] . m a t c h ( / c a l l s / ) )   { 
 	 	 	 	 	 
 	 	 	 	 	 	 / / f o r   c a l l s   a d d   t h e   a m o u n t   c a l l e d ,   m a k e   s u r e   i t   e q u a l s   m a x   b e t   f o r   a l l - i n   c o n t r o l 
 	 	 	 	 	 	 n e w v a l   =   p a r s e F l o a t ( h a n d i n . a c t i o n _ v a l u e s [ s t r e e t ] [ a c t i o n T h i s S t r e e t ] )   +   p a r s e F l o a t ( h a n d i n . a c t i o n _ p l a y e r s P o t [ p l a y e r I n d e x ] ) ;   
 	 	 	 	 	 	 
 	 	 	 	 	 	 e x t r a m o n e y   =   m a x B e t - n e w v a l ; 
 	 	 	 	 
 	 	 	 	 	 	 h a n d i n . a c t i o n _ p l a y e r s P o t [ p l a y e r I n d e x ]   =   n e w v a l ; 	 	 
 	 	 	 	 	 	 / / n o w ,   w e   c o u l d   s u b t r a c t   e x t r a m o n e y ,   b u t   T i t a n   i n c l u d e s   e v e r y t h i n g   b e t   i n   w h a t   i s   w o n ,   s o   f o r   n o w   w e   w o n ' t 	 
 	 	 	 	 	 	 h a n d i n . a c t i o n _ a d d e d T o P o t [ s t r e e t ]   =   p a r s e F l o a t ( h a n d i n . a c t i o n _ a d d e d T o P o t [ s t r e e t ] )   +   p a r s e F l o a t ( h a n d i n . a c t i o n _ v a l u e s [ s t r e e t ] [ a c t i o n T h i s S t r e e t ] ) ; 
 
 	 	 	 	 	 
 	 	 	 	 	 
 	 	 	 	 	 } 
 	 	 	 	 
 	 	 	 } 
 	 	 	 
 	 	 	 c u r r e n t A c t i o n   =   c u r r e n t A c t i o n   +   1 ; 	 	 	 
 	 	 	 a c t i o n T h i s S t r e e t   =   a c t i o n T h i s S t r e e t   +   1 ; 
 	 	 }   e l s e   { 
 	 	 
 	 	   m o r e T o G o   =   0 ; 
 	 	 } 
 	 	 
 	 	 
 	 } 
 	 h a n d i n . c u r r e n t A c t i o n   =   c u r r e n t A c t i o n - 1 ; 
 	 
 	 r e t u r n   h a n d i n ; 
 } 
 
 f u n c t i o n   c l e a n N u m ( n u m )   { 
 
 	 i f   ( n u m )   { 
 	 	 n u m   =   ' '   +   n u m ; 
 	 	 n u m   =   n u m . r e p l a c e ( / \ , / g ,   " " ) ; 
 	 	 n u m   =   p a r s e F l o a t ( n u m ) ; 
 	 } 
 	 r e t u r n   n u m ; 
 
 } 
 
 f u n c t i o n   f i n d I n d e x ( t h e A r r a y ,   t h e T a r g e t )   { 
 
 	 t a r g e t I n d e x   =   - 1 ; 
 
 	 f o r   ( x x   =   0 ;   x x   <   t h e A r r a y . l e n g t h ;   x x + + )   { 
 	 	 i f   ( t h e A r r a y [ x x ]   = =   t h e T a r g e t )   { 
 	 	 	 t a r g e t I n d e x   =   x x ; 
 	 	 } 
 	 } 
 
 	 
 	 r e t u r n   t a r g e t I n d e x ; 
 } 
 
 f u n c t i o n   e s c a p e T e x t ( s t r )   { 
 
 	 r e t u r n   ( s t r   +   ' ' ) . r e p l a c e ( / ( [ \ \ " ' \ ( \ ) ] ) / g ,   " \ \ $ 1 " ) . r e p l a c e ( / \ 0 / g ,   " \ \ 0 " ) ; 
 } 
 
 f u n c t i o n   a d d C o m m a s ( n S t r )   { 
 	 n S t r   + =   ' ' ; 
 	 u   =   n S t r . s p l i t ( ' . ' ) ; 
 	 x 1   =   u [ 0 ] ; 
 	 x 2   =   u . l e n g t h   >   1   ?   ' . '   +   u [ 1 ]   :   ' ' ; 
 	 v a r   r g x   =   / ( \ d + ) ( \ d { 3 } ) / ; 
 	 w h i l e   ( r g x . t e s t ( x 1 ) )   { 
 	 	 x 1   =   x 1 . r e p l a c e ( r g x ,   ' $ 1 '   +   ' , '   +   ' $ 2 ' ) ; 
 	 } 
 	 r e t u r n   x 1   +   x 2 ; 
 } 
 
 f u n c t i o n   g e t P r e c i s i o n ( n u m )   { 
 
 	 n u m S t r i n g   =   n u m . t o S t r i n g ( ) ; 
 	 
 	 r e s u l t   =   n u m S t r i n g . m a t c h ( / \ . ( . * ) / ) ; 
 	 
 	 i f   ( r e s u l t )   { 
 	 	 d i g s   =   r e s u l t [ 1 ] ; 
 	 	 n u m D i g s   =   d i g s . l e n g t h ; 
 	 }   e l s e   { 
 	 	 n u m D i g s   =   0 ; 
 	 } 
 	 
 	 r e t u r n   n u m D i g s ; 
 } 
 
 f u n c t i o n   a d d s l a s h e s ( s t r )   { 
 	 
 	 i f ( s t r )   { 
 	 	 s t r = s t r . r e p l a c e ( / \ $ / g , ' \ \ $ ' ) ; 
 	 	 s t r = s t r . r e p l a c e ( / \ . / g , ' \ \ . ' ) ; 
 	 	 s t r = s t r . r e p l a c e ( / \ : / g , ' \ \ : ' ) ; 
 	 	 s t r = s t r . r e p l a c e ( / \ [ / g , ' \ \ [ ' ) ; 
 	 	 s t r = s t r . r e p l a c e ( / \ ] / g , ' \ \ ] ' ) ; 
 	 	 s t r = s t r . r e p l a c e ( / \ " / g , ' \ \ " ' ) ; 
 	 	 s t r = s t r . r e p l a c e ( / \ ( / g , ' \ \ ( ' ) ; 
 	 	 s t r = s t r . r e p l a c e ( / \ ) / g , ' \ \ ) ' ) ; 
 	 	 s t r = s t r . r e p l a c e ( / \ ? / g , ' \ \ ? ' ) ; 
 	 	 s t r = s t r . r e p l a c e ( / \ * / g , ' \ \ * ' ) ; 
 	 } 
 	 r e t u r n   s t r ; 
 	 
 } 
 
 f u n c t i o n   r e v e r s e C a r d s ( c a r d s t r i n g )   { 
 
 	 n e w s t r i n g   =   c a r d s t r i n g . s u b s t r ( 1 , 1 )   +   c a r d s t r i n g . s u b s t r ( 0 , 1 ) ; 
 	 r e t u r n   n e w s t r i n g ; 
 } 
