Skip to content

Commit

Permalink
misc.
Browse files Browse the repository at this point in the history
  • Loading branch information
kevin49999 committed Jun 12, 2024
1 parent c41b6c4 commit 16eef12
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
1 change: 0 additions & 1 deletion Classes/Go/Go.swift
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,6 @@ final class Go {
}

guard let player = surroundingPlayer else {
assertionFailure()
return nil
}
return SurroundedTerritory(
Expand Down
3 changes: 2 additions & 1 deletion Classes/Go/GoEndGameResult.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion GoTests/GoTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 16eef12

Please sign in to comment.