17/04/11 13:54:34.90 aA2k0CHM.net
ネットの拾いモノ
// Rock-paper-scissors Jan ken
function checkJanken(a,b){var c = (a - b + 3) % 3;
if(c == 0){return console.log("DRAW");}else if(c==2){
return console.log("WIN");}else{return console.log("LOSE");}}
checkJanken(0,1);