Video narration
Keeping track of four dice, two totals, and two armies gets confusing fast. In this board-game battle, let Java handle one round at a time. Start both soldier counts at ten. Inside a loop that runs while both are above zero, generate four random values from one through six: two for each player. Add each pair to get the attacker and defender totals, then print both rolls, totals, and the winner. Now the if statement decides the battle. If the totals match, set both counts to zero: the ruler wipes out every army. Otherwise, find the difference. The lower roller loses that many soldiers-never the higher roller. If the attacker's total is higher, subtract from defenders; otherwise subtract from attackers. Print the updated counts after each round. The loop stops when one reaches zero, and the final message names the survivor-or reports the tie. The dice sequence changes every run, but the procedure stays steady: roll, total, compare, update, and stop.