Methods
cmp(that) → {number}
Tile comparison function. Sorts tiles in bottom-to-top stacking order.
Parameters:
Name | Type | Description |
---|---|---|
that |
Tile | The tile to compare against. |
- Implements:
Returns:
- Type
- number
equals(that) → {boolean}
Tile equality predicate.
Parameters:
Name | Type | Description |
---|---|---|
that |
Tile | The tile to compare against. |
- Implements:
Returns:
- Type
- boolean
hash() → {number}
Tile hash function.
- Implements:
Returns:
- Type
- number