协议里的函数返回的Bool值默认是 false 么?
protocol TurnBasedGameDelegate{ func gameOver() -> Bool }
在类里打印该函数返回的是false
var delegate: TurnBasedGameDelegate! print(delegate.gameOver()) // false
所以才会在 where 循环里判断如果是false才继续进行游戏
while !delegate.gameOver(){...} // while delegate.gameOver() == false {...}