Play a hand of Rock Paper Scissors if PlayerA="Rock" then if PlayerB="Rock" then winner=tie else if PlayerB="Scissors" then winner=PlayerA else winner=PlayerB' endif endif else if PlayerA="Paper" then if PlayerB="Rock" then winner=PlayerA else if PlayerB="Scissors" then winner=PlayerA else winner=tie endif endif else if PlayerB=Scissors then winner=tie else if PlayerB="Paper" then winner=PlayerA else winner=PlayerB endif endif endif endif