Advertisement
Just_Tom

Untitled

Mar 24th, 2024
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VisualBasic 0.26 KB | Source Code | 0 0
  1. Dim Pieces As ULong = …
  2. While Pieces <> 0
  3.     Dim PieceSource As SByte = BitOperations.TrailingZeroCount(Pieces)
  4.     Dim BitboardPiece As ULong = 1UL << PieceSource
  5.     ‘Processing whether the information is useful
  6.     Pieces -= BitboardPiece
  7. End While
  8.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement