LudoBotController constructor
LudoBotController({
- required List<
LudoPlayer> players, - required Set<
int> botPlayerIndices, - LudoDiceRules diceRules = const LudoDiceRules(),
- int diceRoller()?,
- bool enableAudio = true,
- Duration thinkDuration = const Duration(milliseconds: 300),
- List<
LudoTeam> ? teams, - LudoDiceRolledCallback? onDiceRolled,
- LudoPieceMovedCallback? onPieceMoved,
- LudoPieceCapturedCallback? onPieceCaptured,
- LudoTurnChangedCallback? onTurnChanged,
- LudoPlayerWonCallback? onPlayerWon,
- LudoTeamWonCallback? onTeamWon,
- LudoGameFinishedCallback? onGameFinished,
- Duration stepAnimationDuration = const Duration(milliseconds: 180),
- LudoBotDifficulty botDifficulty = LudoBotDifficulty.medium,
Implementation
LudoBotController({
required super.players,
required Set<int> botPlayerIndices,
super.diceRules,
super.diceRoller,
bool enableAudio = true,
Duration thinkDuration = const Duration(milliseconds: 300),
super.teams,
super.onDiceRolled,
super.onPieceMoved,
super.onPieceCaptured,
super.onTurnChanged,
super.onPlayerWon,
super.onTeamWon,
super.onGameFinished,
super.stepAnimationDuration,
super.botDifficulty = LudoBotDifficulty.medium,
}) : super(botPlayers: botPlayerIndices, botThinkDuration: thinkDuration);