Quoted By:
In this gym, you must bake a pie for each of the gym leader's pokemon. While you're waiting for the pie to bake, you will battle the gym trainers. You have to defeat them in a certain amount of turns or the pie will burn or be undercooked, which will make the gym leader's pokemon angry in turn, causing them to become more powerful in battle. The further off the mark you are from the target amount of turns, the stronger the gym leader's pokemon become.