Saturday 10 August 2019

Analyze games or play vs Leela Chess Engine in Analyze This app


Computer Chess has made a tremendous amount of progress in recent months. And especially, Leela Chess! Earlier, Leela Chess ala lc0 only worked on special hardware.

But recently, its been made to work on Android too! This is fantastic news for so many Android users, which means the Engine can run natively on the phone (without connecting to any cloud service to run the engine)

NOTE

  • This only works for Analyze This on Android. Not in the Analyze This iOS app.
  • Its still a work in progress and these are not official builds. Means there could be some problems that you may encounter
  • Thought lc0 did beat Stockfish earlier, but we cannot currently expect that kind of performance on our smartphones, since lc0 really is powerful when running on a GPU. For the most powerful analysis need, Stockfish would still be a better option for your phone. If you need variety or more human like moves, then go ahead and try lc0.
  • So lc0 will still be quite weak, but it can very well perform at a GM level, depending on your device.
  • The below download links have a built-in "weights file". In the near future, via an app update, we will provide an option such that you can specify a different weights file for varied strength.
STEPS
To run lc0 engine in Analyze This app (both Free and Pro version):

DOWNLOAD OPTION A (Download on PC. Unzip. Copy to phone)
  1. Download the engine with built-in weights. Either this or this (if 32bit armv7 device) or this or this (64bit architecture). If not sure, you can very well download both the zips
  2. Unzip the file. Copy the content which is inside (lc0) onto your phone's sdcard
DOWNLOAD OPTION B (Directly on phone)
  1. You can download the file directly on your phone. Link 1 (32bit armv7) or Link 2 (64bit)
STEPS IN ANALYZE THIS APP
  1. Now fire up your Analyze This app
  2. Tap Board Actions Menu  -> Manage Engines
  3. Tap INSTALL ENGINE option at the top
  4. Locate the lc0 engine file which you unzipped and copied in Option A OR the one that you downloaded in Option B.
Thats it! If the engine file is supported on your device, you now have Leela Chess working on your Analyze This app. You can analyze your games with a more human touch.
Or you can also play a few games using the Play This Side option!

HOW TO PLAY
Tap the name of the Engine and choose Play This Side. Engine will play the currently selected side, while you can make moves for the other side!





20 comments:

  1. Thanks for this! Just one question: You said this dl has a built-in weights file, could you also tell which one it is?

    In the app it's just listed as lc0 0.22.0, but I dont even know whether this is a recent T40 net, from the T30 run, one of the 50s, or whatnot else.

    Thank you!

    ReplyDelete
    Replies
    1. Hello, the weights is 48x5. More details here: https://github.com/LeelaChessZero/lc0/wiki/Running-lc0-on-Android-with-a-chess-GUI

      Delete
    2. I've downloaded the file directly onto my phone and when trying to use it by adding a new engine on the app, the file is not recognised and i get an error message saying that it isn't a recognised UCI engine. How do i fix this? Thanks.

      Delete
    3. Quite possible that these files are currently not built for your device architecture. Could you please email me and we will try a few versions. Depends a lot on the phone since there are variety of "cpu architectures". Else we will need to wait for the official build.

      Delete
    4. My reply is somewhere, did it get sent?

      Delete
  2. My phone is a bit old, I've had it pretty much since releease. It's a Galaxy S5. I'll be getting a new phone soon anyways. What is your email and i dont understand why do you want me to email you?

    ReplyDelete
  3. If we need to send you a Test version of the App or a modified engine file to see if it works. Anyways, no problem. You can reach us if you feel, via the App menu - About - Feedback.

    ReplyDelete
  4. Thanks Asim. I had sent you an email requesting to add lc0 a few days ago and you did it so fast. You are my hero. 😊. Thanks again.

    ReplyDelete
  5. I too download the 64 bit file but it does not appear as an engine choice. I have a Google Nexus 5x, Android 8.1 and your latest pro version.can you help me get Leela?

    ReplyDelete
    Replies
    1. Hi, could you please email me and we will try a Test version and see if it works.

      Delete
  6. Samsung J7 2016 Oreo. L0 its not working...its not a UCI eng !

    ReplyDelete
    Replies
    1. Hi, could you please email me and we will try a Test version and see if it works.

      Delete
  7. I works great on my Galaxy S10 but not my old phone.

    ReplyDelete
  8. None of the links are valid ucis for my Nvidia shield tablet k1 , could you email me at alwinc17@gmail.com if you could help?

    ReplyDelete
  9. This comment has been removed by a blog administrator.

    ReplyDelete
  10. Both links in option B say they're not valid uci engines. I'm using a sony xperia z3.

    ReplyDelete
  11. Neither works for me. How can I email you with my phone specifications?

    ReplyDelete
  12. which ELO has this version of lc0?

    ReplyDelete
  13. Tx Asim¡¡ lc0 Works Fine in My Asus zenfone 3 (64 bits)

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

    ReplyDelete