No. During a test the teacher's job is to be present and observant — moving around the room, watching for confusion, and being available when a student is stuck on a question. A teacher absorbed in a game is not doing any of that.
If this is a real situation and the teacher is consistently unavailable, the appropriate step is to raise it with the principal rather than let a term of testing go by. Having spent twenty-four years in the classroom, the original answer's advice holds up: proctoring is active work, and anything that competes with it is a problem for the students in the room.