OptionalPromotion class
Rules where pieces can optionally promote on ranks, and if forced is true, then they will be forced to promote on forcedRanks. This allows for rules such as those in Shogi or Grand Chess.
- Inheritance
-
- Object
- PromotionOptions
- OptionalPromotion
Constructors
Properties
- forced → bool
-
final
-
forcedRanks
→ List<
int> ? -
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
pieceLimits
→ Map<
String, int> ? -
If specified, this will not allow promotion to specified piece types
beyond the limits specified here.
This is compiled to <int, int> in
BuiltVariant.pieceLimits
.finalinherited -
ranks
→ List<
int> ? -
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
build(
BuiltVariant variant) → PromotionBuilder -
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited