Search found 172 matches

by Harald
Mon Sep 21, 2020 5:47 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: PLEASE HELP with MATING scores adjustments in TT
Replies: 8
Views: 305

Re: PLEASE HELP with MATING scores adjustments in TT

May be in my original post below the video I confused the signs of +-ply. And the example I gave may be slightly wrong. Sorry for that.
But at least I initiated this discussion. :-)
by Harald
Sun Sep 13, 2020 8:24 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Triangular PV question
Replies: 10
Views: 316

Re: Triangular PV question

I am not even sure if I did it right. I can't exactly understand the reason behind if (in_pv && ply < last_pv_length) last_pv_move = pv_moves[0][ply]; and I still can't understand how switching in_pv (follow_pv) is switched, I mean I see all the places it has been changed in the search but can't und...
by Harald
Sun Sep 13, 2020 6:45 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Triangular PV question
Replies: 10
Views: 316

Re: Triangular PV question

Here is my next try. Just from memory. I hope that helps. This is how you could implement principle variation moves (pv moves). you need a global 2-dimensional array (for a maximum search depth of 100) int pv_moves[100][100]; and a global array of pv_length for each ply int pv_length[100]; and / or ...
by Harald
Sat Sep 12, 2020 8:38 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Triangular PV question
Replies: 10
Views: 316

Re: Triangular PV question

May be I am just tired. Good night!
by Harald
Sat Sep 12, 2020 8:21 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Triangular PV question
Replies: 10
Views: 316

Re: Triangular PV question

"This code only makes copy of next ply move to the current ply line."

My version copies the best PV from the deeper ply back to the current ply
and your version does not. Compare the versions, please.
by Harald
Sat Sep 12, 2020 7:25 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Triangular PV question
Replies: 10
Views: 316

Re: Triangular PV question

May be

Code: Select all

            // loop over the next ply
            for (int next_ply = ply + 1; next_ply < pv_length[ply + 1]; next_ply++)
                // copy move from next ply to the current line
                pv_table[ply][next_ply] = pv_table[ply + 1][next_ply];
by Harald
Tue Aug 25, 2020 12:22 pm
Forum: Computer Chess Club: General Topics
Topic: Chess programming on YouTube: NOBODY CARES?
Replies: 44
Views: 4215

Re: Chess programming on YouTube: NOBODY CARES?

After watching Bitboard CHESS ENGINE in C on youtube I have some comments. Don't comment count++; with // increment count. Write printf("%llu", bitboard); and not printf("%llud", bitboard); Otherwise you get an ugly d after the number because you yourself put it there. %u already means unsigned int ...
by Harald
Wed Feb 12, 2020 7:46 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: New RookAttacks() - possibly
Replies: 11
Views: 2072

Re: New RookAttacks() - possibly

Hi Michael I am Harald Lüßen -- or if you do not like ü and ß -- Harald Luessen. I read this u64 bb = ss1[sq][(occ.b64 >> (((sq >> 3 << 3) + 1) & 7))]; as u64 bb = ss1[sq][(occ.b64 >> (((sq & 0xc8) + 1) & 7))]; or u64 bb = ss1[sq][(occ.b64 >> (((sq & 56) + 1) & 7))]; and then it is u64 bb = ss1[sq][...
by Harald
Wed Apr 24, 2019 8:40 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Chess engines for circular chess boards
Replies: 32
Views: 8468

Re: Chess engines for circular chess boards

You described the knight move as Y shaped. You could also desribe it as T shaped.
Two steps orthogonally and then one step to each side.
by Harald
Tue Apr 16, 2019 6:26 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Winboard state machine diagram
Replies: 10
Views: 4567

Re: Winboard state machine diagram

Thank you for that explanation. May be I try to visualize that somehow. My diagram was created from the engine's point of view. While it is mostly just waiting or looping around in the observing force mode it gets all kinds of commands that just change some variables. Perhaps some member variables o...