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 |
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.
Methods
# getDestinationHole() → {Hole}
Gets the hole on which the specified move will be planting the last seed in
the players hand.
Hole on which the move ends
# isContinuing() → {true}
Determines if a move is continuing. This happens when previous moves have
been executed before this move.
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.
true if move sows seed in any front row hole
boolean