A word for "wanting everyone else to suffer the same as you"?

Let's say I have the following situation:

Student: Professor, do you have the answers for the questions on your textbook?

Professor: No. When I was a student like you, we had to struggle to answer them on our own.

If the professor decided to do so solely because he wanted everyone else to "suffer" the same as he did, did he/she do it out of _____?

As far as I have searched here, I did not find a specific word for this kind of "forcing an empathy".


Solution 1:

Your question doesn't really seem to be in line with your example. "Spite" could be an answer to your question as posed, although it doesn't hold that precise meaning of the individual having suffered previously.

It seems like your professor just believes that working for the answers will help you learn them better, not that he wants everyone to suffer as he did. Were it the latter, I'd call it "spite," which seems to be your question- but I don't have a word for what I perceive his actual intent as.