It is a metaphor. More specifically, it is an ontological metaphor, where something abstract is represented as something concrete. It would be more common to refer to "my computer is moody" as personification, however, where an inanimate objects is given human attributes.
simile its a simile when you use "like"
A metaphor
A metaphor, a simile uses the words like or as.
that man
simile
Metaphor...similes use like or as
simile
simile
A metaphor is a flower. A simile is like (or as) a flower. Both metaphor and simile compare one thing to another. The difference is that a simile uses the words 'like' or 'as', and metaphor doesn't. Metaphor: Life is a fountain. Simile: Life is like a fountain.
"He was a lion in the fight" is a metaphor.
simile
simile and METAPHOR AND PERSONIFICATION AND CHEESE