Update(Tp1): Format

pull/1/head
Louis DUFOUR 2 years ago
parent 051e68e176
commit 3a6245e2cf

@ -14,10 +14,8 @@ public extension Board {
for row in grid {
for cell in row {
if let piece = cell.piece {
print(cell.cellType.symbol + piece.owner.symbol + piece.animal.symbol, terminator: " ")}
else {
print(cell.cellType.symbol, terminator: " ")}
}
print()

@ -9,8 +9,6 @@ import Foundation
public enum Animal: String { case rat, cat, dog, wolf, leopard, tiger, lion, elephant
public var description: String {
switch self {
case .rat:

Loading…
Cancel
Save