🚧 👔 WIP Players

main
Alexis Drai 2 years ago
parent a1617a1f55
commit e635bf5311

@ -1,5 +1,7 @@
import Foundation
class Bot: Player {
override func playBetween(min: Int, andMaxIncl maxIncl: Int) -> Int {
return Int.random(in: min..<maxIncl + 1)
}
}

@ -1 +1,4 @@
import Foundation
class Human: Player {
}

@ -1,8 +1,18 @@
//
// File.swift
//
//
// Created by etudiant on 2023-01-31.
//
import Foundation
class Player {
let id: Int
init(withId id: Int){
self.id = id
}
///
/// should be considered abstract and overridden by descendants
internal func playBetween(min: Int, andMaxIncl maxIncl: Int) -> Int {
return -1
}
}

@ -1,8 +1,4 @@
//
// File.swift
//
//
// Created by etudiant on 2023-02-01.
//
import Foundation
class SmarterBot: Bot {
}

Loading…
Cancel
Save