> For the complete documentation index, see [llms.txt](https://docs.catanatron.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.catanatron.com/advanced/making-catanatron-stronger.md).

# Making Catanatron Stronger

### AI Leaderboard

Catanatron will always refer to the best bot in this leaderboard.

The best bot right now is `AlphaBetaPlayer` with n = 2. Here a list of bots strength. Experiments done by running 1000 (when possible) 1v1 games against previous in list.

| Player               | % of wins in 1v1 games                      | num games used for result |
| -------------------- | ------------------------------------------- | ------------------------- |
| AlphaBeta(n=2)       | 80% vs ValueFunction                        | 25                        |
| ValueFunction        | 90% vs GreedyPlayouts(n=25)                 | 25                        |
| GreedyPlayouts(n=25) | 100% vs MCTS(n=100)                         | 25                        |
| MCTS(n=100)          | 60% vs WeightedRandom                       | 15                        |
| WeightedRandom       | <p>60% vs Random<br>50% vs VictoryPoint</p> | 1000                      |
| VictoryPoint         | 60% vs Random                               | 1000                      |
| Random               | -                                           | -                         |

### Making Catanatron Bot Stronger

The best bot right now is Alpha Beta Search with a hand-crafted value function. One of the most promising ways of improving Catanatron is to have your custom player inhert from ([`AlphaBetaPlayer`](https://github.com/bcollazo/catanatron/blob/master/catanatron/catanatron/players/minimax.py)) and set a better set of weights for the value function. You can also edit the value function and come up with your own innovative features!

For more sophisticated approaches, see example player implementations in [catanatron/catanatron/players](https://github.com/bcollazo/catanatron/blob/master/catanatron/catanatron/players/README.md)

If you find a bot that consistently beats the best bot right now, please submit a Pull Request! :)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.catanatron.com/advanced/making-catanatron-stronger.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
