|
1575c83d31
|
[board] Rename PiecePlacementError::PieceExistsOnSquare → ExistsOnSquare
|
2023-12-26 11:20:01 -07:00 |
|
|
32c562e405
|
[board] Implement Color::other() that swaps the color for the other
|
2023-12-26 11:13:44 -07:00 |
|
|
fac98735e3
|
[board] Implement a Pieces iterator
This type iterates the pieces in a Position using the BitScanner struct to iterate all the occupied squares of the position's bitboards.
|
2023-12-26 09:19:38 -07:00 |
|
|
e0f1e1f6ff
|
[board] Derive a bunch of traits for Color, Shape, Piece, and Square
|
2023-12-26 09:15:24 -07:00 |
|
|
a2f88f0fde
|
[board] Give piece Color and shape enums integer values
Rename PieceShape → Shape
Remove color and piece modules from position.rs
|
2023-12-23 20:20:19 -07:00 |
|
|
9bcd0b2148
|
[board] Add neighbor and piece modules
Add a Direction enum in the neighbor module
Add Color and PieceShape enums, and a Piece struct to the piece module
|
2023-12-23 09:18:07 -07:00 |
|