Skip to content

krris/QLearning-Robocode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

89 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

QLearning Robocode

Robocode robot which uses Reinforcement Learning algorithm (QLearning).

How to run this robot

  1. Download and install Robocode (at least version 1.9.2.1)
  2. Download and install Gradle
  3. Clone this repository. git clone https://github.com/krris/QLearning-Robocode.git
  4. Go to download directory and run:
    gradle build
    gralde copyDeps
  5. Modify robocodePath in config.sh. It should point your Robocode installation.
  6. Modify in src/main/resources/application.conf:
    • rewardsPath (place where 'rewards' file generated by Robocode will be saved)
    • chartPath (place where chart with rewards/round will be printed)
    • battleConfigPath (change the path (according to your home directory) it points to battles/generate.battle)
  7. cd scripts
  8. ./run.sh

FAQ

Where I can set QLearning parameters, number of rounds, robots etc?

You can change every configuration in application.conf