Search found 16745 matches

by bob
Tue Feb 20, 2018 10:23 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: I'm not very happy with the do {} while() statement in C
Replies: 111
Views: 26318

Re: I'm not very happy with the do {} while() statement in C

Okay Bob, Assuming that you still do not like the final draft of my initializing function then the appropriate saying would be, "put up or shut up". So how would you write it? And if you write it and I like it I will use it and give you full credit in the readme file. I'm the student and you are th...
by bob
Tue Feb 20, 2018 5:51 am
Forum: Computer Chess Club: General Topics
Topic: question about non determinism of chess programs
Replies: 5
Views: 1476

Re: question about non determinism of chess programs

stockfish played in TCEC in the first move 3 different moves: 1.e4 1.d4 1.Nf3 Now the question is the following: If you play engine A against engine B for n plies with no book(A is white) and repeat it for N games how many different games you can expect to have of course it is a function of A B and...
by bob
Tue Feb 20, 2018 5:22 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: I'm not very happy with the do {} while() statement in C
Replies: 111
Views: 26318

Re: I'm not very happy with the do {} while() statement in C

Goto is a perfectly fine tool - and like any tool, it can be misused. The goto aversion stems from a Dijkstra article in the 1960s, but that referred to the goto in Basic. That was another beast because it was using fixed line numbers as jump targets, which quickly could become a maintenance nightm...
by bob
Tue Feb 20, 2018 5:13 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: I'm not very happy with the do {} while() statement in C
Replies: 111
Views: 26318

Re: I'm not very happy with the do {} while() statement in C

In the do while loop I have to execute instructions that at some point will not need to be executed. It is not really a problem in this simple initiation example. But still it seems like a poor design. It would be perfect if the do while worked like this. k = i + dir[j]; if (initBoard[k]) {...
by bob
Sat Feb 03, 2018 8:00 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Fen is incomplete
Replies: 6
Views: 2455

Re: Fen is incomplete

FEN also does not encode other information along the same lines: whether either of the Kings has moved (and moved back for example...) and the same for Rooks (with respect to the legality of castling etc). Eh? FEN has ALWAYS included castling status for both directions, both sides. The KQkq you oft...
by bob
Tue Dec 26, 2017 5:05 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Time Managment translating to SMP
Replies: 4
Views: 1574

Re: Time Managment translating to SMP

Don’t ever wait for anything to finish, as soon as you go over the time you’ve alloted, immediately cancel the search ASAP and return the result. Seems dangerous. Suppose you just failed low on the current move. Stop and play it if you reach your target time? Or continue searching the remaining mov...
by bob
Sun Dec 24, 2017 4:40 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Time Managment translating to SMP
Replies: 4
Views: 1574

Re: Time Managment translating to SMP

Don’t ever wait for anything to finish, as soon as you go over the time you’ve alloted, immediately cancel the search ASAP and return the result. Seems dangerous. Suppose you just failed low on the current move. Stop and play it if you reach your target time? Or continue searching the remaining mov...
by bob
Wed Aug 16, 2017 8:12 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: What is causing this problem?
Replies: 6
Views: 1741

Re: What is causing this problem?

If the second move changes, that means move ordering was broken below that node. Not that unusual. Only thing I would do is compare the two PVs to make sure something is not broken to make you expend that kind of effort needlessly.
by bob
Tue Jul 25, 2017 5:06 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Core behaviour
Replies: 34
Views: 6851

Re: Core behaviour

Nobody cares? Or do I miss something? Thanks for your investigations! As I don't feel that I have a problem to solve, for the moment I keep doing like always, but this is noted for if something related seems to happen. Is like what Bob said of testing with Linux, very useful in some context. Indeed...
by bob
Wed Jul 12, 2017 6:41 pm
Forum: Computer Chess Club: General Topics
Topic: Komodo and WCCC
Replies: 114
Views: 17736

Re: Komodo and WCCC

Apparently reading comprehension has reached an all-time low. Stockfish CAN participate if the authors want. The only ICGA rule preventing them from participating is that the AUTHORS have to either participate directly, or agree to allow someone else to operate the program. So the only thing preven...