Replies: 1 comment 5 replies
-
A simple example using bash commands: printf "uci
ucinewgame
position fen r1bqkbnr/pppp1ppp/2n5/1B2p3/4P3/5N2/PPPP1PPP/RNBQK2R b KQkq - 0 1
go depth 10
ucinewgame
quit" | ./stockfish | grep bestmove |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Are there any code examples that deal with making calls to the UCI? Having a difficult time understanding the code base and would appreciate some guidance.
I'm trying to write a program that uses Stockfish to evaluate moves.
Someone told me you can interact with it through stdin and stdout but I learn best by example.
Beta Was this translation helpful? Give feedback.
All reactions