This is not a joke and you have to wonder how much time people have on their hands when you sit and watch two fish playing Street Fighter 2 on Twitch.
Here is how it works and you can watch the “fight” live on Twitch here.
Depending on which part of the tank a fish is in, it will send a different key press to the game. Aquarius sends key presses for Player 1, and Robert the Bruce sends key presses for Player 2.
As for the actual code used for color detection and key sending, I do all of it using AutoIt and some shoddy code I cooked up over the course of a few days.
Points of Interest:
- There is a tiny delay between one player pressing their key and the other one. To compensate, a player is chosen at random each loop to be the first to press their key, so it balances out.
- A fish can send multiple key presses at the same time if it is in multiple screen regions when the check is made.
- Movement with the up/down/left/right arrows is evaluated first, and then the other key presses are sent. This allows for more combos to potentially happen (direction press + punch to throw).
- Key presses in menus are handled slightly differently to ensure that the game continues smoothly.