Sapeli 1.0 - New chess engine

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.
User avatar
Roland Chastain
Posts: 219
Joined: Sat Jun 08, 2013 8:07 am
Location: France
Full name: Roland Chastain
Contact:

Re: Sapeli 1.0 - New chess engine

Post by Roland Chastain » Mon Jul 29, 2019 4:30 pm

JohnWoe wrote:
Mon Jul 29, 2019 10:03 am
This was actually a bad bug. I wrote this tactical loop for simplicity not for speed. Still it got out of array bounds. Removed those infected 1.3x releases.
+ other small fixes
Thank you for the new version. It seems to work correctly. However, I noticed that after each Sapeli 1.40 game, Cutechess-cli sends a warning: "EngineProcess: Destroyed while process is still running."

Updated my Windows binaries package. All recompiled with -DNDEBUG option.

JohnWoe
Posts: 99
Joined: Sat Mar 02, 2013 10:31 pm

Re: Sapeli 1.0 - New chess engine

Post by JohnWoe » Tue Aug 06, 2019 3:23 pm

A very modest update. Sapeli 1.42
+ Support for clang++
+ fixes / just polishing code tho could be 1 ELO stronger...

Source code: https://github.com/SamuraiDangyo/Sapeli/tree/1.42
Release: https://github.com/SamuraiDangyo/Sapeli ... s/tag/1.42

Now 4 compilers can compile Sapeli:

Code: Select all

gcc     -bench : = nodes 122767285 mnps 4.091 time 30.010
g++     -bench : = nodes 116360446 mnps 3.877 time 30.010
clang++ -bench : = nodes 23643080 mnps 0.788 time 30.018
clang   -bench : = nodes 23846371 mnps 0.794 time 30.016

JohnWoe
Posts: 99
Joined: Sat Mar 02, 2013 10:31 pm

Re: Sapeli 1.0 - New chess engine

Post by JohnWoe » Sun Sep 15, 2019 8:46 am

Sapeli 1.43!
~30 ELO stronger than v1.42. In chess960 games.
Mainly tuning eval and removing hurting eval terms.
Source code is cleaner and smaller. (Sapeli.c is now just 91588 bytes!). I'm making Sapeli source code smaller in future. Not adding more and more stuff.

Release: https://github.com/SamuraiDangyo/Sapeli ... s/tag/1.43
Master: https://github.com/SamuraiDangyo/Sapeli
Dev branch: https://github.com/SamuraiDangyo/Sapeli/tree/dev
versions.txt: https://github.com/SamuraiDangyo/Sapeli ... s.txt#L149

User avatar
mclane
Posts: 16251
Joined: Thu Mar 09, 2006 5:40 pm
Location: US of Europe, germany
Full name: Thorsten Czub
Contact:

Re: Sapeli 1.0 - New chess engine

Post by mclane » Sun Sep 15, 2019 9:37 am

Speed is not everything. Sometimes evaluation replaces depth.
What seems like a fairy tale today may be reality tomorrow.
Here we have a fairy tale of the day after tomorrow....

User avatar
Roland Chastain
Posts: 219
Joined: Sat Jun 08, 2013 8:07 am
Location: France
Full name: Roland Chastain
Contact:

Re: Sapeli 1.0 - New chess engine

Post by Roland Chastain » Tue Sep 17, 2019 7:15 am

@JohnWoe

Congratulations for the 1.44 version.

I still get a warning from CuteChess Cli "EngineProcess: Destroyed while process is still running". Not had time to look into the source code, but I imagine that it is related to the management of the "quit" command. I have that issue since 1.40.

Updated my Windows binaries.

camava
Posts: 28
Joined: Tue Apr 09, 2019 6:10 pm
Full name: mario varela

Re: Sapeli 1.0 - New chess engine

Post by camava » Tue Sep 17, 2019 3:00 pm

Hello.have anyone a Sapeli Android version? Thank you very much

JohnWoe
Posts: 99
Joined: Sat Mar 02, 2013 10:31 pm

Re: Sapeli 1.0 - New chess engine

Post by JohnWoe » Fri Sep 20, 2019 11:28 pm

Roland Chastain wrote:
Tue Sep 17, 2019 7:15 am
@JohnWoe

Congratulations for the 1.44 version.

I still get a warning from CuteChess Cli "EngineProcess: Destroyed while process is still running". Not had time to look into the source code, but I imagine that it is related to the management of the "quit" command. I have that issue since 1.40.

Updated my Windows binaries.
Thanks and for the builds too! :D
I added them here: https://github.com/SamuraiDangyo/Sapeli ... naries/bin

I tried to fix that bug. I used to just call exit(). Maybe Windows handles exit() differently. But now I handle it differently.

I also released Sapeli 1.45: Lots of cleanups etc.
Release: https://github.com/SamuraiDangyo/Sapeli ... /tag/v1.45
Master: https://github.com/SamuraiDangyo/Sapeli/
Changes: https://github.com/SamuraiDangyo/Sapeli ... s.txt#L156

JohnWoe
Posts: 99
Joined: Sat Mar 02, 2013 10:31 pm

Re: Sapeli 1.0 - New chess engine

Post by JohnWoe » Sat Sep 21, 2019 8:02 am

One more release as I was experimenting and there was 1 mistake. Stronger as the Eval() behaves now as it should.

Sapeli has been on diet and now the whole program is just "(3691 sloc) and 86.9 KB" according to github. Which is good.

Sapeli 1.46
Release: https://github.com/SamuraiDangyo/Sapeli ... /tag/v1.46
Master: https://github.com/SamuraiDangyo/Sapeli

JohnWoe
Posts: 99
Joined: Sat Mar 02, 2013 10:31 pm

Re: Sapeli 1.0 - New chess engine

Post by JohnWoe » Sat Sep 28, 2019 12:06 pm

Sapeli 1.47

Some improvements. Lots of fixes etc. A bit stronger than 1.46. For example I removed close_to_enemy_king eval term it didn't make any sense to have your bishop closer to enemy king. etc. Have fun :P

Release: https://github.com/SamuraiDangyo/Sapeli ... /tag/v1.47
Master: https://github.com/SamuraiDangyo/Sapeli
More: https://github.com/SamuraiDangyo/Sapeli ... s.txt#L164
Dev branch: https://github.com/SamuraiDangyo/Sapeli/tree/dev
A fast profile build I compiled: https://github.com/SamuraiDangyo/Sapeli ... it-profile

JohnWoe
Posts: 99
Joined: Sat Mar 02, 2013 10:31 pm

Re: Sapeli 1.0 - New chess engine

Post by JohnWoe » Sun Oct 13, 2019 9:40 pm

Sapeli 1.53
Source code: https://github.com/SamuraiDangyo/Sapeli
Release: https://github.com/SamuraiDangyo/Sapeli ... /tag/v1.53

- Somehow I forgot knight outposts in earlier versions.
- Simplifications.
- Added check extensions.
- PST are now const.

Nice underpromotion in the end. :D In 1 minute Chess960 games v1.53 beats v1.52 ( 11 - 6 - 3 ) type of scores all the time.

Post Reply