This is a version of the Uwe Rosenberg two-player board game Patchwork. If you need to know how to play the game, you can find find a full explanation of the rules at this link
If you're using a tablet, you can bring up touch screen controls to use instead of a keyboard by tapping the button in the bottom right corner