SUNFISH - a new chess engine written in Python !

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

Moderator: Ras

JoshPettus
Posts: 730
Joined: Fri Oct 19, 2012 2:23 am

Re: Increasing the performances !

Post by JoshPettus »

Well never mind that fairymax has the C++ advantage, I wouldn't necessarily call it a slouch (despite it's lineage) :)

I think a more interesting comparison would be how it compares to other engines from odd code/scripting languages: python, java,... ruby...lua... C is boring, everyone does it. :lol:

There is a saying, "art from adversity."
Last edited by JoshPettus on Thu Mar 06, 2014 8:01 pm, edited 1 time in total.
User avatar
Sylwy
Posts: 4825
Joined: Fri Apr 21, 2006 4:19 pm
Location: IAȘI - the historical capital of MOLDOVA
Full name: Silvian Rucsandescu

Re: Increasing the performances !

Post by Sylwy »

ZirconiumX wrote:I have to agree with you Ruxy, the engine can be very aggressive. Mind you, so can others.

Poor Sunfish was helpless against Fairy-Max...



Note: this is a version where I have added a few patches to help it along, like LMR (questionably sound at the moment) and making the TT move before any others. You can see my patches at https://github.com/ZirconiumX/sunfish (shameless plug).

Matthew:out
Well, this year is a little fish , the next will be a PYTHON+SHARK !!!!! :lol:

Thank YOU a lot, ZirconiumX !
SilvianR :wink:
JoshPettus
Posts: 730
Joined: Fri Oct 19, 2012 2:23 am

Re: Increasing the performances !

Post by JoshPettus »

Sylwy wrote: Well, this year is a little fish , the next will be a PYTHON+SHARK !!!!! :lol:
How about a sea snake? :wink:
User avatar
Sylwy
Posts: 4825
Joined: Fri Apr 21, 2006 4:19 pm
Location: IAȘI - the historical capital of MOLDOVA
Full name: Silvian Rucsandescu

Re: Increasing the performances !

Post by Sylwy »

JoshPettus wrote:
Sylwy wrote: Well, this year is a little fish , the next will be a PYTHON+SHARK !!!!! :lol:
How about a sea snake? :wink:
:lol:

The father & the mother are PYTHON(s) !
ZirconiumX
Posts: 1351
Joined: Sun Jul 17, 2011 11:14 am
Full name: Hannah Ravensloft

Re: Increasing the performances !

Post by ZirconiumX »

Sylwy wrote:
ZirconiumX wrote:I have to agree with you Ruxy, the engine can be very aggressive. Mind you, so can others.

Poor Sunfish was helpless against Fairy-Max...



Note: this is a version where I have added a few patches to help it along, like LMR (questionably sound at the moment) and making the TT move before any others. You can see my patches at https://github.com/ZirconiumX/sunfish (shameless plug).

Matthew:out
Well, this year is a little fish , the next will be a PYTHON+SHARK !!!!! :lol:

Thank YOU a lot, ZirconiumX !
SilvianR :wink:
No problem - it's one of the few engines I can play with under the Great Firewall of School.

It's pretty strong for its size. I don't think Python was designed for something like this, since I can wring out of vanilla python 12.5KNPS. This is opposed to the 4MNPS that SFDD gets.

Matthew:out
tu ne cede malis, sed contra audentior ito
User avatar
Sylwy
Posts: 4825
Joined: Fri Apr 21, 2006 4:19 pm
Location: IAȘI - the historical capital of MOLDOVA
Full name: Silvian Rucsandescu

Re: Increasing the performances !

Post by Sylwy »

ZirconiumX wrote: I don't think Python was designed for something like this, since I can wring out of vanilla python 12.5KNPS. This is opposed to the 4MNPS that SFDD gets.

Matthew:out
Agreed ! That's because of it is very interesting !

SilvianR :wink:
User avatar
Sylwy
Posts: 4825
Joined: Fri Apr 21, 2006 4:19 pm
Location: IAȘI - the historical capital of MOLDOVA
Full name: Silvian Rucsandescu

Re: A new version is out !

Post by Sylwy »

https://github.com/thomasahle/sunfish/a ... master.zip

(code cleaned up mainly).

THANK YOU , Thomas !

SilvianR :wink:
drowsy
Posts: 14
Joined: Thu Nov 06, 2008 5:34 am

Re: A new version is out !

Post by drowsy »

[Event "?"]
[Site "?"]
[Date "2014.03.09"]
[Round "?"]
[White "me"]
[Black "Sunfish"]
[Result "1-0"]

1. d4 Nf6 2. c4 Nc6 3. Nc3 d5 4. cxd5 Nxd5 5. e4 Nxc3 6. bxc3 f5 7. Bd3 e5 8. exf5 exd4 9. Qh5+ Kd7 10. Ne2 dxc3 11. O-O Bb4 12. Rd1 Qf6 13. Bg5 Qf8 14. Nxc3 Bd6 15. Ne4 h6 16. Bh4 Nd4 17. f6 gxf6 18. Nxf6+ Kc6 19. Qd5+ Kb6 20. Rab1+ Bb4 21. Qxd4+ Ka5 22. a3 Be1 23. Rb5+ *

You won

Hehe, beat it on the first try.
drowsy
Posts: 14
Joined: Thu Nov 06, 2008 5:34 am

Re: A new version is out !

Post by drowsy »

The second game.

[Event "?"]
[Site "?"]
[Date "????.??.??"]
[Round "?"]
[White "Toporov"]
[Black "Sunfish"]
[Result "1-0"]

1. e4 Nf6 2. e5 Ne4 3. d3 Nc5 4. d4 Ne6 5. Nf3 d5 6. Be2 Nd7 7. O-O c5 8. c3 f6 9. Be3 fxe5 10. dxe5 Qb6 11. Qxd5 Qxb2 12. Nbd2 Nb6 13. Qe4 Qxc3 14. Rfc1 Qb2 15. Rab1 Qxa2 16. Ng5 Nxg5 17. Bxg5 e6 18. Bh5+ g6 19. Bxg6+ hxg6 20. Qxg6+ Kd7 21. Qf7+ Kc6 22. Bd8 Nd5 23. Nb3 Bd7 24. Nd4# *
User avatar
Sylwy
Posts: 4825
Joined: Fri Apr 21, 2006 4:19 pm
Location: IAȘI - the historical capital of MOLDOVA
Full name: Silvian Rucsandescu

Re: My final opinion about Sunfish 12_03_2014

Post by Sylwy »

Tоварищами,

The best chess engine written in Python ever (working in Windows) !
An attacker in its class !
After a lot of tests, at various TCs and opponents, I think this version is equal with Talvmenni 0.1 (1059 ELO CCRL_4_40) !

Have a nice day !

SilvianR :wink:

Image