LudoEasyBot class

Picks uniformly at random among the legal moves.

Inheritance

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 while state.phase == LudoTurnPhase.awaitingPieceSelection, so there is always at least one legal move. Returning a move that is not in state.legalMoves makes 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