Originally Posted by

**JosAH** As Kevin wrote: solve the problem in tiny pieces; maybe one tiny piece that might help is this: you think of Rock, Paper, Scissors, but your computer might prefer the numbers 0, 1 and 2. 0 wins from 1, 1 wins from 2 and 2 wins from 0. Mathematically speaking x wins from (x+1)%3 where x is 0, 1 or 2 (check it). b.t.w. the % operator is Java's modulo operator. Keeping track of pairs of numbers and comparing them is easier than having to deal with Strings. Of course us humans prefer to think of Rocks, Paper and Scissors, but that's just because humans are strange creatures ;-)

kind regards,

Jos