Hello forum,
I want to write a simple code of two dices rolling for two players. The players can roll as many times as they want per turn. If they are matching numbers, the total is zero. If a person passes, it is passed on to the next player. Please reply for clarification. Currently i have this.
int1=(int) (Math.random()*6) +1;
int2=(int) (Math.random()*6) +1;
intplayer1total=int1+int2;
A player should be able to pass and the points collected will be added to their total. First to get to 100 win! Thank you