🎨 prettify Human
continuous-integration/drone/push Build is passing Details

main
Alexis Drai 2 years ago
parent 4af5705e4f
commit 9ae6386877

@ -3,12 +3,16 @@ class Human: Player {
private let scanner: () -> Int? private let scanner: () -> Int?
init(withId id: Int, withName name: String, usingScanner scanner: @escaping () -> Int?){ init(withId id: Int,
withName name: String,
usingScanner scanner: @escaping () -> Int?) {
self.scanner = scanner self.scanner = scanner
super.init(withId: id, withName: name) super.init(withId: id, withName: name)
} }
override func chooseColumn(inBoard board: Board, withRules rules: IRules) -> Int? { override func chooseColumn(inBoard board: Board,
withRules rules: IRules)
-> Int? {
return scanner() return scanner()
} }
} }

Loading…
Cancel
Save