Can now move pieces
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user