Move around using the arrow keys or WASD and don't touch the robot! Try to get as many points as you can by touching the energy ball. If the robot touches the energy ball, it gets faster. Press S to show all variable data, press H to hide it. Fast mode happens every 30-60 seconds, so be warned!
Star Wars Coding Projects, the book, taught me how to create this project from nothing. By the way, you can remix to get the 2.0 robot!