# Hacky alternative to using select for timing out players
# WARNING: Do not wrap around HumanPlayer or things breakify
+# WARNING: Do not use in general or things breakify
class Sleeper(multiprocessing.Process):
def __init__(self, timeout):
elif not s.is_alive():
w.terminate()
s.join()
- raise Exception("UNRESPONSIVE")
+ raise Exception("TIMEOUT")