Search found 846 matches

by phhnguyen
Thu Jan 27, 2011 10:50 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Programming language features for computer chess
Replies: 28
Views: 8734

Re: Programming language features for computer chess

For chess programming I have switched back from C++ to C. And still I base my data structures partially on two post boxes - not at all using bit boards, now having a pure monochrome approach, thus simplifying testing and maintaining of chess routines. Very interesting, I usually check reasons why I...
by phhnguyen
Sat Jan 15, 2011 4:57 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Hints for programming on system 64 bit?
Replies: 5
Views: 969

Hints for programming on system 64 bit?

I still works on both system 32 and 64 bit, but will soon migrate completely to 64 bit. I mainly use Win 7 64 bit + Visual studio and Ubuntu 64 bit + gcc. Just few "basic" questions but very important for designing a program for 64 bit: - Which integer is faster: int (32 bit) or int64_t? Or should I...
by phhnguyen
Mon Jan 10, 2011 11:36 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Using SEE to prune in main search
Replies: 37
Views: 7813

Re: Using SEE to prune in main search

Having a look at the latest stockfish, they are using SEE in a different way, to help prune non-captures in the main search. Have not studied stockfish yet, but this makes me so confuse. Can you or someone explain how stockfish applies SEE to non-captures? Or is that not "original" SEE (which alway...
by phhnguyen
Mon Jan 10, 2011 8:56 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Using SEE to prune in main search
Replies: 37
Views: 7813

Re: Using SEE to prune in main search

Having a look at the latest stockfish, they are using SEE in a different way, to help prune non-captures in the main search. Have not studied stockfish yet, but this makes me so confuse. Can you or someone explain how stockfish applies SEE to non-captures? Or is that not "original" SEE (which alway...
by phhnguyen
Mon Dec 06, 2010 12:36 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Thread management / organization in parallel processing?
Replies: 1
Views: 695

Thread management / organization in parallel processing?

Hi all, I have been redesigning my program and now working on thread management. Just some basic questions which need your suggestions: Suppose my computer has n processors (cores) and I always need to create one thread for common tasks such as listening keyboard and starting / controlling other thr...
by phhnguyen
Tue Sep 21, 2010 8:22 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Need help on YBWC algorithm
Replies: 14
Views: 2673

Re: Another question

Hi Bob, I need you to help to make clear an implementation detail. When studying Crafty, I see the code of search as the following: for (all moves) { ... Thread(tree); } Update search result; return alpha; As I understand, you still need the main (master) thread to come back from Thread(tree) to upd...
by phhnguyen
Sat Sep 18, 2010 2:55 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Most important eval elements
Replies: 47
Views: 11363

Re: Most important eval elements

Hi all, I've been looking again at my eval. It got me thinking, what are the most important things to include in an evaluation function, and what are they worth, ELO wise? I appreciate this isn't an exact science. IMO, the most important thing is very clear and simple which programmers usually forg...
by phhnguyen
Tue Sep 14, 2010 11:47 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Need help on YBWC algorithm
Replies: 14
Views: 2673

Re: Another question

Amazing, I have read somewhere that DTS algorithm is harder than YBWC one to implement. But I see that the thread management of DTS as you mentioned seems be easier to implement and more effect to work I sticked to (1) as the YBWC idea and be stuck for a while and now see no problem to do (2). The o...
by phhnguyen
Tue Sep 14, 2010 3:06 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Need help on YBWC algorithm
Replies: 14
Views: 2673

Re: Another question

Thanks Bob, getting your points. To make clear for me, I would like to ask few questions: Suppose a split block A is ran by master thread 1, then thread 1 runs out of work and goes to help and currently works in other block, say B. Now, a slave (thread 2) of block A completes the search (found a cut...
by phhnguyen
Tue Sep 14, 2010 6:30 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Need help on YBWC algorithm
Replies: 14
Views: 2673

Another question

I have been designing my YBWC algorithm and have another technical question which needed some advices: When a slave has found a cut-off (value>beta - the search is completed) I don't know what to do with master and other slave threads. First of all, I think I will simply stop them. However, I see pr...