Chess for Android with UCI support released

Discussion of chess software programming and technical issues.

Moderators: hgm, Harvey Williamson, bob

Forum rules
This textbox is used to restore diagrams posted with the [d] tag before the upgrade.
User avatar
abik
Posts: 626
Joined: Fri Dec 01, 2006 9:46 pm
Location: Mountain View, CA, USA
Contact:

Re: Chess for Android with UCI support released

Post by abik » Mon Sep 06, 2010 6:44 am

michiguel wrote:I see that android OS is a Linux derivative! wow! does it support pthreads?
Yes, Android is Linux-based. Both the BikJump versions use pthreads on Linux (and Window threads when compiled for Windows), and both versions compiled just fine for Android as well. I suspect that most UCI engines that can be compiled for Linux directly compile for Android too.

Can I look forward to a Gaviota for Android soon now? :-)

User avatar
michiguel
Posts: 6264
Joined: Thu Mar 09, 2006 7:30 pm
Location: Chicago, Illinois, USA
Contact:

Re: Chess for Android with UCI support released

Post by michiguel » Mon Sep 06, 2010 7:21 am

abik wrote:
michiguel wrote:I see that android OS is a Linux derivative! wow! does it support pthreads?
Yes, Android is Linux-based. Both the BikJump versions use pthreads on Linux (and Window threads when compiled for Windows), and both versions compiled just fine for Android as well. I suspect that most UCI engines that can be compiled for Linux directly compile for Android too.

Can I look forward to a Gaviota for Android soon now? :-)
Most likely!

I am getting closer to release a new version, so I may do it at that time. Gaviota's code is quite portable. Besides using 64 bit long long ints, and a handful of pthread functions (create, join, mutex and a semaphore) everything else is ANSI C (89).

Miguel

User avatar
abik
Posts: 626
Joined: Fri Dec 01, 2006 9:46 pm
Location: Mountain View, CA, USA
Contact:

Re: Chess for Android with UCI support released

Post by abik » Tue Sep 07, 2010 8:28 pm

michiguel wrote: Most likely!

I am getting closer to release a new version, so I may do it at that time.
I look forward to that Miguel!

Please let me know if I can help or ping me when you have a binary available so I can import and test it in Chess for Android. I guess then it also will make sense to store some Gaviota Tablebases on the phone besides the Nalimov endgame tablebases I have now for the other engines.

petero2
Posts: 560
Joined: Mon Apr 19, 2010 5:07 pm
Location: Sweden
Contact:

Re: Chess for Android with UCI support released

Post by petero2 » Sun Sep 12, 2010 9:29 am

Hi,

I have ported Stockfish to Android, but it is compiled as a library which is accessed using JNI. I suppose changing it to compile to a standalone program would be easy. If you are interested, the source code is in the jni directory in the droidfish tarball:

http://web.comhem.se/petero2home/droidf ... 17.tar.bz2

The "porting" didn't involve changing the stockfish source code. All that was needed was finding a compatible STL implementation for Android, and compiling the source code using the correct combination of compiler flags.

User avatar
abik
Posts: 626
Joined: Fri Dec 01, 2006 9:46 pm
Location: Mountain View, CA, USA
Contact:

Re: Chess for Android with UCI support released

Post by abik » Fri Sep 17, 2010 10:16 pm

petero2 wrote:I have ported Stockfish to Android, but it is compiled as a library which is accessed using JNI.
Thanks for the pointer Peter! With the latest compilers I was actually able to compile the original stockfish sources (version 1.8) directly into a native UCI engine and import it successfully in Chess for Android.

Image

User avatar
mhurd
Posts: 46
Joined: Wed Dec 30, 2009 8:27 pm

Re: Chess for Android with UCI support released

Post by mhurd » Sun Sep 19, 2010 12:52 pm

abik wrote:
petero2 wrote:I have ported Stockfish to Android, but it is compiled as a library which is accessed using JNI.
Thanks for the pointer Peter! With the latest compilers I was actually able to compile the original stockfish sources (version 1.8) directly into a native UCI engine and import it successfully in Chess for Android.
Is Stockfish 1.8 available for download ?

Mike

User avatar
abik
Posts: 626
Joined: Fri Dec 01, 2006 9:46 pm
Location: Mountain View, CA, USA
Contact:

Re: Chess for Android with UCI support released

Post by abik » Sun Sep 19, 2010 3:12 pm

mhurd wrote:Is Stockfish 1.8 available for download ?
Mike
I talked with the stockfish team and they very kindly agreed to make the natively compiled UCI binary of stockfish1.8 available through their website.

User avatar
abik
Posts: 626
Joined: Fri Dec 01, 2006 9:46 pm
Location: Mountain View, CA, USA
Contact:

Re: Chess for Android with UCI support released

Post by abik » Sun Sep 19, 2010 7:06 pm

abik wrote:I talked with the stockfish team and they very kindly agreed to make the natively compiled UCI binary of stockfish1.8 available through their website.
The link is up: http://www.stockfishchess.com/download/mobile/

Post Reply