I’m having a problem with the Great Escape, sometimes my input() retrieval never goes through the last wall.
I retrieve the input() for each playerCount, then I retrive wallCount and get input() for each wallCount.
And sometimes, when a wall has been added either by me or another player, I retrive all walls except for one, and the program stops due to timeout, I’m eliminated.
And I tired many things and can’t manage to understand when and why that happens, and what I could do about it.
This is my last input retrieval code in python3 :
inp= for id in range(playerCount): inp.append(input()) print("input=%s"%(inp[-1]), file=sys.stderr) wallCount=int(input()) # number of walls on the board print("input wallCount=%d"%(wallCount), file=sys.stderr) for id in range(wallCount): inp.append(input()) print("input=%s"%(inp[-1]), file=sys.stderr)