I bother you, anyone that could help me, again.
I redid the Pawn Movements for the Move Generator of the BitBoard version of Soberango.
I think this part of the code is understandable (I translated it from spanish to english)
It works, but could someone see if the idea is correct or I´m still doing nosense (for example a great lost of the advantage of use bitboards)?
Thanks!
Code: Select all
Sub PawnMovements
If WhoMoves=1 Then 'Whites moves.
'Ahead 1:
BBTo=(((Pawns And Whites) And (Not Rank7)) Shl 8) And (Not Whites) And (Not Blacks)
If BBTo <>0 Then
Do
To=BSF(BBTo)
From=To-8
MovesList(Deep, Move, 1)=From
MovesList(Deep, Move, 2)=To
'MovesList(Deep, Move, 3)= Used for EnPassant
'MovesList(Deep, Move, 4)= Used for Promotions
'MovesList(Deep, Move, 5)= Used for MoveOrdering value
BBTo=BitReset(BBTo,BSF(BBto))
Move=Move+1
Loop Until BBTo=0
EndIf
....
