Added history — though still need to be checked thoroughly

This commit is contained in:
cdricms
2024-06-29 17:50:55 +02:00
parent 0a220f14f5
commit 90f2988a14
5 changed files with 118 additions and 1 deletions

View File

@@ -75,6 +75,7 @@ public struct Square: Equatable {
public let position: Position
public internal(set) var piece: Piece? = nil
public let color: Color
public internal(set) var targetted: Set<Piece> = []
public static func == (lhs: Square, rhs: Square) -> Bool {
return lhs.position == rhs.position