title: chess sliding pieces bitboards
body: <p>I understood non-sliding pieces quite easily but I've been having some trouble with the sliding pieces.</p>
  
  <p>I currently have 64 bitboards (1 for each square, not saved in a array as well as 8 bitboards for masked rows, 8 bitboards for cleared rows, 8 bitboards for masked columns, and 8 bitboards for cleared columns, as well as, of course, a bitboard for each type of piece. </p>
  
  <p>In generating legal moves for the bishop and rook I hear you are suppose to get the first occupied square on the column/row. </p>
  
  <p>My questions are:</p>
  
  <ul>
  <li>how do you know where the rook is to and it together with the appropriate mask. </li>
  <li>how exactly do you get the first occupied square in the diagonal as well for the Bishop. </li>
  <li>if you know of any other common bitboards which will help me in my tasks at a latter point, please let me know of them.</li>
  </ul>
  
  <p>Currently I have it going with no branches and would like to keep the amount of branches I use down but I feel some will be needed here and am curious about the most efficient way to go about solving this problem.</p>