Rock Paper Scissors for arbitrary odd number of elements
Posted
by Barry Carter
on Stack Overflow
See other posts from Stack Overflow
or by Barry Carter
Published on 2010-05-30T19:08:50Z
Indexed on
2010/05/30
19:12 UTC
Read the original article
Hit count: 251
math
How do I efficiently create a rock-scissors-paper game for n elements, where n is any odd number >=3.
In other words, I want a non-transitive complete ordering of n elements such that each element is greater than (n-1)/2 other elements and each element is lesser than (n-1)/2 other elements.
© Stack Overflow or respective owner