The SquadChess API can be used to create your own custom A.I. opponents.
When you've created an A.I. opponent you can try it out in the SquadChess A.I. Arena. You can even watch your A.I. play against other A.I. opponents.
Basics
This documentation (and the SquadChess API in general) uses standard Chess terminology. Familiarity with some Chess terms will be necessary to understand certain API functions.
For a glossary of standard Chess terms, see Wikipedia: Glossary of Chess.
SquadChess A.I. opponents are programmed in JavaScript. It is recommended you be comfortably familiar with intermediate JavaScript before attempting to create a custom A.I. opponent.
For an introduction to JavaScript, see the documentation at geeksforgeeks.org.
File Delegation
The main A.I. turn loop takes place internally within the SquadChess engine, while all custom logic is encapsulated within an external Logic Patch file. That external Logic Patch file is what you will create as your Custom A.I. opponent.
The Logic Patch file consists of an AILogic class definition, containing API methods that are called by the parent A.I. object during the turn loop.
The AILogic class can also include helper methods and any other code to support your A.I. opponent.
For detailed instructions to create a Logic Patch file see the next topic, Templates. Next Topic: Templates