Please check out the code
Closed this issue · 0 comments
freestyletime commented
Look:
通过扩展为上一节中提到的Dice类遵循TextRepresentable协议
extension Dice: TextRepresentable {
cun asText() -> String {
return "A (sides)-sided dice"
}
}
Closed this issue · 0 comments
Look:
通过扩展为上一节中提到的Dice类遵循TextRepresentable协议
extension Dice: TextRepresentable {
cun asText() -> String {
return "A (sides)-sided dice"
}
}