Search found 154 matches

by voyagerOne
Wed Sep 21, 2011 5:19 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: piece- to vs. from- to
Replies: 18
Views: 2712

Re: piece- to vs. from- to

Then how do you calculate pawn moves? In other words you need to do additional logic for each pawn, right? Otherwise pawn A will go to pawn H destination square... The way I do it is something like this: for i = 0 to 7 if(pawn ==0)continue; calculateAllDestinationMoves(i) next i move[piece][to] move...
by voyagerOne
Wed Sep 21, 2011 2:42 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: piece- to vs. from- to
Replies: 18
Views: 2712

Re: piece- to vs. from- to

Thanks for your feedback, I really appreciate it! Another unorthodox method I use is: I have a bitboard for each piece so 16 bbs not 6 for each color. I also have a unionPawn bb. To me my program seems quite fast. JAVA 1 Thread Perft Count legal Moves 20 Mn/s I am wondering if this is an efficient w...
by voyagerOne
Wed Sep 21, 2011 1:32 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: piece- to vs. from- to
Replies: 18
Views: 2712

piece- to vs. from- to

Hi all.

My engine move structure is based upon piece to destination square. I noticed a majority of engines do from - to.

My question is...is one method superior over the other? If so what are the advantage/disadvantages...

Thanks in advance.
by voyagerOne
Thu Jul 28, 2011 4:26 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: First Post here: I have a few questions...
Replies: 8
Views: 1440

First Post here: I have a few questions...

I am another victim that got infected by the "chess programming bug". Here are some questions that I hope somebody can enlighten me: 1. What is the general idea (logic) for switching game phase evaluation from middle to end? I couldn't find much information about this. I know it has to deal with pie...