LudoEasyBot class
Picks uniformly at random among the legal moves.
- Inheritance
-
- Object
- LudoBotStrategy
- LudoEasyBot
Constructors
- LudoEasyBot({Random? random})
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
chooseMove(
LudoGameState state) → LudoLegalMove -
Picks one of
state.legalMoves. Called only whilestate.phase == LudoTurnPhase.awaitingPieceSelection, so there is always at least one legal move. Returning a move that is not instate.legalMovesmakes the controller fall back to the first one.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