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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Show HN: A Pitfall Playing Agent

2 点作者 DougHaber将近 9 年前

1 comment

DougHaber将近 9 年前
This is a Pitfall! playing agent. The emulator Javatari.js was used as a platform for this and modified to have the needed hooks and behaviors.<p>The algorithm is very simple. Each screen is treated as a separate level. Commands are randomly chosen, and anything that helps the agent move forward is saved. If the score goes down or the player&#x27;s height goes below the surface, the game resets and a bit of history is trimmed.<p>Here is a youtube video of a trained path for 20 minutes: <a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=I4j8xWq1Jsc" rel="nofollow">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=I4j8xWq1Jsc</a><p>This will not play an optimal game, which requires using the underground and not accidentally jumping over treasure.