GameEndConditions class
Constructors
- GameEndConditions({EndType stalemate = EndType.draw, EndType elimination = EndType.lose, int? checkLimit})
-
const
-
GameEndConditions.fromJson(Map<
String, dynamic> json) -
factory
Properties
- checkLimit → int?
-
If not null, this player can lose by being checked this many times.
final
- elimination → EndType
-
Occurs when a player has no pieces on the board (or hand).
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stalemate → EndType
-
Occurs when a player has no legal moves.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
symmetric(
) → GameEndConditionSet -
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Constants
- antichess → const GameEndConditions
- standard → const GameEndConditions
- threeCheck → const GameEndConditions