All pastes #895693 Raw Edit

LOL FAKE CODE

public text v1 · immutable
·published 2008-02-08 00:15 UTC
rendered paste body
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