Commit graph

7 commits

Author SHA1 Message Date
A.M. Rowsell
a1560f1611
chores: updated gitignore, removal of configurations.xml, formatted header 2025-09-13 11:36:53 -04:00
A.M. Rowsell
a56fb4d60f
dev: refactoring things to be more OOP! whoop whoop
Still struggling to understand all these concepts, and I will admit
to using ChatGPT to try and explain where I was going wrong which
did help quite a bit. But if I get this right it will be much
more robust and less "fragile" as they say.
2025-09-13 11:18:27 -04:00
A.M. Rowsell
c333e3da9e
dev: refactoring Board to be simpler for Piece to use
This commit adds a bunch of getters/setters for accessing the
boardGrid. This is a simpler way to allow both Piece and all
the inherited classes to access the Board without having to
declare every single class a friend. So now when we want to
access boardGrid, we use getPieceAt() or setPieceAt(). They
are overloaded to accept rank/file, Square, or int/int.
There's also a convenience function to check if the square
is empty, though that may get re-written to use the existing
Square.isValid().
2025-09-13 10:43:25 -04:00
A.M. Rowsell
f05dd6d90f
dev: Updates to Board and Piece, formatted code 2025-09-07 17:59:16 -04:00
A.M. Rowsell
6773da28fb
Piece: expanding getLegalMoves for Queen/Knight/Bishop 2025-08-30 18:46:18 -04:00
A.M. Rowsell
21fae88bdb
fmt: reformatted code, changed some function signatures, fairly minor 2025-08-29 04:17:16 -04:00
A.M. Rowsell
22fe7bdf0b
organize: moved include files to inc/ 2025-08-28 10:45:41 -04:00
Renamed from Board.hpp (Browse further)