TheBlackPlague / StockNemo

A C# Chess Engine Finding Good Moves.
GNU Lesser General Public License v3.0
62 stars 7 forks source link

Refactor PieceColor API. #57

Closed TheBlackPlague closed 2 years ago

TheBlackPlague commented 2 years ago

Currently, a method known as Util.OppositeColor(PieceColor) exists. It's better to refactor this into the PieceColor enum instead. Gives the code a cleaner look.

Due to the nature of this PR and all unit tests passing, it doesn't need to be ELO tested.