30 November 2016

Crafty 25.2 Android Chess Engine

Crafty

Crafty is a free, open-source computer chess program developed by Dr. Robert M. (Bob) Hyatt.  Crafty is constantly being improved by a small team of contributors, including Dr. Hyatt.

Configuration
Crafty can be configured for a stronger game by setting some optional parameters (examples below).  These parameters can be put into the crafty.rc (windows) / .craftyrc (linux) file, or used as start-up parameters from the terminal.  A more thorough explanations of Crafty's parameters can be found here.

ponder on (Allows Crafty to think on your time)
hash=256m (Increases Crafty's position hash to 256MB)
hashp=64m (Increases Crafty's pawn hash to 64MB)
egtb (Tells Crafty to use syzygy Endgame Tables)
cache=32m (Increases Crafty's Endgame Table Cache to 32MB)
swindle on (Allows Crafty to try to win drawn games (according to Endgame Tables))
mt=4 (Increases Crafty's MaxThreads to 4 for a quad core computer)

Download:

armv7-pgo, armv7-nopie, arm64v8 : HERE


1,6 Mnps on my armv7 (4 core), how about you?

39 comments:

  1. It working nice,in C4a it needs config file, otherwise Crafty will use only 1 cpu.
    I don't like one thing,engine leaves a lot of garbage (games and log files) in C4a GUI.
    Anyway, thank you Aprijal :)

    ReplyDelete
    Replies
    1. You can disable it using "log off" in your .craftyrc
      I don't like it too :)

      Delete
    2. Aprijal,how can i force the engine to use syzygy?

      Delete
    3. I never test it!, see ducumentation at crafty official site.

      Delete
  2. Get engine terminated error on armv8

    ReplyDelete
    Replies
    1. Which gui?, are you choose xboard?

      Delete
    2. Nevermind, Chose xboard and now it works, but it only uses one core

      Delete
  3. This comment has been removed by the author.

    ReplyDelete
  4. This comment has been removed by the author.

    ReplyDelete
  5. I've deleted my questions because answers are here: Provided config file works. Multi threads work too. I see 7136 knps with 8 threads on MTK6752 using arm8 build and 256 hash. This new record is really hard to believe but it seems true. Crafty goes to depth 25 in 60 seconds!

    ReplyDelete
    Replies
    1. How did you manage to use multi thread? I changed the settings in the config file but crafty only uses one core

      Delete
    2. You don't need to change anything in config file, just add it as an engine to the C4a GUI.
      Short message will appear "Crafty use 4 cores".

      Delete
    3. Don't forget to change "log off" in your .craftyrc, otherwise Crafty leaves a lot of garbage in the GUI.

      Delete
    4. I reinstalled crafty and left the settings intact, but cfa gui still reports 1 core

      Delete
    5. Did you added config file to the C4a GUI, AS ENGINE?

      Delete
    6. Oh! I see, thank you, now it's working, but how do I set it to 8cores?

      Delete
    7. 2900+kn/s on huawei p8 Lite on 4 cores

      Delete
    8. Whith 8 cores almost 4000kn/s

      Delete
    9. This comment has been removed by the author.

      Delete
    10. This comment has been removed by the author.

      Delete
    11. If i'm not mistaken, you need to write on config file->
      ponder offmt=4hash=128mhashp=8mxboard=logoff=smpmt=8
      Aprijal, am i wrong? :)

      Delete
    12. mt / smpmt, it's same, choose one. And don't forget xboard and newline in the end of your config file

      Delete
    13. Thank you my friend! Alex :)

      Delete
  6. Hey buddy, THX for my wishes. I'll send U some very fine French wine.
    Do you agree? Crafty is ✅!
    Alexandrée. ;-)

    ReplyDelete
  7. Hi Aprijal,I'm a newbie here how can I edit or change the parameters of .craftyrc?Is there an app to do it?Thank you.

    ReplyDelete
  8. I ordered the file hash=16 and the engine still uses 256 mb why?

    ReplyDelete
  9. Thank you Aprijal!May I ask if you know the command to make crafty play it's book(book.bin)found on it's official site?I'm trying to test it in CfA.

    ReplyDelete
  10. Engine terminated in droidfish . Armv8
    Please suggest how address this issue
    Thanks in advance

    ReplyDelete
  11. Hi Aprijal,I put on the parameters as prescribed above in jota text editor,how could I transfer it on .craftyrc? BTW,regarding the crafty book it seems that the engine still doesn't recognize the book in CfA.Thank you.

    ReplyDelete
    Replies
    1. Just simply rename your file to .craftyrc
      Your book must be named book.bin and disable your GUI book.

      Delete
  12. I don't know when you'll be reading this comment but i wanted to keep the record that Crafty 25.2 can't be included in Rapidroid because it can never play a second game with reversed colors vs a round robin opponent. I guess there's something wrong when the gui wants the engine to stop and restart for the next game. I've tried with single core instead of smp too but that didn't help either.

    ReplyDelete
  13. Like PC version, this what's I got:

    White(1): new
    NOTICE: new command not implemented, please exit and
    restart crafty to re-initialize everything for a new game.

    Is previous version work fine?

    ReplyDelete
    Replies
    1. 25.0.JA is ok. I always used it without crafty.rc. After trying your 25.2, i tried 25.0 with crafty.rc. It works still ok but mt switch ruins everything and i see no pv, no move either until flag. I've also tried 25.2 without config file but no effect.

      Delete
    2. For the moment i'm replaying Crafty 25.0 games with 256 hash and still single thread. Shame i can't have Crafty Smp... It scales very well in fact and +100 ELO could be added.

      Delete