Rating:

Trick or Treat is a small python game, where we have to dodge enemies and each dodge is counted.

Let's see if we can find a winning condition in the source code: I guessed we have to survive long enough or dodge enough enemies. So we need something like `if someVariable > someMagicNumber` and actually, in the `game_loop`, there is a condition `if gf > (5 * 20):` and `gf` seems to be incremented from time to time.

If the condition holds, we have `game.pause_text = gs()`. So let's just put this line as the first instruction inside `game_loop` and it is triggered right from the beginning.

Turns out: This really is the line of code responsible to print the flag. Solved.