In my twenties I played nethack (with the ascii tileset) in a terminal window while working. It only took my boss a couple weeks to catch on.
He was not happy.
He was not happy.
I didn't do that long enough to really put it to the test, though. Eventually I switched to working on side projects instead, which look similar to what I was normally doing. And worst case scenario, I could argue that it is for training or something, which wouldn't entirely be a lie.