TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Show HN: While waiting for connecting flight, made this JS game

3 点作者 v33ra大约 12 年前
TLDR; http://veerasundar.com/rock-paper-scissor-lizard-spoc/<p>Today I had to wait at Singapore Airport for my connecting flight to Chennai. So, used the time to make this little JavaScript game in ~3 hours.<p>Here's the source code: https://github.com/vraa/rpsls (of course, lot of cleaning to do :) )

2 条评论

danialtz大约 12 年前
I guess there is a problem with math.random(), since every time I played I either won or was a draw. A better seeding, maybe?<p>Sweet little game/code.
评论 #5620716 未加载
kaliblack大约 12 年前
Nice work. The results were random enough.<p>I'd recommend removing the need to click the retry button to reset.
评论 #5620808 未加载