The former world No 1 and five-time Grand Slam title winner told a Russian chat show that she particularly enjoyed lacing up a pair of boxing gloves as part of her fitness regime.
"I tried boxing as I needed to keep myself in good form. It was great as I could imagine some particular people whom I wanted to hit," said the 29-year-old, without elaborating on the identity of her imagined targets.
Sharapova was banned from the sport after testing positive for meldonium at the 2016 Australian Open.
However, she will return to action at the Stuttgart claycourt tournament on April 26 after her initial two-year ban was cut to 15 months.
Her reappearance in the sport will come seven days after her 30th birthday.
"I found out that I'm very good in resting," added Sharapova when she was asked what lessons she had learned during her enforced absence from the tour and which has left her without a world ranking.
"Formerly I couldn't imagine what to do during such a huge period of free time. I had almost 12 months to think, to read books etc."