Crafty for Android

Discussion of anything and everything relating to chess playing software and machines.

Moderator: Ras

Archimedes
Posts: 167
Joined: Tue Mar 05, 2019 3:43 pm
Full name: Archimedes

Crafty for Android

Post by Archimedes »

Newer versions of Crafty did not run particularly well under Android. You had to restart the app (Chess for Android) after every game to prevent Crafty from crashing. The reason for this is probably the removal of the new command in version 25.2.

Version 25.1, on the other hand, runs stably. It also works if you start a new game under Chess for Android. Tournaments can also be played with this version.

If you use Chess for Android, you can also use the configuration file (.craftyrc) and the opening book (book.bin) from Crafty. To do this, simply copy the corresponding files into the following directory (simply create non-existent directories):

/storage/emulated/0/Android/media/com.google.android.chess/crafty

With the appropriate configuration file (there must be a line break after the final exit command), Crafty can also be adjusted in terms of playing strength using the skill command.

.craftyrc:

Code: Select all

skill 100
hash 96M
hashp 16M
log off
exit

A bit of nostalgia. :wink:

Crafty 25.1 for Android:
https://sourceforge.net/projects/chess- ... p/download

Crafty 25.1 for Android (APK):
https://sourceforge.net/projects/chess- ... k/download
Archimedes
Posts: 167
Joined: Tue Mar 05, 2019 3:43 pm
Full name: Archimedes

Re: Crafty for Android

Post by Archimedes »

When using an opening book for Crafty, I noticed that learning is switched on by default in Crafty. This has the effect that Crafty plays other openings from the book over time. You might not want this behavior, especially on Android. You can switch this off with the command learn 0.

One could use the following configuration file (can also be found in the corresponding zip archive) under Android:

.craftyrc:

Code: Select all

skill 100

# book on
# book random 1
# bookw freq 0
# bookw ratio 0
# bookw eval 0
# bookw learn 0
# bookw cap 0
# book width 99

hash 128M
hashp 32M

learn 0
log off
exit

I have also listed all possible book parameters here, which you can easily change if necessary. Book on and book random 1 are default values anyway. If you remove the comments from the book parameters shown above, Crafty will play all moves from the book with equal probability. At least it should. :wink: