You are on page 1of 1

/ / we c al cu l ate th e p ro ba b il

/ / we c al cu l ate th e p ro ba b il it y o f o n e p l aye r wi n n i ng ( b etwe e n 0 a n d 1 ) , / / th e pro b ab il i ty of th e othe r p l ayer w i nn i n g i s / / 1 ­ th i s am o un t) , m ul ti p ly by th e K fa c to r $ E = $ K* ( 1­ (1 /( 1 +p ow( 10, ( ( $R an k i n g Pl aye r 2 ­$ R a nk i n g Pl aye r 1 )/ 4 0 0 )) ) ) ) ; $ E = rou n d( $E );

/ / Ad d th is nu mb e r to the wi n ne r ' s s c o re $ R [ ' R3 '] = ro un d( $ R1 +$ E /2 );

/ / s u bt ra c t it fro m th e l oser ' s s c o re $ R [ ' R4 '] = $R 2­ $E ;

= ro un d( $ R1 +$ E /2 ); / / s u bt ra
= ro un d( $ R1 +$ E /2 ); / / s u bt ra

= ro un d( $ R1 +$ E /2 ); / / s u bt ra