Some bug fixes

This commit is contained in:
cdricms
2024-06-29 23:13:18 +02:00
parent 533322c5dd
commit 02de114d74
5 changed files with 25 additions and 11 deletions

View File

@@ -75,7 +75,8 @@ 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 typealias Targets = [Piece]
public internal(set) var targetted: Targets = []
public static func == (lhs: Square, rhs: Square) -> Bool {
return lhs.position == rhs.position