diff --git a/Classes/Go/Go.swift b/Classes/Go/Go.swift index da5a129..ac2349b 100644 --- a/Classes/Go/Go.swift +++ b/Classes/Go/Go.swift @@ -302,7 +302,6 @@ final class Go { } guard let player = surroundingPlayer else { - assertionFailure() return nil } return SurroundedTerritory( diff --git a/Classes/Go/GoEndGameResult.swift b/Classes/Go/GoEndGameResult.swift index afed2b3..1a5298e 100644 --- a/Classes/Go/GoEndGameResult.swift +++ b/Classes/Go/GoEndGameResult.swift @@ -33,9 +33,10 @@ struct GoEndGameResult: Codable { } func gameOverDescription() -> String { + // TODO: move to label on board, too small if let winner = winner() { return String( - format: "%@ Wins 🏆 %@ %d %@ %d", + format: "%@ Wins %@ %d %@ %d", winner.rawValue.capitalized, GoPlayer.black.string, blackScore, diff --git a/GoTests/GoTests.swift b/GoTests/GoTests.swift index 1bf3f94..498227f 100644 --- a/GoTests/GoTests.swift +++ b/GoTests/GoTests.swift @@ -236,7 +236,7 @@ class GoTests: XCTestCase { } } - // https://www.pandanet.co.jp/English/learning_go/learning_go_7.html + // https://www.pandanet.co.jp/English/learning_go/learning_go_7.html - single eye func testSingleEyeCapture() { let go = Go(board: .nineXNine) try? go.play(22)