| View previous topic :: View next topic |
| Author |
Message |
Aart Bik

Joined: 01 Dec 2006 Posts: 427 Location: Mountain View, CA, USA
|
Post subject: Re: What should I support, UCI or Winboard? Posted: Tue Apr 24, 2012 9:54 pm |
|
|
| hgm wrote: |
| If you support one of the protocols, you could support the other through an adapter. Especially for GUI engines to run UCI engines there are exellent open-source adapters. |
As hopefully known by now, I implemented support for both the UCI Protocol and the Chess Engine Communication Protocol (XBoard/WinBoard) in Chess for Android, which is Java GUI running on the Dalvik Virtual Machine. I found some features easier to implement in former, and other features easier in the latter, so I am steering clear from a protocol war.
However, the question whether the polyglot approach would work is interesting, so I decided to give that a try. I compiled the polyglot sources for ARM-based Android devices (I had to make a few source changes to make that work). Then I edited a polyglot.ini file pointing to my own UCI engine bikjump1.8 compiled for ARM:
| Code: |
[Polyglot]
EngineCommand=bikjump1.8
EngineName=BikJumpAsXBoard
EngineDir=./
[Engine]
|
And gave it a try directly from the command line:
| Code: |
$ ./polyglot_for_android
PolyGlot 1.4.67b by Fabien Letouzey.
new
st 1
post
go
1 -1 0 1 h4
1 +0 0 3 h3
1 +2 0 6 g3
1 +12 0 20 Nh3
1 +17 0 22 Nf3
2 +0 0 46 Nf3 Nf6
3 +17 0 148 Nf3 Nf6 Nc3
4 +0 1 772 Nf3 Nf6 Nc3 Nc6
5 +2 2 1691 Nf3 Nf6 Nc3 Nc6 g3
6 +0 5 3120 Nf3 Nf6 Nc3 Nc6 g3 g6
7 +5 8 6163 Nf3 Nf6 Nc3 Nc6 g3 g6 Bg2
8 +0 14 13282 Nf3 Nf6 Nc3 Nc6 g3 g6 Bg2 Bg7
9 +5 49 57243 Nf3 Nc6 Nc3 Nh6 Nd5 Nf5 b3 g6 Bb2
9 +5 49 81920 Nf3 Nc6 Nc3 Nh6 Nd5 Nf5 b3 g6 Bb2
move g1f3
|
So far, so good! I then tried the same approach in Chess for Android. After installing the polyglot_for_android binary, polyglot.init file and of course bikjump1.8 to internal memory, I could start polyglot_for_android as XBoard engine, but underwater talking to the UCI engine bikjump1.8. So, in principle, one could simply implement one protocol in the GUI, and rely on the adapter to support the other protocol, even on Android.
 |
|
| Back to top |
|
 |
|
| Subject |
Author |
Date/Time |
What should I support, UCI or Winboard? |
Asim Pereira |
Sun Apr 22, 2012 5:28 am |
Re: What should I support, UCI or Winboard? |
Ted Wong |
Sun Apr 22, 2012 6:26 am |
Re: What should I support, UCI or Winboard? |
Asim Pereira |
Sun Apr 22, 2012 7:39 am |
Re: What should I support, UCI or Winboard? |
Ted Wong |
Sun Apr 22, 2012 9:14 am |
Re: What should I support, UCI or Winboard? |
H.G.Muller |
Sun Apr 22, 2012 9:32 am |
Re: What should I support, UCI or Winboard? |
H.G.Muller |
Sun Apr 22, 2012 8:27 am |
Re: What should I support, UCI or Winboard? |
Aart Bik |
Tue Apr 24, 2012 9:54 pm |
Re: What should I support, UCI or Winboard? |
Daniel Mehrmann |
Wed Apr 25, 2012 6:17 am |
Re: What should I support, UCI or Winboard? |
H.G.Muller |
Wed Apr 25, 2012 8:55 am |
Re: What should I support, UCI or Winboard? |
Daniel Mehrmann |
Wed Apr 25, 2012 5:57 pm |
Re: What should I support, UCI or Winboard? |
Matthias Gemuh |
Sun Apr 22, 2012 3:04 pm |
Re: What should I support, UCI or Winboard? |
H.G.Muller |
Sun Apr 22, 2012 6:48 pm |
Re: What should I support, UCI or Winboard? |
Matthias Gemuh |
Sun Apr 22, 2012 8:14 pm |
Re: What should I support, UCI or Winboard? |
H.G.Muller |
Sun Apr 22, 2012 9:10 pm |
Re: What should I support, UCI or Winboard? |
Miguel A. Ballicora |
Sun Apr 22, 2012 9:19 pm |
Re: What should I support, UCI or Winboard? |
Evert Glebbeek |
Mon Apr 23, 2012 5:25 am |
Re: What should I support, UCI or Winboard? |
H.G.Muller |
Mon Apr 23, 2012 6:54 am |
Re: What should I support, UCI or Winboard? |
Evert Glebbeek |
Mon Apr 23, 2012 8:50 am |
Re: What should I support, UCI or Winboard? |
Ronald de Man |
Sun Apr 22, 2012 11:23 pm |
Re: What should I support, UCI or Winboard? |
Carlos Pesce |
Sun Apr 22, 2012 11:34 pm |
Re: What should I support, UCI or Winboard? |
Christopher Conkie |
Mon Apr 23, 2012 12:11 am |
Re: What should I support, UCI or Winboard? |
Carlos Pesce |
Tue Apr 24, 2012 12:12 am |
Re: What should I support, UCI or Winboard? |
Christopher Conkie |
Tue Apr 24, 2012 1:18 pm |
Re: What should I support, UCI or Winboard? |
H.G.Muller |
Tue Apr 24, 2012 1:25 pm |
Re: What should I support, UCI or Winboard? |
Christopher Conkie |
Tue Apr 24, 2012 1:34 pm |
Re: What should I support, UCI or Winboard? |
H.G.Muller |
Tue Apr 24, 2012 1:37 pm |
Re: What should I support, UCI or Winboard? |
Christopher Conkie |
Tue Apr 24, 2012 1:45 pm |
Re: What should I support, UCI or Winboard? |
H.G.Muller |
Tue Apr 24, 2012 1:53 pm |
Re: What should I support, UCI or Winboard? |
Christopher Conkie |
Tue Apr 24, 2012 2:27 pm |
Re: What should I support, UCI or Winboard? |
Christopher Conkie |
Sun Apr 22, 2012 10:42 pm |
Re: What should I support, UCI or Winboard? |
H.G.Muller |
Mon Apr 23, 2012 8:07 am |
Re: What should I support, UCI or Winboard? |
Ted Wong |
Mon Apr 23, 2012 10:43 am |
Re: What should I support, UCI or Winboard? |
H.G.Muller |
Mon Apr 23, 2012 11:16 am |
Re: What should I support, UCI or Winboard? |
Christopher Conkie |
Tue Apr 24, 2012 1:00 pm |
Re: What should I support, UCI or Winboard? |
H.G.Muller |
Tue Apr 24, 2012 1:04 pm |
Re: What should I support, UCI or Winboard? |
Christopher Conkie |
Tue Apr 24, 2012 3:09 pm |
Re: What should I support, UCI or Winboard? |
H.G.Muller |
Tue Apr 24, 2012 4:50 pm |
Re: What should I support, UCI or Winboard? |
Asim Pereira |
Tue Apr 24, 2012 5:29 pm |
Re: What should I support, UCI or Winboard? |
Michel Van den Bergh |
Tue Apr 24, 2012 6:07 pm |
Re: What should I support, UCI or Winboard? |
Miguel A. Ballicora |
Tue Apr 24, 2012 6:16 pm |
Re: What should I support, UCI or Winboard? |
Evert Glebbeek |
Mon Apr 23, 2012 11:25 am |
Re: What should I support, UCI or Winboard? |
Tony Mokonen |
Mon Apr 23, 2012 10:00 pm |
Re: What should I support, UCI or Winboard? |
Don Dailey |
Mon Apr 23, 2012 1:44 pm |
Re: What should I support, UCI or Winboard? |
H.G.Muller |
Mon Apr 23, 2012 2:11 pm |
Re: What should I support, UCI or Winboard? |
Don Dailey |
Mon Apr 23, 2012 2:51 pm |
Re: What should I support, UCI or Winboard? |
H.G.Muller |
Mon Apr 23, 2012 6:01 pm |
Re: What should I support, UCI or Winboard? |
Ronald de Man |
Mon Apr 23, 2012 7:33 pm |
Re: What should I support, UCI or Winboard? |
H.G.Muller |
Mon Apr 23, 2012 7:49 pm |
Re: What should I support, UCI or Winboard? |
Ronald de Man |
Mon Apr 23, 2012 9:03 pm |
Re: What should I support, UCI or Winboard? |
H.G.Muller |
Mon Apr 23, 2012 9:31 pm |
Re: What should I support, UCI or Winboard? |
Don Dailey |
Mon Apr 23, 2012 7:34 pm |
Re: What should I support, UCI or Winboard? |
H.G.Muller |
Mon Apr 23, 2012 9:15 pm |
Re: What should I support, UCI or Winboard? |
Michel Van den Bergh |
Tue Apr 24, 2012 6:23 am |
Re: What should I support, UCI or Winboard? |
H.G.Muller |
Tue Apr 24, 2012 8:19 am |
Re: What should I support, UCI or Winboard? |
Evert Glebbeek |
Tue Apr 24, 2012 8:39 am |
Re: What should I support, UCI or Winboard? |
Daniel Mehrmann |
Mon Apr 23, 2012 9:49 pm |
Re: What should I support, UCI or Winboard? |
H.G.Muller |
Mon Apr 23, 2012 10:08 pm |
Re: What should I support, UCI or Winboard? |
Daniel Mehrmann |
Mon Apr 23, 2012 10:42 pm |
Re: What should I support, UCI or Winboard? |
H.G.Muller |
Tue Apr 24, 2012 5:36 am |
Re: What should I support, UCI or Winboard? |
Daniel Mehrmann |
Tue Apr 24, 2012 6:50 am |
Re: What should I support, UCI or Winboard? |
H.G.Muller |
Tue Apr 24, 2012 7:17 am |
Re: What should I support, UCI or Winboard? |
Daniel Mehrmann |
Tue Apr 24, 2012 7:42 am |
Re: What should I support, UCI or Winboard? |
H.G.Muller |
Tue Apr 24, 2012 7:49 am |
Re: What should I support, UCI or Winboard? |
Daniel Mehrmann |
Tue Apr 24, 2012 8:16 am |
Re: What should I support, UCI or Winboard? |
H.G.Muller |
Tue Apr 24, 2012 8:35 am |
Re: What should I support, UCI or Winboard? |
Daniel Mehrmann |
Tue Apr 24, 2012 8:50 am |
Re: What should I support, UCI or Winboard? |
H.G.Muller |
Tue Apr 24, 2012 9:08 am |
Re: What should I support, UCI or Winboard? |
Ed Schroder |
Tue Apr 24, 2012 10:16 am |
Re: What should I support, UCI or Winboard? |
H.G.Muller |
Tue Apr 24, 2012 11:57 am |
Re: What should I support, UCI or Winboard? |
Daniel Mehrmann |
Tue Apr 24, 2012 7:45 pm |
Re: What should I support, UCI or Winboard? |
H.G.Muller |
Tue Apr 24, 2012 8:06 pm |
Re: What should I support, UCI or Winboard? |
Jon Dart |
Tue Apr 24, 2012 1:45 am |
Re: What should I support, UCI or Winboard? |
H.G.Muller |
Tue Apr 24, 2012 5:44 am |
Re: What should I support, UCI or Winboard? |
Jon Dart |
Tue Apr 24, 2012 11:15 am |
Re: What should I support, UCI or Winboard? |
H.G.Muller |
Tue Apr 24, 2012 12:32 pm |
Winboard ftw |
Daniel Shawul |
Wed Apr 25, 2012 2:10 pm |
Re: Winboard ftw |
H.G.Muller |
Wed Apr 25, 2012 2:45 pm |
Re: Winboard ftw |
Daniel Shawul |
Wed Apr 25, 2012 3:21 pm |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|