Search found 81 matches

by maksimKorzh
Fri Oct 05, 2018 4:30 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Minimalism in chess programming
Replies: 49
Views: 11357

Re: Minimalism in chess programming

Now I'm also trying single letter variables which is a pain on the one hand but makes me unexpectedly happy on the other. I'd suggest not to write programs with single-letter variable names, type names etc. If you really want to keep up the goal of minimal source code size then write readable and w...
by maksimKorzh
Fri Oct 05, 2018 4:22 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Minimalism in chess programming
Replies: 49
Views: 11357

Re: Minimalism in chess programming

Mr. Muller, I've been researching my node calculating issue for several days and didn't find the solution so far, BUT now I know exactly where is the particular problem. in this position: r3k2r/p1ppqpb1/bn2pnp1/1B1PN3/1p2P3/2N2Q1p/PPPB1PPP/R3K2R b KQkq - 1 1 my engine makes move d7d6 at depth 1, wh...
by maksimKorzh
Fri Oct 05, 2018 7:43 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Minimalism in chess programming
Replies: 49
Views: 11357

Re: Minimalism in chess programming

I got that after daily applying trial and error method))) At the moment I'm trying to implement makemove/takeback routines separated from movegen to improve move ordering. Thank you for your help, Mr. Muller, you've left me alone at just the right moment :D I've been rewriting my micro-Max based mov...
by maksimKorzh
Sat Sep 29, 2018 12:45 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Minimalism in chess programming
Replies: 49
Views: 11357

Re: Minimalism in chess programming

Mr. Muller, I've been researching my node calculating issue for several days and didn't find the solution so far, BUT now I know exactly where is the particular problem. in this position: r3k2r/p1ppqpb1/bn2pnp1/1B1PN3/1p2P3/2N2Q1p/PPPB1PPP/R3K2R b KQkq - 1 1 my engine makes move d7d6 at depth 1, whi...
by maksimKorzh
Sat Sep 29, 2018 7:35 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Minimalism in chess programming
Replies: 49
Views: 11357

Re: Minimalism in chess programming

Yep :) That's what I am actually doing now. I did this before using vice to calibrate my previous engines but they all had separated MakeMove(), TakeBack() etc. functions compare to one I'm currently working now, but nevertheless I've managed to print root nodes internally (like internal iterative ...
by maksimKorzh
Wed Sep 26, 2018 6:10 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Minimalism in chess programming
Replies: 49
Views: 11357

Re: Minimalism in chess programming

Yep :) That's what I am actually doing now. I did this before using vice to calibrate my previous engines but they all had separated MakeMove(), TakeBack() etc. functions compare to one I'm currently working now, but nevertheless I've managed to print root nodes internally (like internal iterative d...
by maksimKorzh
Wed Sep 26, 2018 9:34 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Minimalism in chess programming
Replies: 49
Views: 11357

Re: Minimalism in chess programming

I said 'perft routine' because here you use it as such. You are right that it is just the modified all-in-one Search function. But it cannot do perft and search at the same time (as the search does beta cutoffs, which would interfere with the counting). So I assumed you just commented-out search-re...
by maksimKorzh
Tue Sep 25, 2018 1:36 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Minimalism in chess programming
Replies: 49
Views: 11357

Re: Minimalism in chess programming

But I assume the problem might be because movegen somehow counts illegal moves after king has been captured or something like that. Indeed, perft only counts legal moves, and the move generator is a pseudo-legal move generator. So you would have to 'vet' each move for legality before you can count ...
by maksimKorzh
Mon Sep 24, 2018 7:41 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Minimalism in chess programming
Replies: 49
Views: 11357

Re: Minimalism in chess programming

Well, if the piece encoding is the same as in micro-Max (order wP, bP, K, N, B, R, Q) there should be no need to worry about King inside the loop. You start at Q, and the condition in the while clause would decrement it as a side effect, to, R, B, N, and then terminate the loop when it reaches K. (...
by maksimKorzh
Sun Sep 23, 2018 9:18 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Minimalism in chess programming
Replies: 49
Views: 11357

Re: Minimalism in chess programming

Mr. Muller, I feel so excited finishing the move generator and greatly appreciate your help, many many thanks! Now it's time for me to take a hard decision of how to proceed. I really need your guidance now, could you please describe the pros and cons of keeping all-in-one search() compare to separa...