LudoBotController constructor

LudoBotController({
  1. required List<LudoPlayer> players,
  2. required Set<int> botPlayerIndices,
  3. LudoDiceRules diceRules = const LudoDiceRules(),
  4. int diceRoller()?,
  5. bool enableAudio = true,
  6. Duration thinkDuration = const Duration(milliseconds: 300),
  7. List<LudoTeam>? teams,
  8. LudoDiceRolledCallback? onDiceRolled,
  9. LudoPieceMovedCallback? onPieceMoved,
  10. LudoPieceCapturedCallback? onPieceCaptured,
  11. LudoTurnChangedCallback? onTurnChanged,
  12. LudoPlayerWonCallback? onPlayerWon,
  13. LudoTeamWonCallback? onTeamWon,
  14. LudoGameFinishedCallback? onGameFinished,
  15. Duration stepAnimationDuration = const Duration(milliseconds: 180),
  16. 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);