Playing Pokemon Red with Reinforcement Learning
github.com
github.com
Interestingly, this problem has been studied previously - an OpenAI paper called it the "noisy TV problem", since an agent could in principle get maximum novelty reward for just staring at a TV screen showing random noise.
The solution they proposed (https://openai.com/research/reinforcement-learning-with-pred...) called Random Network Distillation, uses a pair of networks, one learned and the other randomly initialized. The goal of the learned network is to predict the output of the randomly initialized one on the newly observed frame. If the output is easily predicted, it means the frame is similar to what's already been seen before, even if it has different TV noise or water patterns. They got some pretty good results on Atari and other games, so it'd be interesting to see if it works well on Pokemon.
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.
I think maps full of the same tile repeated wouldn't be a problem so the threshold might work in pretty much the whole game.
note that TPP inputs resemble random inputs but aren't! The game is made easier because people could and did collaborate through the chat, and simultaneously made harder because griefers could and did attempt to sabotage the game
the only thing that made progress possible imo was that there is no game over screen, and at death you dont lose anything too important; however there was a clear "winning" ending screen (pokemon is a game where you can win but you can not lose), so the collaborative effort to win the game was at an advantage
random inputs put a bound on the expected time it takes to beat the game, but the time is astronomical. the game was beaten much much sooner than this theoretical bound, which means that collaboration eventually won out. this only happened imo due to social effects: if griefers were more determined and more numerous, perhaps the first iteration would be still ongoing
after the first, it kind of became much easier, because people already knew it was possible in principle
A few people including myself knew. Eventually entropy would settle and once the initial hype was over, it was only a matter of time before the chat would finish the game. Saying that "nobody knew" seems like historical revisionism.
Technically untrue, you can use Meowth's Pay Day to generate cash.
https://bulbapedia.bulbagarden.net/wiki/Pay_Day_(move)#Gener...
Anarchy and Democracy
TwitchPlaysPokemon now has two modes, anarchy and democracy.
Anarchy mode is the "old" mode, where everyone's inputs are applied immediately.
Democracy mode is vote-based and has a more sophisticated input system.
In order to switch from one mode to the other, the mode that isn't active needs 75% of votes as indicated by the dotted line, the current percentage of votes is indicated by the black line.
I wonder if this kind of thing could be implemented into a Reinforcement Learning model.. Like Playing pokem via Playing Twitch plays pokemon with Reinforcement Learning.I'm thinking of how a house fly can or .. sheep .. can suddenly just go nuts and bounce about to get unstuck from somewhere.
People do this too!
As I recall, there are several ways you can lock yourself out of being able to complete the game (releasing unique pokemons, primarily), so there was a good deal of trepidation & danger when it came to some critical moments and when the trolls got the upper hand.
You can't get softlocked by releasing an HM move Pokemon.
But I think the commenter above meant that Pokémon was a game which was possible to complete in a twitch plays style because it doesn't result in game over like an FPS or platform we would for example.
The lore created around TPP was insanely good and captivating, like ascribing god-like status to certain Pokémons and finding funny interpretations of in-game events and random Pokémon names
Bird Jesus, ATV, Lord Helix :D
He wasn’t reading the text. He would then get stuck, not knowing what to do, and start over. He did this several times and complained that the game was broken.
Some time later I gave him Pokémon Sword for his Switch, as I thought it’d be good for him. Some time after that he was diagnosed with ADD (to the surprise of no one). Some time after that he proudly told me he beat it.
He also said he didn’t like it that much. Hah. I’ll still count it as a win.
You sure? :D No idea what a grade school is, but I couldn't read a word of English at the age that I played Pokémon on the gameboy!
I did need occasional hints (every couple weeks) from my older cousin to get unstuck, but afaik still loved the game, I guess just because it's about Pokémon. I think cut (meaning both pussy and fuck in Dutch, fun fact) was one of the things I got stuck at, perhaps needing to teach it to a Pokémon, but probably on how to use it. It's a number of different things to connect and so you can't button mash your way through, iirc (it has been a few decades)
The strong AIs made for those games had access to some crucial human "help" though.
* AlphaStar (For StarCraft) was trained on a massive database of human games, while this project started Pokemon Red with a blank slate.
* AlphaZero and AlphaZero Chess did start blank slate, but had a hand-coded and domain-specific search algorithm (MCTS) to explore various actions (800 iterations IIRC) before actually making that action. There's no obvious way to do something similar for Pokemon Red.
Edit: you edited your answer after I replied, so I'll edit mine too, it shouldn't be illegal to download the ROM if you physically own a copy. If you want to do it the hard way, buy a GB dumper.
People also say “No copyright infringement intended” while uploading full movies to YouTube. People, especially when it comes to matters of copyright, typically have very poor understandings of law...
Moon Channel (an actual lawyer) has a fairly clear and concise summary with particular relation to the Dolphin emulator’s attempt to get itself on Steam: https://www.youtube.com/watch?v=wROQUZDCIMI
Not a lawyer but I'm suspicious about that: first of all, I don't think downloading is actually illegal, it's either sharing stuff without license or keeping stuff without license that are generally illegal (which is why viewing movies from an illegal streaming website is legal in most places even though the website owner is clearly doing illegal stuff).
Then, if you have a license and the law in your jurisdiction allows personal backup, I think you'd have the right to actually store the thing, so I don't think you'd be breaking the law here.
You are in the clear if you download it from a ROM site (and own the corresponding cartridge). You are not in the clear if you use filesharing, unless you freeload.
https://gameboy.github.io/wiki/cartreaders
I believe the same or similar devices can be used to write cartridges with ROM hacks if one is so inclined.
There are also a lot of DYI devices using Arduino and other popular boards.
You only have a license for playing it and not a license for copying it.
Would you mind expanding what you're thinking about here? (FWIW the ”license” concept doesn't really exists in French law)
> droit à la copie privée wouldn't apply to the site sending you the file.
Sure, the website would be illegal without doubt, but that's independent. Illegal streaming services are illegal as well, but watching them isn't for instance.
For a more similar example, there used to be a website that gave you the ability to “record TV programs in the cloud” (recording what's happening on TV is legal because is falls under the «copie privée» definition): the website was prosecuted and found guilty, but no customers were.
Here are some relevant notes and pictures of mine about that subject
https://text.nstr.no/~erik.nordstrom/game_boy_color_forever....
I bought two different devices for dumping ROM and save game data, and the one that worked best for me was the insideGadgets GBxCart RW.
I even thought about offering as a service that people could ship their GameBoy carts to me and I would dump the ROM and SAV files for them, and then I would ship their cart back to them and provide the dumped data along with a video showing the process of dumping the data.
The person is timid about doing it, but everyone online was saying to just do it since everyone does and what is the worst that could happen. And then despite all of the very real crimes going on in the world, the police show up at this person's door.
I think the whole point of this project is to let the AI do the pruning
1) rewards for filling the Pokedex ( seen+ captured).
Could help with exploration and eg. Fish, Safari zone and swimming.
2) the reward per battle based on the duration of the battle + winning.
Could help with understanding the type system and the different attacks. Perhaps even with assigning TM items.
3) Reward on first usages of HM moves ( degrading reward). Could help with using fly and/or swim.
I don't like this AI revolution. Internet revolution was great. You could generate immense value with a computer that costed less than monthly salary. Almost the same with smartphone app revolution. But on this new frontier of AI you need some serious cash to even attempt making something worthwhile.
also, how do you not run out of memory?
Plenty of ways to tweak the reward system to get it to continue.