Use DifficultyPicker to set up automatic difficulty adjustments for your game.
p = new DifficultyPicker 1, 50 onRoundStart -> write p.pick()
You need two things to make a DifficultyPicker work in your game:
new DifficultyPicker defines a new picker, and tells it what the easiest and hardest numbers will be. The numbers it picks will always be between the easiest and hardest you specified.something.pick() actually picks a difficulty level. This should usually happen inside onRoundStart, since you usually want to adjust difficulty at the beginning of each round.DifficultyPicker chooses numbers:
DifficultyPicker to pick(), it selects a new number between the easiest and hardest numbers you gave it during set-up.DifficultyPicker picks the easiest number, and sees how long it takes the dog to solve the game on the easiest setting. This is the baseline timeDifficultyPicker works independently: if you have more than one, they won't know about each other.