The best solution is to avoid the cat. I've spend my whole life around cats and dogs, and getting scratched and bitten is pretty much a given -- it's instinctual hunt and play behavior. It's just life, if you ask me; it's painful and leaves marks, but that's just an irrelevant side effect of participation.