-
Notifications
You must be signed in to change notification settings - Fork 521
Create a homemade engine
actions-user edited this page Oct 31, 2025
·
2 revisions
As an alternative to creating an entire chess engine and implementing one of the communication protocols (UCI or XBoard), a bot can also be created by writing a single class with a single method. The search() method in this new class takes the current board and the game clock as arguments and should return a move based on whatever criteria the coder desires.
Steps to create a homemade bot:
- Do all the steps in the How to Install
- In the
config.yml, change the engine protocol tohomemade - Create a class in
homemade.pythat extendsMinimalEngine. - Create a method called
search()with an argumentboardthat chooses a legal move from the board.- There are examples in
homemade.pyto help you get started. These examples show different ways to implement thesearch()method and the proper way to return the chosen move.
- There are examples in
- In the
config.yml, change the name fromengine_nameto the name of your class- In this case, you could change it to:
name: "RandomMove"
- In this case, you could change it to: