LudoBotStrategy.forDifficulty constructor
LudoBotStrategy.forDifficulty(
- LudoBotDifficulty difficulty
Returns the built-in strategy for difficulty.
Implementation
factory LudoBotStrategy.forDifficulty(LudoBotDifficulty difficulty) {
switch (difficulty) {
case LudoBotDifficulty.easy:
return LudoEasyBot();
case LudoBotDifficulty.medium:
return const LudoMediumBot();
case LudoBotDifficulty.hard:
return const LudoHardBot();
}
}