Method SimpleIsMoveValid
SimpleIsMoveValid(Move)
Returns true if swapping the cells specified by the move would result in 3 or more cells of the same type in a row. This assumes that all pieces are allowed to be moved; to add extra logic, incorporate it into your IsMoveValid(Move) method.
Declaration
public bool SimpleIsMoveValid(Move move)
Parameters
| Type | Name | Description |
|---|---|---|
| Move | move |
Returns
| Type | Description |
|---|---|
| bool |