Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
shortest functioning rock, paper, scissors..?
ForeverDev
Oct 8th, 2014
225
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
Lua
0.15 KB
| None
|
0
0
raw
download
clone
embed
print
report
repeat
;
c
=
(
{
'r'
,
'p'
,
's'
}
)
[
math.random
(
3
)
]
i
=
io.read
(
)
print
(
c
==
i
and
'tie'
or
(
c
==
'r'
and
i
==
's'
or
c
==
'p'
and
i
==
'r'
or
c
==
's'
and
i
==
'p'
)
and
'lose'
or
'win'
)
until
nil
Advertisement
Add Comment
Please,
Sign In
to add comment
Public Pastes
Transmigration
7 hours ago | 1.25 KB
Immortal
7 hours ago | 1.34 KB
temp sglang key
22 hours ago | 0.07 KB
test_create
1 day ago | 0.04 KB
R36S Conf Archive Downloader
2 days ago | 2.68 KB
Session Resume
3 days ago | 1.38 KB
Session Handoff
3 days ago | 1.74 KB
October 23, 2026 Update
4 days ago | 1.69 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!