Remember the "Aim for the horn" trick in the anime? It sounds silly, and Brock's explanation is a bit far-fetched...at first. But with basic knowledge of neuroscience and electrical engineering, it made enough sense for the games to reference it with the Rhyhorn family's Lightningrod ability. The idea of using weak points in the Pokemon and the environment around them in battle has intrigued me, and so I propose a challenge.
I will give you a difficult battle scenario or trap from which you must emerge victorious. The catch is that your only Pokemon is a Machoke, and your character has just graduated from high school [as opposed to having thirty-odd years of experience]. Special knowledge that your character could use to solve the problem will be divulged in the problem itself.
The idea is to improvise a solution to the given problem that is:
1. plausible. Grabbing a "conveniently misplaced" Azure Flute and summoning Arceus is not plausible. tl;dr: Don't pull it out of your ass.
2. inventive. Simply finding the opponent's weakness(es) and attacking them with STAB-boosted super-effective moves is effective, but not inventive.
3. causes the LEAST amount of harm to yourself, your trusty Machoke, and any bystanders. Think of it like the recent Ghostbusters games, in which you get a higher score for not destroying everything in your path.
You can only take 1 in-universe hour of advance preparations for a Gym Battle, and traps have no preparation time. Of course, you can and should think about your idea before posting, but it must involve things that you and your Machoke could do with at most an hour of preparation beforehand.
It's a low-stakes challenge: the best response will get a like. If this succeeds, I may continue it.
You are facing off with an Electric-type Gym Leader named Raileigh. Railiegh, as his name might imply, is obsessed with trains, and his gym's arena is on top of an electric subway. The train follows an oval track, and the locomotive is controlled by a speed-regulating computer program; it has no human driver. You went to a computer-programming camp in high school, but your skills are rusty. What do you do?