I would explain it with the examle:
The game needs a pattern matching algorithm. E.g. there's a list of all possible patterns as 2d array coordintates (as string):
Here's one possible pattern:
0,1 0,2 0,3 1,1 1,2 1,3
Than I have a set of 2d array coordinates, that I would like to check if it contains a pattern from the list (the string above):
5,4 0,0 0,1 0,2 0,3 0,4 1,1 1,2 1,3
How to check if the 2nd string contains all the pairs from the first string, despite of order of pairs?