The tip for understanding java of craps is realize the dice combinations, or probabilities.
If you're still problems picturing in which way the game is played, let us compare it with far more popular card game Blackjack. https://hocvienboardgame.net/tin-tuc/choi-lo-de-tai-rikvip-trai-nghiem-thu-vi/