Computer Draughts programs on Android

Discussion about development of draughts in the time of computer and Internet.
Sidiki
Posts: 321
Joined: Thu Jan 15, 2015 16:28
Real name: Coulibaly Sidiki

Computer Draughts programs on Android

Post by Sidiki » Mon Apr 09, 2018 19:29

Hi all,

I am very happy for discovering an Android app called ExaGear Windows emulator that allow you to run Windows softwares.
You must copy and paste the folder of the software already installed on your computer in the folder Download of your Android.

You can also install et program directly from your Android, of course the setup must be again into the folder Download.
This is a YouTube link
https://m.youtube.com/watch?v=lyO38cViCeI

Also i done a little test in the video attached.
https://drive.google.com/file/d/1edsu2f ... p=drivesdk

PS: the App run only 32 bits's program actually.

I ask to program if it's possible to compile Scan to 32 bits with a gui to have an exe file.
Thank.
Sidiki.

AartBik
Posts: 103
Joined: Wed Mar 11, 2009 01:30
Location: Mountain View
Contact:

Re: Computer Draughts programs on Android

Post by AartBik » Mon Apr 09, 2018 20:01

Sidiki wrote:I am very happy for discovering an Android app called ExaGear Windows emulator that allow you to run Windows softwares.
You must copy and paste the folder of the software already installed on your computer in the folder Download of your Android.
Rather than emulating, and assuming you have access to the source code, wouldn't it make more sense to recompile engines for Android to play at full strength (similar to the approach I took for chess)? Of course, we would need a checkers GUI on Android that supports importing engines then..... :)

Sidiki
Posts: 321
Joined: Thu Jan 15, 2015 16:28
Real name: Coulibaly Sidiki

Re: Computer Draughts programs on Android

Post by Sidiki » Mon Apr 09, 2018 21:45

AartBik wrote:
Sidiki wrote:I am very happy for discovering an Android app called ExaGear Windows emulator that allow you to run Windows softwares.
You must copy and paste the folder of the software already installed on your computer in the folder Download of your Android.
Rather than emulating, and assuming you have access to the source code, wouldn't it make more sense to recompile engines for Android to play at full strength (similar to the approach I took for chess)? Of course, we would need a checkers GUI on Android that supports importing engines then..... :)
Thank for answering, it will be a very good thing to have Scan, Kingsrow, Dragon Android version's.
We have some Android version of Aurora Borealis, Maximus and Flits.

Someone compiled Scan for IPhone.
Scan it's open source. If you can do it for us, you will help us too much.

I already asked it but, il don't got answering it's why i thought that it will be easy for Windows.
Find attached Scan's source code.
Scan source code.zip
(57.75 KiB) Downloaded 427 times
Thank again.


Sidiki...
Last edited by Sidiki on Tue Apr 10, 2018 12:44, edited 1 time in total.

AartBik
Posts: 103
Joined: Wed Mar 11, 2009 01:30
Location: Mountain View
Contact:

Re: Computer Draughts programs on Android

Post by AartBik » Tue Apr 10, 2018 01:27

Sidiki wrote:Scan it's open source. If you can do it for us, qui you will help us too much.
I compiled scan without issues for Android and it runs. However, I need a couple of files to make sure that it works.
(in particular scan.ini, data/eval, data/book, probably data/bb too).

Code: Select all

$ ./scan                                                                                             
Scan 2.0 by Fabien Letouzey

... <errors on missing files, I could use an empty scan.ini, but the others I don't know> .....

Sidiki
Posts: 321
Joined: Thu Jan 15, 2015 16:28
Real name: Coulibaly Sidiki

Re: Computer Draughts programs on Android

Post by Sidiki » Tue Apr 10, 2018 12:20

AartBik wrote:
Sidiki wrote:Scan it's open source. If you can do it for us, qui you will help us too much.
I compiled scan without issues for Android and it runs. However, I need a couple of files to make sure that it works.
(in particular scan.ini, data/eval, data/book, probably data/bb too).

Code: Select all

$ ./scan                                                                                             
Scan 2.0 by Fabien Letouzey

... <errors on missing files, I could use an empty scan.ini, but the others I don't know> .....
Hi AartBik,

Thank, it's already too much.
I thought that these files was included into the source code.
You done a great, thing, i thing that the more importants for Scan are .ini, eval and book. It's already too strong without bb, However, you can only add bb 2 to 4 or to 5.

Thank again for taking time to do it for us.

Sidiki...

AartBik
Posts: 103
Joined: Wed Mar 11, 2009 01:30
Location: Mountain View
Contact:

Re: Computer Draughts programs on Android

Post by AartBik » Tue Apr 10, 2018 17:01

I talked with Fabien who pointed me to the official scan distribution (https://hjetten.home.xs4all.nl/scan/scan.html), where I could find the required file. After setting bb-size = 0 in scan.ini to avoid probing the bb files, the binary is properly working.

Code: Select all

$ ./scan
Scan 2.0 by Fabien Letouzey

init eval
init book
done

  *   *   *   *   *     01  02  03  04  05
*   *   *   *   *     06  07  08  09  10
  *   *   *   *   *     11  12  13  14  15
*   *   *   *   *     16  17  18  19  20
  -   -   -   -   -     21  22  23  24  25
-   -   -   -   -     26  27  28  29  30
  O   O   O   O   O     31  32  33  34  35
O   O   O   O   O     36  37  38  39  40
  O   O   O   O   O     41  42  43  44  45
O   O   O   O   O     46  47  48  49  50

white to play

> 
and in "hub" mode:

Code: Select all

$ ./scan hub                                                                                     
Scan 2.0 by Fabien Letouzey
init
init eval
init book
ready
go
info 0 0.0 0 0 0.00 0.0 32-28
move 32-28 17-22

AartBik
Posts: 103
Joined: Wed Mar 11, 2009 01:30
Location: Mountain View
Contact:

Re: Computer Draughts programs on Android

Post by AartBik » Tue Apr 10, 2018 17:09

Fabien also gave me permission to provide the binary. Attached you will find a statically linked version of scan2.0. Let me know if other types or versions are required.
Attachments
scan20_android.zip
(280.42 KiB) Downloaded 655 times

Fabien Letouzey
Posts: 299
Joined: Tue Jul 07, 2015 07:48
Real name: Fabien Letouzey

Re: Computer Draughts programs on Android

Post by Fabien Letouzey » Tue Apr 10, 2018 17:41

Sidiki wrote:Find attached Scan's source code.
...
But ... this is Scan 2! Didn't you want Scan 3?

I didn't notice until the Hub output, which changed a lot last year. Also note that means Scan 2 needs Hub 1, while Scan 3 needs Hub 2.

Fabien.

AartBik
Posts: 103
Joined: Wed Mar 11, 2009 01:30
Location: Mountain View
Contact:

Re: Computer Draughts programs on Android

Post by AartBik » Tue Apr 10, 2018 20:19

Anticipating Sidiki's next request:

Code: Select all

$ ./scan30_android                                                                                   

init book
init eval
done

  *   *   *   *   *     01  02  03  04  05
*   *   *   *   *     06  07  08  09  10  
  *   *   *   *   *     11  12  13  14  15
*   *   *   *   *     16  17  18  19  20  
  -   -   -   -   -     21  22  23  24  25
-   -   -   -   -     26  27  28  29  30  
  O   O   O   O   O     31  32  33  34  35
O   O   O   O   O     36  37  38  39  40  
  O   O   O   O   O     41  42  43  44  45
O   O   O   O   O     46  47  48  49  50  

white to play

> 
and in hub mode:

Code: Select all

$ ./scan30_android  hub                                                                          
init
init book
init eval
ready
go
info score=-0.03 pv=34-29
done move=34-29 ponder=20-25

AartBik
Posts: 103
Joined: Wed Mar 11, 2009 01:30
Location: Mountain View
Contact:

Re: Computer Draughts programs on Android

Post by AartBik » Tue Apr 10, 2018 20:21

Attached you will find a statically linked version of scan3.0.
Attachments
scan30_android.zip
(303.96 KiB) Downloaded 435 times

Fabien Letouzey
Posts: 299
Joined: Tue Jul 07, 2015 07:48
Real name: Fabien Letouzey

Re: Computer Draughts programs on Android

Post by Fabien Letouzey » Tue Apr 10, 2018 21:13

AartBik wrote:Anticipating Sidiki's next request:
...
and in hub mode:

Code: Select all

$ ./scan30_android  hub                                                                          
init
init book
init eval
ready
go
info score=-0.03 pv=34-29
done move=34-29 ponder=20-25
Thanks, that is so much better :)
Incidentally, I only noticed it was Scan 2.0 because of the Hub output!

Fabien.

Sidiki
Posts: 321
Joined: Thu Jan 15, 2015 16:28
Real name: Coulibaly Sidiki

Re: Computer Draughts programs on Android

Post by Sidiki » Tue Apr 10, 2018 21:30

Fabien Letouzey wrote:
AartBik wrote:Anticipating Sidiki's next request:
...
and in hub mode:

Code: Select all

$ ./scan30_android  hub                                                                          
init
init book
init eval
ready
go
info score=-0.03 pv=34-29
done move=34-29 ponder=20-25
Thanks, that is so much better :)
Incidentally, I only noticed it was Scan 2.0 because of the Hub output!

Fabien.
Hi and thank very much to AartBik and Fabien.
I downloaded the 2 files scan_2.0 and 3.0 zip i extracted them to my Android phone, but can you tell me please how to run them on Android.
I am so happy.

I don't know how to say you Thank.
God bless you !!!!!

Sidiki

AartBik
Posts: 103
Joined: Wed Mar 11, 2009 01:30
Location: Mountain View
Contact:

Re: Computer Draughts programs on Android

Post by AartBik » Tue Apr 10, 2018 21:57

Sidiki wrote:but can you tell me please how to run them on Android.
Note that these scan binaries run directly on ARM-based Android devices. In its raw form, you need to get to a command line on your device. Typically, ADB is used for this (see ADB overview). Ideally, however, you just need a checkers GUI running on Android that supports importing third party engine binaries. I added such support in my chess GUI back in 2010 (see Aart's Android UCI/XBoard page). Since I also have a 8x8 checkers GUI, I was interested in doing this a while back for checkers too. Due to the lack of a protocol standard (at that time) and the fact that most interest is in 10x10 draughts (which means I have to extend my GUI), however, I tabled the idea back then. Perhaps one of these days..... :-)

Fabien Letouzey
Posts: 299
Joined: Tue Jul 07, 2015 07:48
Real name: Fabien Letouzey

Re: Computer Draughts programs on Android

Post by Fabien Letouzey » Tue Apr 10, 2018 22:21

AartBik wrote:Ideally, however, you just need a checkers GUI running on Android that supports importing third party engine binaries.
Sidiki already knows how to use my Java GUI "Hub" on Windows. I am guessing that Android is Java-friendly, so hopefully all we need is the path to the Scan directory.

Sidiki
Posts: 321
Joined: Thu Jan 15, 2015 16:28
Real name: Coulibaly Sidiki

Re: Computer Draughts programs on Android

Post by Sidiki » Tue Apr 10, 2018 22:26

AartBik wrote:
Sidiki wrote:but can you tell me please how to run them on Android.
Note that these scan binaries run directly on ARM-based Android devices. In its raw form, you need to get to a command line on your device. Typically, ADB is used for this (see ADB overview). Ideally, however, you just need a checkers GUI running on Android that supports importing third party engine binaries. I added such support in my chess GUI back in 2010 (see Aart's Android UCI/XBoard page). Since I also have a 8x8 checkers GUI, I was interested in doing this a while back for checkers too. Due to the lack of a protocol standard (at that time) and the fact that most interest is in 10x10 draughts (which means I have to extend my GUI), however, I tabled the idea back then. Perhaps one of these days..... :-)
Thank again, i will search such gui, but i don't know if after Scan and Damage someone else is interested by doing 10x10 gui that take to account importation of third. I will search but will waiting for your 10x10 gui. :D

Thank for all.

Post Reply