giewev / Classy

MIT License
1 stars 0 forks source link

Use enums instead of the const ints for piece types #14

Closed giewev closed 7 years ago

giewev commented 7 years ago

Currently each type of piece in a bitboard is defined by constants, e.g. QUEEN. This is begging to an enum (Oh the joys of knowing basic language features)

giewev commented 7 years ago

Replaced all obvious usage of those constants with a shiny new enum