     let x: Int
     let y: Int
     
+    var representation: String {
+        return "Q"
+    }
+    
     func canAttack(x: Int, y: Int) -> Bool {
         if self.x == x || self.y == y {
             return true

import Foundation

protocol ChessPiece {
    var x: Int { get }
    var y: Int { get }
    init(x: Int, y: Int)
    func canAttack(x: Int, y: Int) -> Bool
}

// where no queen can Attack another one

let result = boards()
result.forEach { $0.prettyPrint() }
