Skip to content

Nicktroverts-Organization/ChessEngineAPI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ChessEngineAPI

How to setup

  1. Install python.
  2. Enter Full Path to Stockfish.exe in the "StockFishPath" File.
  3. Enter Full Path to python.exe in the "PythonPath" File.
  4. You can now use this api.
  5. Initialize and save the Port.
  6. CreateInstance and save the Key.

Commands:

  • INITIALIZE~

    Initializes the api and sets the listener to a new, free, Port.
    
  • CREATEINSTANCE~

    Creates a new instance and responds with the key to that instance.
    
  • MAKEMOVE~{key}~{from}{to}

    Makes a move in the chess engine of the specified instance(key).
    
  • GETENGINEMOVE~{key}~

    Gets the next move from the engine of the specified instance(key).
    
  • HELLO~{key}~

    Writes hello in the api console and responds with success.
    
  • ECHO~{key}~{message to echo}

    Writes the specified message in th eapi console and responds with success.
    
  • REMOVEINSTANCE~{key}~

    Deletes the specified Instance.
    

Disclaimer: If you do something to break this on purpose i am not held responsible!