Android Request

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

Moderators: hgm, Rebel, chrisw

Mincho Georgiev
Posts: 454
Joined: Sat Apr 04, 2009 6:44 pm
Location: Bulgaria

Android Request

Post by Mincho Georgiev »

Hi, can someone provide a proper android binary?
My modified source is located in the /arm sub folder.
Also, if you happen to have a different arm device, any info on the binaries in the arm folder would be helpful.
Unfortunately, I had to link them dynamically with glibc 2.7, so that may be a problem for some arm linux distros.
Many thanks in advance, here's the link:

http://pawny.netii.net/pawny_1.2.zip
User avatar
abik
Posts: 819
Joined: Fri Dec 01, 2006 10:46 pm
Location: Mountain View, CA, USA
Full name: Aart Bik

Re: Android Request

Post by abik »

Mincho Georgiev wrote:Hi, can someone provide a proper android binary?
My modified source is located in the /arm sub folder.
Also, if you happen to have a different arm device, any info on the binaries in the arm folder would be helpful.
Unfortunately, I had to link them dynamically with glibc 2.7, so that may be a problem for some arm linux distros.
Many thanks in advance, here's the link:

http://pawny.netii.net/pawny_1.2.zip
Done. Just let me know how you want to get the binary (statically compiled).

Code: Select all

# ./pawny_1.2ab                                
uci
id name Pawny 1.2
id author Mincho Georgiev
option name Hash type spin default 32 min 8 max 1024
option name Reset Timer On Ponderhit type check default false
option name OwnBook type check default false
option name Ponder type check default false
uciok
Mincho Georgiev
Posts: 454
Joined: Sat Apr 04, 2009 6:44 pm
Location: Bulgaria

Re: Android Request

Post by Mincho Georgiev »

Thank you, Aart!
If an email works for you, email me at pawnychess@gmail.com
Much appreciated!!!
User avatar
abik
Posts: 819
Joined: Fri Dec 01, 2006 10:46 pm
Location: Mountain View, CA, USA
Full name: Aart Bik

Re: Android Request

Post by abik »

Mincho Georgiev wrote:Thank you, Aart!
If an email works for you, email me at pawnychess@gmail.com
Much appreciated!!!
Done!

Note that I had to make minor changes in the code at a few places to make it work with Chess for Android. When parsing moves, you skip a single space with an if, which I changed to a while to account for the extra spaces Chess for Android may send (which is within the UCI specs). You may want to put a similar, or better fix in your main branch.

Code: Select all

//get rid of the next space:                    //get rid of the next spaces:
if(isspace(*moves)) moves++;         -->        while(isspace(*moves)) moves++;
Mincho Georgiev
Posts: 454
Joined: Sat Apr 04, 2009 6:44 pm
Location: Bulgaria

Re: Android Request

Post by Mincho Georgiev »

Thanks, that's obviously a logical error, I guess I didn't expect more spaces back then, wrong assumption.
I'll fix it.