everyone starts with 1000 points.
pair 1
player A (x_a)/player B(x_b)
pair 2
player C (x_c)/player D(x_d)
if (x_a + x_b) >= (x_c + x_d) ==>
if (pair 1 wins) ==>
if (x_a+x_b) - (x_c+x_d) < 50 ==> y = 10
if (x_a+x_b) - (x_c+x_d) < 100 ==> y = 5
if (x_a+x_b) - (x_c+x_d) < 150 ==> y = 2
if (x_a+x_b) - (x_c+x_d) < 200 ==> y = 0
x_a = x_a + y
x_b = x_b + y
x_c = x_c - y
x_d = x_d - y
if (pair 2 wins) ==>
if (x_a+x_b) - (x_c+x_d) < 50 ==> y = 10