It was all about finding a pattern of victories. In the order that I put them..

Ro, Sp, Pa, Li, Sc

Any of the options in the list, always beat the 3rd and 4th (>2) options to their right.

So the second line of the function is simply getting difference between the 2 in the list. Using the +5 and mod 5 to get around the wrapping. If difference >2 then they win, greater than 1, I win, 0 difference ties.


Edited by ShaneEP (2017-12-18 01:39 AM)