Skip to content

Commit

Permalink
Minor formatting improvements.
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenbensley committed Sep 7, 2024
1 parent 0370736 commit 14da886
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Resources/Help.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ The app follows the rules originally proposed by Irving Finkel. These are the mo
Players roll the dice to determine who goes first. The app skips any tied rolls and only shows the decisive roll. The player with the highest roll makes the first move.

**Moving Pieces**
The current player rolls the dice to determine how many squares to move during the turn. The player's dice are highlighted to indicate whose turn it is. Tap the piece you wish to move to select it. Both the selected piece and its destination will be highlighted. Tap the destination to confirm the move. If you are unable to select a piece, that means it has no move available. When entering a piece from off the board, you must select the highest piece from the stack of waiting pieces.
The current player rolls the dice to determine how many squares to move during the turn. The player's dice are highlighted to indicate whose turn it is. Tap the piece you want to move to select it. Both the selected piece and its destination will be highlighted. Tap the destination to confirm the move. If you are unable to select a piece, that means it has no move available. When entering a piece from off the board, you must select the highest piece from the stack of waiting pieces.

**Losing a Turn**
If you roll a zero or none of your pieces can make a move, play automatically passes to the other player.
Expand Down
2 changes: 1 addition & 1 deletion UrCoach/BoardPositions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ final class BoardPositions {
}

// Returns the position based on index, where zero is the entry square.
func position(_ player: PlayerColor, index: Int) -> CGPoint {
func position(_ player: PlayerColor, index: Int) -> CGPoint {
// Zero square has Ur.pieceCount waiting positions and the 'just before entry' square
// ahead of it in the positions array.
positions[player.rawValue][index + Self.originOffset]
Expand Down
2 changes: 1 addition & 1 deletion UrCoach/GameScene.swift
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ final class GameScene: SKScene {
case .computer:
pickBestMove(onMovePicked: executeMove)
}
}
}

private func executeMove(checker: Checker, viewMove: GameBoard.Move) {
guard let modelMove = viewMove.userData as? Move else { return }
Expand Down

0 comments on commit 14da886

Please sign in to comment.