Method IsMoveValid
IsMoveValid(Move)
Check whether the particular Move is valid for the game. The actual results will depend on the rules of the game, but we provide SimpleIsMoveValid(Move) that handles basic match3 rules with no special or immovable pieces.
Declaration
public abstract bool IsMoveValid(Move m)
Parameters
| Type | Name | Description |
|---|---|---|
| Move | m | The move to check. |
Returns
| Type | Description |
|---|---|
| bool |
Remarks
Moves that would go outside of GetCurrentBoardSize() are filtered out before they are passed to IsMoveValid().