Search found 178 matches

by Harald
Fri Jan 19, 2018 10:42 pm
Forum: Computer Chess Club: General Topics
Topic: A Chess variant with low draw rate
Replies: 15
Views: 3825

Re: A Chess variant with low draw rate

What do you mean with opening position (in the image)
[D]3rqknr/4bpp1/4bpp1/1PP1npp1/1PPN1pp1/1PPB4/1PPB4/RNKQR3 w - - ?
The games listed in your post have other and different starting positions.
by Harald
Tue Nov 14, 2017 7:45 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: assert
Replies: 17
Views: 4225

Re: assert

This is pointless. Just clutters the code for no reason.
The point is that you can choose which portions of your program you want to debug today without making the whole program slower.
by Harald
Mon Nov 13, 2017 12:53 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: assert
Replies: 17
Views: 4225

Re: assert

If you want to test only parts of your code then you can do things like this: In an header like basics.h // Which tests should be performed #ifdef _DEBUG #define ASSERT_BASICS(c,t) { if ( !(c) ) throw (t); } #define ASSERT_PRINCIPAL_VARIATION(c,t) { if ...
by Harald
Tue Oct 24, 2017 8:53 pm
Forum: Computer Chess Club: General Topics
Topic: 4-player-chess: computerprogram
Replies: 2
Views: 2361

Re: 4-player-chess: computerprogram

My guess for the evaluation is:
First do 4 individual static evaluations, one for each player and his pieces.
Then each player who has the right to move tries to maximize the term
his_evaluation - max(the other evaluations)
by Harald
Tue Dec 29, 2015 10:09 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: CECP ('WB protocol') specs
Replies: 59
Views: 8255

Re: CECP ('WB protocol') specs

Does the ping mechanism start with 0 or 1? Are all following pings in order 1, 2, 3, 4, ..., N, N+1, ...? The engine would then recognise everything else as error. XBoard starts at 1, but the original specs do not require anything. The GUI designer can use this freedom to his advantage. The only si...
by Harald
Tue Dec 29, 2015 10:02 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: CECP ('WB protocol') specs
Replies: 59
Views: 8255

Re: CECP ('WB protocol') specs

The use of usermove should be mandatory for the gui in the xboard protocol v2 or at least the gui should alway send it. If an engine wants to allow simple move input without 'usermove' then it can always do it leaving the xboard specification. You could start the engine with a '-cmd' parameter or an...
by Harald
Mon Dec 28, 2015 11:45 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: CECP ('WB protocol') specs
Replies: 59
Views: 8255

Re: CECP ('WB protocol') specs

Does the ping mechanism start with 0 or 1?
Are all following pings in order 1, 2, 3, 4, ..., N, N+1, ...?
The engine would then recognise everything else as error.
by Harald
Tue Dec 22, 2015 10:43 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Incremental update
Replies: 62
Views: 9596

Re: Incremental update

Could it be that the rotating indices approach has something to do woth this discussion? There is the updateRotatedIndices() function and the method was fast. I found an old post with this topic: http://www.talkchess.com/forum/viewtopic.php?topic_view=threads&p=140155&t=16002 from this thread http:/...
by Harald
Fri Dec 04, 2015 7:59 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Ugly UCI
Replies: 134
Views: 23533

Re: Ugly WinBoard

Well, the ping command is pretty essential, to repair some defects in the original protocol. In particular that some commands can terminate with or without output (e.g. a search interrupted by a 'force' command), so that you never know if you just haven't seen the output because the command is stil...
by Harald
Fri Jun 27, 2014 11:05 am
Forum: Computer Chess Club: General Topics
Topic: Obligatory scaling
Replies: 23
Views: 4365

Re: Obligatory scaling

Your rule just counts the black and white pawns on one side. I assume 4 vs. 2 or 1 or 0 pawns are not part of this rule, right? (The same for 3 vs. 1 or 0 and 2 vs. 0.) What if there are 5 pawns for one side? What if there are double or triple pawns? What if some of the pawns have already passed eac...