zkayser / chess

2 stars 0 forks source link

Pawn file mask attribute refactor #43

Closed zkayser closed 1 year ago

zkayser commented 1 year ago

This PR makes a small change to the module attributes used for the bitboard Pawn module to declare bit masks for File A and File H when determining potential pawn attacks.

It also makes a minor, stylistic refactoring on the Pawn.potential_attacks/2 function.