The goal of the game is to discard all your cards before the other players do, and to accumulate a score of 500 points (or a number that everyone is ok with).
If you bought Bedrock on PC, you should be able to get Java for free. Try going to the Microsoft Store listing for "Minecraft: Java & Bedrock Edition for PC.".