Hi!
I need a "workable" Phalanx source code.
Im reffering this because theres not source of Phalanx Reborn from Jim Abblet (this freezes alyway)
Nor works 100% the version of ScidvsPC, but seems that are mainly for analisys.
Dann Corbitt´s are no longer available.
Any ideas?
Thanks in advance
Phalanx source code
Moderators: hgm, Rebel, chrisw
-
- Posts: 2949
- Joined: Mon May 05, 2008 12:16 pm
- Location: Bordeaux (France)
- Full name: Julien Marcel
Re: Phalanx source code
Yes, I compiled the latest one for MacOSX. You can download it here:
http://julien.marcel.free.fr/macchess/phalanx-XXIII.zip
(Sources included).
http://julien.marcel.free.fr/macchess/phalanx-XXIII.zip
(Sources included).
"The only good bug is a dead bug." (Don Dailey)
[Blog: http://tinyurl.com/predateur ] [Facebook: http://tinyurl.com/fbpredateur ] [MacEngines: http://tinyurl.com/macengines ]
[Blog: http://tinyurl.com/predateur ] [Facebook: http://tinyurl.com/fbpredateur ] [MacEngines: http://tinyurl.com/macengines ]
-
- Posts: 101
- Joined: Sat Mar 20, 2010 3:31 am
Re: Phalanx source code
Thanks!
Is this "ScidvsPC" version?
Thx
Is this "ScidvsPC" version?
Thx
-
- Posts: 1383
- Joined: Fri Jul 14, 2006 7:56 am
- Location: London, England
- Full name: Jim Ablett
Re: Phalanx source code
If you are running Phalanx on Windows you need to disable polling with a command line switch (or change in src before compiling) otherwise engine will not work correctly. You can also compile with Cygwin which will use the Unix polling correctly.Elorejano wrote:Hi!
I need a "workable" Phalanx source code.
Im reffering this because theres not source of Phalanx Reborn from Jim Abblet (this freezes alyway)
Nor works 100% the version of ScidvsPC, but seems that are mainly for analisys.
Dann Corbitt´s are no longer available.
Any ideas?
Thanks in advance
Code: Select all
Phalanx XXII
Usage: phalanx [options] [<moves> <minutes> [<increment in seconds>]]
phalanx [options] [<seconds per move>]
phalanx bench
phalanx bcreate [options]
Options: -t <transposition table size in kilobytes>
-f <fixed search time in seconds>
-x <+/-> xboard mode on/off default: on
-p <+/-> permanent brain on/off default: off
-s <+/-> show thinking on/off default: off
-c <+/-> cpu time default: off
-o <+/-> polling input default: on
-b <+/-> opening book default: on
-r <resign value in centipawns> default: 0 (no resigning)
-e <easy level 0...100> default: 0 (best play)
-l <+/-> learning on/off default: on
-v print version and exit
-P <primary book directory>
-S <secondary book directory>
-L <learning file directory>
-g <log file name>
Examples: phalanx -c+ -s+ -o - -x- -f 60 -t4000
xboard -fcp "phalanx -l+ -r800"
-
- Posts: 608
- Joined: Wed Oct 13, 2010 9:44 am
- Location: Australia
Re: Phalanx source code
Jim is right. Moreover, i spent hours looking for win32 polling code on the web, and it doesn't seem to exist (apart from compiling with cygwin.)
To disable polling the command is "phalanx.exe -o -"
The relevant code is in evaluate.c:
The FD_SET (etc) procs don't exist for Win32 except through cygwin, (which i don't have installed).
The best code is definitely in Scid vs. PC source, where a few bugs were fixed last year (including correctly parsing enpassent from FEN.)
Sorry for being so slack about keeping the sourceforge phalanx page up to date. I'll update it now with a note about the win32 issues.
To disable polling the command is "phalanx.exe -o -"
The relevant code is in evaluate.c:
Code: Select all
if(Flag.polling)
{
static fd_set readfds;
static struct timeval tv;
int data;
FD_ZERO (&readfds);
FD_SET (fileno(stdin), &readfds);
tv.tv_sec=0;
tv.tv_usec=0;
select(16, &readfds, 0, 0, &tv);
data=FD_ISSET(fileno(stdin), &readfds);
if(data) interrupt(0);
}
The best code is definitely in Scid vs. PC source, where a few bugs were fixed last year (including correctly parsing enpassent from FEN.)
Sorry for being so slack about keeping the sourceforge phalanx page up to date. I'll update it now with a note about the win32 issues.
-
- Posts: 101
- Joined: Sat Mar 20, 2010 3:31 am
Re: Phalanx source code
Thank, masters!
I will try..
I will try..
-
- Posts: 608
- Joined: Wed Oct 13, 2010 9:44 am
- Location: Australia
Re: Phalanx source code
Jim has sent me polling code for win32 (from Olithink) and it is in Scid vs. PC svn
After a quick test - it doesn't seem to update properly after a move, (when Scid sends)
So this needs sorting out, but definitely a big improvement.
After a quick test - it doesn't seem to update properly after a move, (when Scid sends)
Code: Select all
exit
force
setboard rn1qkb1r/1pp1pppp/p4n2/3p4/3P1Bb1/P6P/1PPNPPP1/R2QKBNR b KQkq - 0 5
analyze
-
- Posts: 608
- Joined: Wed Oct 13, 2010 9:44 am
- Location: Australia
Re: Phalanx source code
Here is the source and Jim's binary.
http://scidvspc.sourceforge.net/tmp/pha ... n32-ja.zip
http://scidvspc.sourceforge.net/tmp/pha ... n32-ja.zip
-
- Posts: 1383
- Joined: Fri Jul 14, 2006 7:56 am
- Location: London, England
- Full name: Jim Ablett
Re: Phalanx source code
Fixed this issue now I think.stevenaaus wrote:Jim has sent me polling code for win32 (from Olithink) and it is in Scid vs. PC svn
After a quick test - it doesn't seem to update properly after a move, (when Scid sends)So this needs sorting out, but definitely a big improvement.Code: Select all
exit force setboard rn1qkb1r/1pp1pppp/p4n2/3p4/3P1Bb1/P6P/1PPNPPP1/R2QKBNR b KQkq - 0 5 analyze
http://dl.dropbox.com/u/5047625/phalanx ... 0-rev2.zip
Jim.
-
- Posts: 101
- Joined: Sat Mar 20, 2010 3:31 am
Re: Phalanx source code
Thanks Jim!
But seems that Phalanx have time management bug. When is outoff book, its think too much, made a move, another "eternity" and loses on time.
Im using winboard and Arena
I dont know if is related to polling issues but in my computer (AMD, 2 cores, windowaXP).
Tell me if a winboard or Arena debug are needed
But seems that Phalanx have time management bug. When is outoff book, its think too much, made a move, another "eternity" and loses on time.
Im using winboard and Arena
I dont know if is related to polling issues but in my computer (AMD, 2 cores, windowaXP).
Tell me if a winboard or Arena debug are needed