Hi - I am just starting the process of writing my own chess engine in Python. I want to use bitboard representations and want to make sure I am clear on one point before I go any further: and that is how to tell which piece is on which square. As best I can tell, maintaining a table of which piece is on which square is how its done. I can't come up with any better solution. (a possible alternative would be to AND all my piece bitboards together with each board position). If there is a better method please rely and let me know. Thanks.
//edited to make shorter