You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
440 B
23 lines
440 B
//
|
|
// File.swift
|
|
//
|
|
//
|
|
// Created by Louis DUFOUR on 15/01/2024.
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct Piece : CustomStringConvertible, Equatable, Hashable, Codable{
|
|
public let owner: Owner
|
|
public let animal: Animal
|
|
|
|
public init(withOwner owner: Owner, andAnimal animal: Animal) {
|
|
self.owner = owner
|
|
self.animal = animal
|
|
}
|
|
|
|
public var description: String {
|
|
return "[(owner):(animal)]"
|
|
}
|
|
}
|