I'm working on writing a poker simulation. I already got some parts ready.
But I stuck with comparing my hand with cards on the table.
My idea was to get my 2 cards and take 3 random cards from the deck and see if that makes a flush or something. But of course I have to cycle through so I take all combinations with my hand and the deck.

If these are the 5 cards from the deck and 1 represents the cards positions I will take and compare with. These are all combinations that I have to compare my cards with the deck.

```
00111
01011
01101
01110
10011
10101
10110
11001
11010
11100

```

How could I loop through this? The table cards are just an array of objects.