O'Reilly logo

Game Programming using Qt 5 Beginner's Guide - Second Edition by Lorenz Haas, Witold Wysota, Pavel Strakhov

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Have a go hero – Connecting a UCI-compliant chess engine

If you really want to test your skills, you can implement a ChessAlgorithm subclass that will connect to a Universal Chess Interface (UCI) chess engine such as StockFish (http://stockfishchess.org) and provide a challenging artificial intelligence opponent for a human player. UCI is the de facto standard for communication between a chess engine and a chess frontend. Its specification is freely available, so you can study it on your own. To talk to a UCI-compliant engine, you can use QProcess, which will spawn the engine as an external process and attach itself to its standard input and standard output. Then, you can send commands to the engine by writing to its standard input and read ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required