Thrice is an old-fashioned way to talk about doing something three times. You could say, "I swung the bat at the piñata thrice."
You're most likely to come across the adverb thrice in a book, since it's a stiff, formal way to say "three times." Just for fun, you could use it in a note to your cat sitter: "Please feed Fluffy thrice daily," to scold your younger brother: "I've asked you thrice not to throw that ball in the house," or to brag about your travels: "I've thrice been to Madagascar."