This guy built a Star Wars Battlefront 2 credit-grinding robot, and it is perfect
http://www.pcgamer.com/this-guy-built-a-star-wars-battlefront-2-credit-grinding-robot-and-it-is-perfect/
So you've decided that you want to grind credits in Star Wars Battlefront 2, except you don't really want to. What do you do? If you're a redditor with too much time on your hands, you build a robot to do it for you.
Bear in mind that the robot doesn't actually play the game. But it doesn't have to: As Videogamer points out, you don't actually have to do anything productive to earn credits, you just have to show up. So this robot—or as its creator lowberg describes it, "Progression Droid with sense of Pride and Accomplishment"—just bops the controller every few seconds to keep things rolling.