Agent for a Lunar Landing

This project is a minimal agent trained to land a space ship at the moon. It was developed in the context of the Machine Learning subject at TU Wien. The environment is implemented by Gymnasium and is part of the Box2D environments. More details on the observation space, actions and rewards can be checked in the Lunar Landing page. For the subject competition, the environment is set to have stronger wind and lower gravity, to make it slightly harder. My agent scored 271.20 points in the competition.

The agent has been trained with an Actor-Critic algorithm. There are two MLPs being trained, one that learns the policy that minimizes the loss, and the other learning the value of a set of actions. To improve the scoring of the agent, I applied different optimizations and improvements:

Below you can see more examples of the agent landing the ship.

View on GitHub