Jump to content

  • Log In with Google      Sign In   
  • Create Account


patishi

Member Since 11 Jun 2013
Offline Last Active Jul 06 2014 08:58 AM
-----

Posts I've Made

In Topic: Best way to assert the king is not in check when generating moves in chess

13 December 2013 - 03:54 PM

Thank a lot my friend!    very much appreciated


In Topic: Best way to assert the king is not in check when generating moves in chess

13 December 2013 - 01:21 PM

Thanks a lot for the very detailed answer.  Boy! do I still have a lot of work to do :)      

 

I remember that i first need to try and play the hash move, capture moves, killer moves etc..   first, before i am going to play the quiet moves.   But I (stupidly) was going to generate all the possible moves fist and only play them in that order.     Thank you for correcting me, now i know that there is no point in generating usless moves if i am not going to actually play them ( or at least not sure about that).


In Topic: Checking for offboard squares with bitboards (vs padded array)

09 December 2013 - 05:55 AM

Thank you very much my friend ! Very appreciated :)

In Topic: Checking for offboard squares with bitboards (vs padded array)

09 December 2013 - 04:23 AM

I was planning to loop through each piece in every direction and check for available moves until i hit the edge of the board.. but i guess that i can simply get the available squares by means of bit operations on the relevant bitboards?

In Topic: Checking for offboard squares with bitboards (vs padded array)

08 December 2013 - 10:51 PM

Thx for the responses.
Alvaro, I read your comment but i'm having a little hard time to understand it completely.

Let's say the white queen is on A8,now it can't move north anymore cause there is no more board left. I need to make some kind of validation..
If I try translate ir to bitboard terms, A8 is the 57th bit, and if I do <<8 I will get strange results.
what am missing here??

Please bare with me , like you said..thinking OUTSIDE of the board requires a change in how you look at things.

Thx

PARTNERS