Can now move pieces

This commit is contained in:
cdricms
2024-06-28 19:35:43 +02:00
parent 501484558a
commit 4f5b51f4ae
11 changed files with 125 additions and 109 deletions

View File

@@ -11,4 +11,18 @@ print(board)
// }
do {
try board.move(src: "e4", dst: "f6")
} catch {
print(error)
}
do {
try board.move(src: .init(rank: 2, file: 5), dst: .init(rank: 4, file: 5))
} catch {
print(error)
}
print(board)
print(board.fen)
// let square = board.getSquareInfo(on: .init(rank: 2, file: 7))