Search found 337 matches

by phhnguyen
Thu Jun 20, 2019 6:41 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Ambiguous: UCI and option Clear Hash
Replies: 9
Views: 635

Re: Ambiguous: UCI and option Clear Hash

You might be over thinking this. It works like any other UCI command the GUI sends to the engine. The GUI will send the command "setoption name Clear Hash" to the engine. The engine will reinitiate the hashtable by however method the programmer had decided when it receives the command. Wow, thanks....
by phhnguyen
Thu Jun 20, 2019 12:52 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Ambiguous: UCI and option Clear Hash
Replies: 9
Views: 635

Ambiguous: UCI and option Clear Hash

I got confused when working with option “Clear Hash”. From UCI documents that option is described shortly: option name Clear Hash type button I may guess the purpose of the option based on the meaning of the name (clear hash). I understand the GUI should show a button for that option too. However lo...
by phhnguyen
Wed May 01, 2019 10:08 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Pointers in C++, please help
Replies: 17
Views: 1940

Re: Pointers in C++, please help

I want to use a pointer to a two dimensional array like it was an array name. This code works and I am okay with that but it uses pure pointer arithmetic, however, for readability I want to use the pointer like array notation instead. Whenever I want to pass complicated parameters, say, (too) many ...
by phhnguyen
Thu Feb 21, 2019 9:01 pm
Forum: Computer Chess Club: General Topics
Topic: Which EGTB files to download
Replies: 4
Views: 664

Re: Which EGTB files to download

If you want to try many engines and/or make matches between them, download them all. Otherwise, syzygy is the best in many aspects, 5 men is the easiest one to get.

Take a look their brief information:

https://www.chessprogramming.org/Endgame_Tablebases
by phhnguyen
Wed Feb 06, 2019 12:48 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Xiangqi: perpetual chase question
Replies: 6
Views: 1085

Re: Xiangqi: perpetual chase question

OK, sorry, my mistake. It was not my intention that the black Cannon would ever be protected. So imagine the Elephant on e7 is not there at all. From your second posting I understand that for the 1.Hd4, where the Horse chases the Cannon and at the same time the Cannon offers exchange, you would not...
by phhnguyen
Tue Feb 05, 2019 3:29 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Xiangqi: perpetual chase question
Replies: 6
Views: 1085

Re: Xiangqi: perpetual chase question

That is why my program rules games in two separating steps, the first one is to detect continuously chasing without taking care the relationship between attackers - victims, in this case the Horse is doing that but not that black Cannon since it is not continuously chasing the white Cannon (in one ...
by phhnguyen
Tue Feb 05, 2019 2:40 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Xiangqi: perpetual chase question
Replies: 6
Views: 1085

Re: Xiangqi: perpetual chase question

I am in doubt about the priority of the rule that it is allowed to perpetually offer exchange of equal pieces. One way to look at it is that the possibility to exchange is as good as being protected, i.e. the piece is capable of self-defence, and initiating the exchange is like a 'pre-emptive' reca...
by phhnguyen
Sun Jan 13, 2019 4:39 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Generate EGTB with graphics cards?
Replies: 29
Views: 4243

Re: Generate EGTB with graphics cards?

So it really was a serious question: how long do you take to generate, say, KBNK? Sorry I don’t know. I don’t generate EGTB for chess but for other chess variants. ... Because chasing can heave multiple targets (which then is allowed) Technically speaking, chasing multi-pieces is a draw. You can ig...
by phhnguyen
Sat Jan 12, 2019 3:45 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Generate EGTB with graphics cards?
Replies: 29
Views: 4243

Re: Generate EGTB with graphics cards?

Well, if you would require several hundred times as much calculation per position as is really needed, I would have no difficulty believing that. So the key question is: how fast is your generator (on a single-threaded CPU)? I think you know already, there is no magic in computer chess. Except the ...
by phhnguyen
Thu Jan 03, 2019 11:57 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Generate EGTB with graphics cards?
Replies: 29
Views: 4243

Re: Generate EGTB with graphics cards?

Another question would be: "why do it at all"? For orthodox Chess all 7-men have already been done. And 8-men are too big to store the result. A reason for doing it on a GPU would be for fun. I think that the GPU would be a very natural place for a mate solver that uses proof search. That is becaus...