Discussion on: Don’t pay the for-loop tax

tbodt profile image

Oops, I pasted the code wrong. What I wanted to do was generate every move from the current position of the rook up to a piece, and including the piece if the piece is a black piece. See updated post.