Which vs. what

Look at the following sentences. The sentences contain the words which or what. Try to find a pattern and see if you can discover when you should use which or when you should use what.

 

Which card would you like, the red or pink one?
Which flavour was your favourite, chocolate or caramel?

 

What is your favourite board game?
What activity would you like to do?
What sport do you play?