じゃんけん

Run Settings
LanguagePython
Language Version
Run Command
from random import randint inp=input() u=-5; cp=randint(0,2) if cp==0: print("CPU:lock") if cp==1: print("CPU:scissors") if cp==2: print("CPU:paper") if inp[0]=='l': u=0 print("You:lock") if inp[0]=='s': u=1 print("You:scissors") if inp[0]=='p': u=2 print("You:paper") res=u-cp if(res==-1 or res==2): print("You win!") if(res==1 or res==-2): print("You lose!") if(res==0): print("draw")
Editor Settings
Theme
Key bindings
Full width
Lines