Skip to content

Comment on Show HN: I taught AI to commentate Pong in real timeparent

Comments

If there is a programmed connection to the physics for the in-game commentary then it should be here: https://github.com/pncnmnp/xpong/blob/main/main.py#L212

https://github.com/pncnmnp/xpong/blob/main/main.py#L289:

  "- **Shot Angles:** Derive each shot's angle from the (vx, vy) vector:\n"
  "    • Steep angles (>45°) become daring corner lobs or sharp cross-courts.\n"
  "    • Moderate angles (15°-45°) look like graceful arcs that test court coverage.\n"
  "    • Shallow angles (<15°) play out as direct, flat drives down the line.\n"
Didn't find where the balls motion is communicated to the LLM.

So like real commentary then :D

It is all in the delivery, as it were.

"Real time"

It does need some pointless anecdotes about past statistics, history of the game, training regimes, new managers and so on!

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.