Using code for Newcomb's problem

Does it read your mind before you are in the room or not?

Also, there is the Newcomb topic, here might not be the best place.