TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: A Pitfall Playing Agent

2 pointsby DougHaberalmost 9 years ago

1 comment

DougHaberalmost 9 years ago
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.