IDK if anyone has heard about this unused mode in the classic Sonic the Hedgehog (I'm not sure its official I got the copy on an emulator), but after beating the game I got a "VS Mode", it was against a fake looking Sonic (the sprite that I ripped in the image [not the background]). So, I think it works closely as the Super Smash Bros Amiibo where it learns on your movement so the mode kind of works as a time attack. Everything was fine until I was running a race in Green Hill and the guy just stopped and just kept on jumping on a spike, then I got to the end of the stage it loaded me at the start of the level. I was freaked out so I quite the game, I'm going to come back to it soon.
Sorry if this is a bit rambly I wrote this quickly. I'll update you if I find any more information on this, I'll also do more experimenting