This app was mentioned in 1 comment, with an average of 1.00 upvote
For reference, both the USA Hockey Rulebook/Casebook and the Hockey Canada Rulebook/Casebook have lots of good situations that explain what to do in just about any conceivable situation.
Hockey Canada has the Rulebook/Casebook online as a PDF here. They also have an app which is available for Android or Apple. The important stuff is Rule 10.2.
USA Hockey has its Rulebook/Casebook as a PDF here. They also have a link designed for use on phones or tablets. The important stuff is Rule 612.
Anyhow. Read over all of the situations. They'll answer just about any question you could possibly have.