Skip to main content

Posts

Showing posts from August, 2016

Setting up Crafty chess engine on Linux/Ubuntu

Crafty installation is pretty simple. The command sudo apt-get install crafty will install crafty at /usr/games/crafty and the book files at /usr/share/crafty/books.bin. If the book files are not installed they can be manually installed by sudo apt-get install crafty-books-medtosmall Sometimes the book are not automatically installed in the home folder and it will result in the following error when crafty is run from the command line. Machine is NUMA, 1 nodes ( 6 cpus/node ) unable to open book file [ ./book.bin ] . book is disabled unable to open book file [ ./books.bin ] . ERROR, unable to open game history file, exiting This implies that we need to import the book.bin and books.bin which contain a vast array of opening moves into the local ~/.crafty directory. For that, we need to run the setup_crafty.sh. However, it needs to be made executable by the normal user first. As root go to the directory /usr/share/doc/crafty and do the following, su cd /usr/s