Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

Using PyChess in Chess Robot

#1
   
I would like to know how I can access pychess in RoboDK. At present my chess program is purely manual. At a later stage I would  also like to add Stockfish.
#2
You simply need to install the corresponding Python package on the Python version you are using with RoboDK.

For example, you can can install Python packages by running this command:
Code:
C:/RoboDK/Python-Embedded/python.exe -m pip install chess

Also, we have added the import install function in the API to facilitate installing packages remotely so you should also be able to do this directly from your Python code:
Code:
from robolink import import_install
import_install("chess")
import chess
#3
(11-08-2023, 09:48 AM)Albert Wrote: You simply need to install the corresponding Python package on the Python version you are using with RoboDK.

For example, you can can install Python packages by running this command:
Code:
C:/RoboDK/Python-Embedded/python.exe -m pip install chess

Also, we have added the import install function in the API to facilitate installing packages remotely so you should also be able to do this directly from your Python code:
Code:
from robolink import import_install
import_install("chess")
import chess

Thanks for the information.
  




Users browsing this thread:
1 Guest(s)