Class

Move

Move(hole, direction, prevContinuedMovesCount)

Constructor

# new Move(hole, direction, prevContinuedMovesCount)

constrtuctor
Parameters:
Name Type Default Description
hole Hole the hole on which the moves starts on
direction MoveDirection move direction
prevContinuedMovesCount number 0 the number of subsequent (continued) moves executed before current move

View Source core/Move.ts, line 50

Members

# isMtaji

Mtaji moves result into a capture on the initial move. This switch is set to {@code false} for all subsequent continuing moves if the initial move did not result into a capture.

The default value for this switch is initially set to {@code true} with the assumption that every move that a Player initiates has the potential to result into a capture.

View Source core/Move.ts, line 42

Methods

# getDestinationHole() → {Hole}

Gets the hole on which the specified move will be planting the last seed in the players hand.

View Source core/Move.ts, line 108

Hole on which the move ends
Hole

# isContinuing() → {true}

Determines if a move is continuing. This happens when previous moves have been executed before this move.

View Source core/Move.ts, line 62

if the move is continuing.
true

# sowsSeedInFrontHole() → {boolean}

Checks to see if the move results into seed tokens being put in any front row hole that is assigned to the player.

View Source core/Move.ts, line 82

true if move sows seed in any front row hole
boolean