Basic Training (microgame)
From the Super Mario Wiki
The player controls two men on a handcar. The goal is to get out of the cave. The first section involves dodging the obstacles, including blocks and holes. In the second section a giant boulder rolls after the handcar, forcing the player to speed up. The third section involves both dodging obstacles and going fast enough not to be crushed. If done so, the player wins the game.
In WarioWare Gold, the microgame has changed from an escape sequence to a race sequence. The player controls a yellow handcar, and races against two other handcars. The player must reach the finish line first to win the game.