# Agent

Code to make an agent play through the game be it random, human or RL agent.


## Usage

```bash
# from root of project
python -m machiavelli.player.agent --debug

# Feel free to run with --help or --human to play the game yourself.
```

### Generate trajectories of various agents
```bash
python -m machiavelli.game.agent.run_trajectories --game battlemage --agent random_agent
```

Plot graphs:
```bash
python -m machiavelli.game.agent.plot_trajectories --trajectories_dir machiavelli/game/agent/trajectories/RandomAgent/battlemage
```
