Well, he's a bad judge then. He should be able to adapt to the situation rather than follow the law literally
Maybe the definition on the books says a computer is a device with a screen and a keyboard, and maybe other input/output devices like a printer or a mouse. Maybe it says something about typing on a computer, or sitting down at a computer, or such? It probably doesn't do anything like reference what the technical definition of a computer is (and funnily enough, if it did - even that would likely be wrong, and exclude things like analog computers, relay machines, mechanical differential analyzers, and a whole host of other things which historically and otherwise are "computers").