This code trains a robot in a robocode environment using Reinforcement Learning approach in specific Q-learning algorithm. (For more information about robocode see Robocode.
Note: The neural network learns Q-value and the corresponding state action pair online.
- Install Robocode (check link for installation )
- Make sure you include your robocode environment variable in your IDE
- Put the robots either in the
robot
folder (The robot folder can be found under the directory where robocode is installed) - Start the battle with the one of the RL robot and choose an enemy robot.
- While testing set the greedy boolean variable to true
- Robocode
- Java
- Eclipse (or other IDE, make sure you have added Robocode environment variable) Note: Change the package name to the one you have created.