Sunfish and cpw-engine in Linux

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

Moderators: bob, hgm, Harvey Williamson

Forum rules
This textbox is used to restore diagrams posted with the [d] tag before the upgrade.
Post Reply
JohnWoe
Posts: 92
Joined: Sat Mar 02, 2013 10:31 pm

Sunfish and cpw-engine in Linux

Post by JohnWoe » Fri Jun 07, 2019 10:06 pm

I tried to test Sapeli against new opponents.
It seems like these guys only work under Windows?

Sunfish / python is leaking memory as memory goes higher.
With python sunfish is getting only 10,000nps while Sapeli gets 2,000,000nps.
With pypy sunfish gets 20,000nps.
So while being 200-100x slower it still plays quite well. There is potential. The little I could see on xboard before it crashed.

Code: Select all

Finished game 17 (Sapeli 1.19-alpha vs Sunfish): 1-0 {Black loses on time}
Score of Sapeli 1.19-alpha vs Sunfish: 17 - 0 - 0  [1.000] 17
Started game 18 of 100 (Sunfish vs Sapeli 1.19-alpha)
Finished game 18 (Sunfish vs Sapeli 1.19-alpha): 0-1 {White loses on time}
Score of Sapeli 1.19-alpha vs Sunfish: 18 - 0 - 0  [1.000] 18
Started game 19 of 100 (Sapeli 1.19-alpha vs Sunfish)
Finished game 19 (Sapeli 1.19-alpha vs Sunfish): 1-0 {Black loses on time}
Score of Sapeli 1.19-alpha vs Sunfish: 19 - 0 - 0  [1.000] 19
Started game 20 of 100 (Sunfish vs Sapeli 1.19-alpha)
Terminating process of engine Sunfish(1)
Elo difference: inf +/- nan
Finished match
Finished game 20 (Sunfish vs Sapeli 1.19-alpha): 0-1 {White's connection stalls}
Score of Sapeli 1.19-alpha vs Sunfish: 20 - 0 - 0  [1.000] 20
cpw
I compiled it.

Code: Select all

g++ -O1 -DNDEBUG *.cpp -o cpwengine
uci seems to work fine.

Code: Select all

./cpwengine uci
Cannot open cpw.ini, default settings will be used 
Cannot open cpw_book.txt, only small internal book will be used 
uci
id name CPW-Engine 1.1.18
id author Computer Chess Wiki
option name Hash type spin default 64 min 1 max 1024
option name Ponder type check default true
uciok
Trying to match. The same story under xboard. It just stalls.

Code: Select all

19 >UciEngine(0): uci
20 >UciEngine(1): uci
Engine UciEngine(0) did not start the chess protocol in time
Terminating process of engine UciEngine(0)
Engine UciEngine(1) did not start the chess protocol in time
Terminating process of engine UciEngine(1)
Finished game 1 (UciEngine vs UciEngine): * {No result}
Score of  vs : 0 - 0 - 0  [nan] 0
35304 >UciEngine(2): uci
35305 >UciEngine(3): uci

Post Reply