How did Hamlet make sure that Claudius killed the King?

He set the theatrical play that repeated the scene of murder

**********