Comment by kelnos
Not sure how having a smartphone in class would have allowed you to do that, though. And regardless, if you're in a physics or language class, you should be focusing on those those topics, not learning how to write computer games.
My high school did offer a computer science class in the 90s, and students who took it got to use the school's computer lab. If your school didn't have something like that, that's a shame, but that doesn't suggest that you should have been able to ignore the presented curriculum and do whatever you wanted.