Plea for a computerchess beginners forum or FAQ

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

Moderators: hgm, Rebel, chrisw

User avatar
Rebel
Posts: 6991
Joined: Thu Aug 18, 2011 12:04 pm

Re: Plea for a computerchess beginners forum or FAQ

Post by Rebel »

Gerd Isenberg wrote: Wed Mar 10, 2021 6:03 pm
mvanthoor wrote: Tue Mar 09, 2021 5:44 pm The chess programming Wiki should be enough, but apart from looking through it for nostalgic purposes, I think it is often too general with regard of topic discussion, and it seems to have at least some mistakes (for example, a few days ago I found a discussion on transposition tables, where the pseudo-code on CPW was deemed to be wrong). The CPW is a great (historical) resource to get you going, but visiting it will only be a start.
Can you please provide a link to the wrong pseudo code in CPW? And a link to the discussion here as well.
I really hope, after more than 10 years of editing CPW, it is a little bit more than nostalgic stuff ;-)

Thanks & Regards,
Gerd
Best computer chess website on the Internet Gerd.
90% of coding is debugging, the other 10% is writing bugs.
User avatar
mvanthoor
Posts: 1784
Joined: Wed Jul 03, 2019 4:42 pm
Location: Netherlands
Full name: Marcel Vanthoor

Re: Plea for a computerchess beginners forum or FAQ

Post by mvanthoor »

Gerd Isenberg wrote: Wed Mar 10, 2021 6:03 pm Can you please provide a link to the wrong pseudo code in CPW? And a link to the discussion here as well.
I really hope, after more than 10 years of editing CPW, it is a little bit more than nostalgic stuff ;-)
Don't get me wrong, the CPW is a great resource to get started with things, and to get to know that concepts exist. I also like to browse it for historical information. For actually programming, I don't really use it.

The discussion / post I was referring to was this one, which I found while I was researching why my engine "forgot" how to mate after adding a TT:

http://www.talkchess.com/forum3/viewtop ... 99#p763944
From the code snippet you show here the CPW implementation looks weird indeed. Why does it store an upperbound each time when (val > alpha and val < beta) ?, storing an exact value at the end of the move loop without knowing whether alpha improved or not seems wrong too.

Normally you would do something like this ...
It's actually possible that this has been changed already. I haven't checked.
Author of Rustic, an engine written in Rust.
Releases | Code | Docs | Progress | CCRL
Gerd Isenberg
Posts: 2250
Joined: Wed Mar 08, 2006 8:47 pm
Location: Hattingen, Germany

Re: Plea for a computerchess beginners forum or FAQ

Post by Gerd Isenberg »

mvanthoor wrote: Wed Mar 10, 2021 6:48 pm
Gerd Isenberg wrote: Wed Mar 10, 2021 6:03 pm Can you please provide a link to the wrong pseudo code in CPW? And a link to the discussion here as well.
I really hope, after more than 10 years of editing CPW, it is a little bit more than nostalgic stuff ;-)
Don't get me wrong, the CPW is a great resource to get started with things, and to get to know that concepts exist. I also like to browse it for historical information. For actually programming, I don't really use it.

The discussion / post I was referring to was this one, which I found while I was researching why my engine "forgot" how to mate after adding a TT:

http://www.talkchess.com/forum3/viewtop ... 99#p763944
From the code snippet you show here the CPW implementation looks weird indeed. Why does it store an upperbound each time when (val > alpha and val < beta) ?, storing an exact value at the end of the move loop without knowing whether alpha improved or not seems wrong too.

Normally you would do something like this ...
It's actually possible that this has been changed already. I haven't checked.
OK, it is the concrete code of the CPW-engine by Pawel Koziol and Edmund Moshammer.

https://www.chessprogramming.org/CPW-Engine
https://www.chessprogramming.org/CPW-Engine_search

I intend not to change their original code, but indicating issues and errors for didactical reasons with comments inside or descriptions outside the code, including references, i.e. CCC postings. Pawel already fixed something in 2014 and put the CPW-engine on Git-hub, and is of course welcome to edit his original pages.

http://www.talkchess.com/forum3/viewtopic.php?t=54802
https://github.com/nescitus/cpw-engine/ ... search.cpp

Thanks for pointing that out!

Gerd
Gerd Isenberg
Posts: 2250
Joined: Wed Mar 08, 2006 8:47 pm
Location: Hattingen, Germany

Re: Plea for a computerchess beginners forum or FAQ

Post by Gerd Isenberg »

Rebel wrote: Wed Mar 10, 2021 6:43 pm Best computer chess website on the Internet Gerd.
Thanks for the compliments, Ed. But don't exaggerate :)
jefk
Posts: 626
Joined: Sun Jul 25, 2010 10:07 pm
Location: the Netherlands
Full name: Jef Kaan

Re: Plea for a computerchess beginners forum or FAQ

Post by jefk »

just make a 'high level' thread with text 'computerchess beginners';
or newbies or something like that. it's obviously a difference
whether you are here for 30 yrs or just looking.
my 2 cnts
www.superchess.blogspot.com