News for hackers. Stuff that matters.
Re:Playing Pokemon Red with Reinforcement Learning by armada651 on Saturday October 14, 2023 @07:23AM (#37879661)
> The author fixes the problem by just increasing the threshold for changed pixels needed to receive a reward. This is a good idea, but might run into issues in later parts of the game where the screen is mostly animated water.

They could've also implemented this by reading the game memory. Pokemon Red internally keeps track of which areas the player has visited before.

I think the reason they opted for the visual approach is because they didn't want to give the AI any knowledge that isn't readily accessible to the player. Or they simply wanted more granularity than what the game keeps track of.

Re:Playing Pokemon Red with Reinforcement Learning by kevinmchugh on Saturday October 14, 2023 @10:05AM (#37880559)
They read game state from memory for a number of things they might've done visually (health bars). Recognizing when the player has entered a new screen seems inbounds. Humans can recognize that easily.