Stockfish is one of the most powerful Chess Engines in the world. These Instructions are to download and use it on a Raspberry PI. It's tested on Raspberry PI 4 only.
sudo apt-get install build-essential wget https://github.com/official-stockfish/Stockfish/archive/sf_15.zip unzip sf_15.zip cd Stockfish-sf_15/src make build ARCH=armv7
Look into this module, and at this page exactly: https://python-chess.readthedocs.io/en/latest/engine.html
You can play against Stockfish on the website that I built Chessduo
My name is Omar Qunsul. I write these articles mainly as a future reference for me. So I dedicate some time to make them look shiny, and share them with the public.
And btw, if you like playing chess, please give my personal multiplayer Chess Website ChessDuo a try.