PieceOptimisationData class
Contains precomputed flags that help move generation run faster.
Constructors
- PieceOptimisationData({required bool hasOrthogonal, required bool hasDiagonal, required bool hasOblique})
-
const
Properties
- hasDiagonal → bool
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasOblique → bool
-
final
- hasOrthogonal → bool
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
excludePiece(
int from, int to, BoardSize size) → bool - Determines whether this piece should be excluded from move generation.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited