Rock Paper Scissors Meta-Gaming Tournament
Anti-99%-of-posts
(code,r)=&gt;{var S=&quot;S&quot;;var R=&quot;R&quot;;var P=&quot;P&quot;;var x=S+R+P;var y=R+P+S;var z=P+S+R
if(code.includes(&quot;17&quot;)){return &quot;P&quot;;}
else if(code.includes(&quot;[r%2]&quot;)){return&quot;RR&quot;[r%2]}
else if(code.includes(&quot;[r%3]&quot;)){
if (code.includes(x)){return (R+P+S)[r%3];}
else if(code.includes(y)){return (P+S+R)[r%3];}
else if(code.includes(z)){return (S+R+P)[r%3];}
}else{if(code.includes(&quot;scissors&quot;)){return &quot;R&quot;}else if (code.includes(&quot;rock&quot;)){return &quot;P&quot;}else if (code.includes(&quot;paper&quot;) ){return &quot;S&quot;}else{return &quot;P&quot;}}}

Haha. Testing it on submissions gives either a win or a tie.